Thanks for the reply, Im using ARM ADS 1.2 to compile the code! Does anybody know how or if I have to turn on interworking for ADS? Also, I have a routine which has to be executed out of RAM instead of Flash to operate properly. When I change the scatterloading file so that aes.o is loaded in RAM the program never branches to it...its like its not there!! When I check the map file generated by ADS it says the code is located in RAM. Is there a way to set up the scatterloading file so that the routine is copied from Flash to RAM and executed from RAM? Sorry for all the questions! Thanks, David deballendeballen <yahoo@...> wrote: --- In lpc2000@yahoogroups.com, David Bermingham <crwpulsar@y...> wrote: > Yeah, I call iap_entry(command,result) and the next line of the code is printf something and it never calls the printf. I pretty much copied the philips code from the app note because this stuff is new to me!(Like most of it!!!) so it must be incorrect parameter passing?? I guess you are using the GCC compiler and the ARM instruction set? Because I'm using that (along with AsIDE) and had exactly the same problem. After some reading, and googling and some more reading and some assembly debugging we found some clues that lead to the solution. In short: turn on the compiler option '-mthumb-interwork'. This is nessecary since the bootloader function you are accessing is written in Thumb code, see page 193 of the user manual of 2003 okt 02. You should jump from ARM to Thumb using the BX instruction from the ARM instruction set. This is automatically done by your compiler but GCC has this function (thumb-interwork) disabled by default since it generates slightly bigger code. When you switch it on you shuld be fine... Hope that helped! Greetings, Herman --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/lpc2000/ To unsubscribe from this group, send an email to: lpc2000-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Message
Re: [lpc2000] LPC2106 IAP
2004-03-24 by David Bermingham
Attachments
- No local attachments were found for this message.