Hi Carsten! Unfortunately it didn´t work ... I did the following code:
// LPC1518 IAP accesses
#define IAP_Read_UID_Command 58
#define IAP_LOCATION 0x03000200
unsigned int IAP_command[5];
unsigned int IAP_result[5];
typedef void (*IAP)(unsigned int [],unsigned int[]);
IAP iap_entry;
IAP_command[0]=58;
iser0=NVIC->ISER[0]; // temp copy
iser1=NVIC->ISER[1]; // temp copy
NVIC->ICER[0]=0xFFFFFFFF; // block IRQs
NVIC->ICER[1]=0xFFFFFFFF; // block IRQs
iap_entry(IAP_command, IAP_result); // read UID
NVIC->ISER[0]=iser0; // restore
NVIC->ISER[1]=iser1; // restore
The point is: my program stoped at iap_entry(IAP_command, IAP_result) command and didn´t run ... it didn´t "came back" to main program ...
Any tip? I´m doing something wrong ... but don´t know what ...
Thanx in advance!