EmbeddedRelated.com
Forums

LPC2106 IAP

Started by David Bermingham March 21, 2004
Hi Peter...
This morning I compiled the code using the eval version of Crossworks and it works perfectly!! No problem with global variables, structures or anything, so think il get my work finished with Crossworks and then try to figure out what im doing wrong with ADS that is causing the problems!!!!
Thanks!
 
 

Peter <p...@codesprite.com> wrote:

> The gcc Startup files have the loop to move .data section and
clear the .bss section before jumping to main so I assume there is a
setting in ADS to do this automatically during assembly? Like I say,
the code wont execute on anything with global variables....I get
either random data or program crash and that it must be due to how
im initializing the micro!

> David.

Hmmm... the C startup code should move all the initialised data and
zero the ZI (.bss) data for you. I can't see that Keil's IDE would
be changing things. We had better take this offline, and post the
fix back to the group (if appropriate) when we've sorted it out.

Peter.



An Engineer's Guide to the LPC2100 Series