Hi All,
I am working on OAD. I was able to flash Image A and threw BLE Device Monitor I was able to send second image Image B. Once transformation completed we are able to jump into Image B. After that in Image B I have implemented characteristic profile to invalidate the second image when new image is available.
This is the code I was using to invalidate the second image .
uint16_t crc[2] = {0x0000, 0x0000};
// Invalidate the image.
OADTarget_writeFlash(OAD_IMG_R_PAGE, OAD_IMG_R_OSET + OAD_IMG_CRC_OSET,
(uint8_t *)crc, 4);
// Reset.
HAL_SYSTEM_RESET();
I was able to invalidate the image and board reset was happening. But after that my bootloader is not jumping into Image A. It is in non responding state. But if I do hardware reset then it is jumping into Image A Application.
Can anyone faced this kind of issue? Why we need hardware reset to jump into Image A. Do I am doing anything wrong here.
Thanks for your help in advance.
Thanks,
Siva.