Custom UART Bootloader code - need to Verify application code before jump and execute it.
hello,
I already have developed a custom uart bootloader program on STMcube IDE for STM32f446 (Nucleo board) and an host C# app to fully functionality of bootloader services and i functional well.
The problem is that i need to add feature which make sure or verify the integrity of the user app code before run it (i.e. after it receive Go_to_User_App command from C# app/tool). the implementation i made is that is to append the 32-bits CRC code of the user app at the begining of the .bin file. so, the 1st word of app is now CRC code of app. and 2nd word is the MSP. and 3rd word is the REST handler. after doing that the user app is not running as expected!
so, need more help for identify the issue up there please.
below is screenshots illustrations.
*this is the memory layout after flashing the user app code with appending its CRC at the 1st word at sector 2 (address of 0x08008000)*
*this is the C function in bootloader code that perform the jump to user app without checking the CRC of app code yet*

