Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to compile a code size larger than 4kb in keil for 8051 or other MCUs??

Status
Not open for further replies.
Try with full version of Keil, that will for sure help. :smile:

Like MikroE compilers they are free with all options, and can compile up to 2KB of data code, if you want to compile larger data code you must get licence.
 
Last edited:

Or, try a gnu compiler (hopefully it is available for the microcontroller you need).
If you are not using many libraries, then 4kB is actually quite a lot of space. If (say) a lot of the space is being used for a ROM table, then I suppose you
could cheat and not include the full table when doing your compilation, but then add it in later to the .s19 (or whatever) file you are using for your
programmer. I've not tried that, but it would work - needs some skill, some experience with the record format and the ability to convert into that format
using scripts or other program that you'd have to create yourself.
I've used the free IAR compilers for a very long time, and have not needed to exceed the 4kB limit for ages, so I'd suggest that maybe you need
to evaluate if your intended application really does need more than 4kB or not. If it does need >4kB, easiest (free) approach will be GCC.

Or the .s19 (or whatever) file manipulation trick that I mentioned above, or pay for the full compiler.
 

A basic 8051 doesn't have more than 4k flash, by the way.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top