Jump to the application from the bootloader with Dynamic Flash ECC
I'm using the bootloader for the PIC32MZEFM100 with USB type device with Harmony 2.06 and XC32 v 2.30.
The bootloader works very well, when the hexadecimal is downloaded using the PC software and a "JUMP" command is issued to the application it works very well.
But when the hardware is turned off and then turned on again, the system enters bootloader mode again and if a "Jump" command is issued without updating the application firmware, it jumps correctly to the user application.
/* Check the trigger memory location and return true/false. */
if (*(uint32_t *)(APP_RESET_ADDRESS)== 0xFFFFFFFF)
Debugging the code I have seen that although the program memory saved by the user application has been programmed correctly, it is always read 0xFFFFFFFF and it seems to me that it is due to the fact of using the Dynamic Flash ECC mode.
Any suggestions on how to solve this problem?