Yahoo Groups archive

Lpc2000

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

Message

Re: I need IAP help...

2004-10-27 by burner_itfi

--- 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

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.