Hi, thanks for you time.
I'm working on a LPC5536, I have created a blank project for LPC55
And I have A BusFault when I execute the following code :
static uint32_t debug_test[16];
int main(void)
{memcpy(debug_test, (void*) 0x24000, sizeof(debug_test));
while(1);
}
I don't know if I execute a more complex code, and add RTT client, I can print data and I have :
segger RTT enabled!
flash initialised
total size: 0x0003dc00
block size: 0x00000000
sector size: 0x00008000
page size: 0x00000200
flash status before the mem-copy :
CMD 00000000
EVENT 00000000
STARTA 00003de0
STOPA 00000000
DATAW[0] 00000000
DATAW[1] 00000000
DATAW[2] 00000000
DATAW[3] 00000000
INTEN_CLR 00000000
INTEN_SET 00000000
INTSTAT 00000004
INTEN 00000000
INTSTAT_CLR 00000000
INTSTAT_SET 00000000
MODULE_ID c40a2100INTSTAT decomposition
LAST COMMAND IS FINISHED
let's try the mem-copy now :HARD FAULT OCCURED
flash status inside the hard fault :
flash status :
CMD 00000000
EVENT 00000000
STARTA 00003de0
STOPA 00000000
DATAW[0] 00000000
DATAW[1] 00000000
DATAW[2] 00000000
DATAW[3] 00000000
INTEN_CLR 00000000
INTEN_SET 00000000
INTSTAT 0000000c
INTEN 00000000
INTSTAT_CLR 00000000
INTSTAT_SET 00000000
MODULE_ID c40a2100INTSTAT decomposition
LAST COMMAND IS FINISHED
ECC ERROR
Any idea on what can cause this ? did I enabled any kind of protection ?
Hello,
This is not valid:
memcpy(debug_test, (void*) 0x24000, sizeof(debug_test));