Yahoo Groups archive

Lpc2000

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

Thread

problems with programs larger than 4K with Keil MCB2140

problems with programs larger than 4K with Keil MCB2140

2006-02-27 by nicolkb1

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!

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

2006-02-27 by Sagaert Johan

hi

I guess you should set the programming algorithm to the correct flash size:

in Options for target
    tabsheet utilities
        ulink debugger settings
            -> choose a larger flash size then the one selected.

Hope this helps

Johan
Show quoted textHide quoted text
  ----- Original Message ----- 
  From: nicolkb1 
  To: lpc2000@yahoogroups.com 
  Sent: Monday, February 27, 2006 5:44 PM
  Subject: [lpc2000] problems with programs larger than 4K with Keil MCB2140


  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!








  SPONSORED LINKS Microcontrollers  Microprocessor  Intel microprocessors  
        Pic microcontrollers  


------------------------------------------------------------------------------
  YAHOO! GROUPS LINKS 

    a..  Visit your group "lpc2000" on the web.
      
    b..  To unsubscribe from this group, send an email to:
     lpc2000-unsubscribe@yahoogroups.com
      
    c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


------------------------------------------------------------------------------



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

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]

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.