Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] problems with programs larger than 4K with Keil MCB2140

2006-03-01 by Saravanakumar S

Hi ,
        If you are using the Keil Evalution version,then Code limit is 
only 16k.
Up to 16k you can you can use the Keil compiler.It is very easy to see 
Program ouputs.
When your code size exceeds 16k,then you seperate tyour program as 2 
modules.Write your program in seperate module.
Merge both modules in a single program,compile in it in the GCC Compiler 
.You will get different compilation files like ELF,Hex,BAk...etc
Then you can download it your target module.

Dont include the startup file in GCC compiler.ok.It will automatically 
built own startup file.

Keil compiler has Limitation.MCB2140 has no limitation.Ok Just try this 
one................

If you are not satisfied with this point.Send a mail, i will explain 
details.






I am using a Keil MCB2140 with the Evaluation version of the compiler 
when my program gets over 4K there is a problem downloading to the 
device.  Here is two sample outputs of the out Build Window in the 
IDE.  The first one is successful. The next one is 8 bytes larger and 
is unsuccessful. 
Has anyone seen this before?  The compilier gives a warning about a 
16k limit.

Output 1 - successful
Build target 'LPC2100'
assembling Startup.s...
compiling Test.c...
compiling Timer.c...
compiling Sensor.c...
compiling Stepper.c...
compiling Support.c...
compiling prthead.c...
linking...
Program Size: data=1732 const=24 code=4068
".\Obj\Test" - 0 Error(s), 0 Warning(s).
Load "C:\\Keil\\ARM\\Examples\\Test\\Obj\\Test.ELF" 
Erase Done.
Programming Done.
Verify OK.

MISSING DEVICE (R003: SECURITY KEY NOT FOUND)
Running in Eval Mode
Load "C:\\Keil\\ARM\\Examples\\Test\\Obj\\Test.ELF" 
*** Restricted Version with 16384 Byte Code Size Limit
*** Currently used: 4092 Bytes (24%)


Output 2 - unsuccessful
Build target 'LPC2100'
assembling Startup.s...
compiling Test.c...
compiling Timer.c...
compiling Sensor.c...
compiling Stepper.c...
compiling Support.c...
compiling prthead.c...
linking...
Program Size: data=1732 const=24 code=4076
".\Obj\Test" - 0 Error(s), 0 Warning(s).
Load "C:\\Keil\\ARM\\Examples\\Test\\Obj\\Test.ELF" 
Erase Done.
Programming Done.
Contents missmatch at: 00001000H  (Flash=FFH  Required=1EH) !
Contents missmatch at: 00001002H  (Flash=FFH  Required=2FH) !
Contents missmatch at: 00001003H  (Flash=FFH  Required=E1H) !
Verify Failed!








 
Yahoo! Groups Links



 






[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.