Yahoo Groups archive

Lpc2000

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

Message

I need IAP help...

2004-10-25 by albin_martinsson

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

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.