Hello,
According to your description, it seems that your bootloader application has written the application incorrectly into memory.
I would like to better understand your bootloader. Let me check a few details.
What is the start/end address of the application and bootloader?
Which peripheral do you use to upgrade the app or how do you upgrade the app?
Have you tried to debug the code when the bootloader writes incorrect data?
Thank you.
Best Regards,
Diana