Custom bootloader running HEX file
I am attempting to make a custom bootloader for the STM32L431 series uC.
using the st videos on the subject (https://www.youtube.com/watch?v=OkUQ3iMmiYQ&list=PLnMKNibPkDnEb1sphpdFJ3bR9dNy7S6mO&ab_channel=STMicroelectronics), I managed to load the hex file from another project (just the data) into the flash starting at an address set by FLASH_APP_ADDR in the bootloader code. I manually verified that the flash is exactly the same as in the original project for this region with all the hex data.
My question is, how do I then run this code? The go2App function crashes with hardfault and I'm pretty sure I'm missing something very obvious, but I am very new to bootloaders.
My final goal is to allow the bootloader to receive this data via canbus and write it manually, but for that i'll have to understand how to save/run data from a hex file in this bootloader.
