Upgrading the bootloader is a good idea. Also, make sure you disable interrupts before the call to IAP and restore them afterwards. --- In lpc2000@yahoogroups.com, "burner_itfi" <burner_itfi@h...> wrote: > > --- In lpc2000@yahoogroups.com, "albin_martinsson" <fredrik_m@t...> wrote: > > > > Hi > > > > I really need some IAP help for the LPC2129. > > > > I need to reprogramm the code area in my application and this is > > done in my own bootloader. > > > > My routines follows the IAP commands that philips has in theire > > applicatione notes. > > > > like this... > > > > #define IAP_LOCATION 0x7FFFFFF1; > > > > typdef void (*IAP)(unsigned int[], unsigned int[]); > > > > unsigned int command[5]; > > unsigned int result[2]; > > IAP iap_entry; > > > > > > .... in a test function i do like this to read the part ID > > iap_entry = (IAP)IAP_LOCATION; > > command[0] = 54; > > result[0] = 0; > > > > iap_entry(command,result); > > print_hex(result[0]); > > > > The problem is that my code will hang when iap_entry is called... > > Why does it do this??? > > > > Im using GCC. > > > > Anyone now about this problem and how to solve it? > > > > Thanks.... /Albin Martinsson > > hello > > i have had the same problem. When i want to call the iap_entry > function the processor hang up. > > I have said the gcc that it is thumb code but it still don't work. > > The solution was that i update the onchip philips bootloader to the > actual version 1.63. And now it still works perfect. > > i hope i can help you with this solution. > > best regards Tobi
Message
Re: I need IAP help...
2004-10-28 by dave_albert
Attachments
- No local attachments were found for this message.