Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello Everyone,
I'm trying to read MCU serial number using IAP command (58). Whenever I try to call the IAP routine located at 0x1FFF1FF1, it ends up with HardFault. It seems that something guards that memory address from executing (however I can read from that). Has anybody encounter this problem and know what is the problem ? Here is the code snippet and HardFault dump (mbedOS 5.11.1) :
typedef void (*IAP)(uint32_t *, uint32_t *); uint32_t command[5] = { 58, 0, 0, 0, 0 }; uint32_t output[5] = { 0, 0, 0, 0, 0 }; IAP iap_entry = (IAP)(0x1FFF1FF1); iap_entry(command, output);