AnsweredAssumed Answered

LPC1768: IAP reinvoke results in hard fault

Question asked by Volker Weber on Nov 7, 2017
Latest reply on Nov 7, 2017 by Volker Weber

Hi there,

 

I am trying to use the reinvoke functionaliry of the IAP set on my LPC1768 but it always results in an Hard Fault error (see attached picture). To use the reinvoke feature I do the following as suggested in the manual:

 

__disable_irq();

LPC_SC->PLL0FEED  = 0xAA;  
LPC_SC->PLL0FEED  = 0x55;   
LPC_SC->PLL0CON   = 0;   
LPC_SC->PLL0FEED  = 0xAA;   
LPC_SC->PLL0FEED  = 0x55;   
LPC_SC->CLKSRCSEL = 0;   

unsigned int cmd[5], res[5];   
cmd[0] = 57; 
__set_MSP(*((uint32_t *) 0x1FFF0000));
iap_entry(cmd, res);

 

Are there any mandatory steps before trying to use this, e.g. regarding the timing? As I cannot debug the functions inside the boot rom memory area (0x1FFF 0000 - 0x1FFF 1FFF) I do not see how to progress here.

 

Any help is appreciated, thanks in advance

Attachments

Outcomes