2026-05-12 7:59 AM - last edited on 2026-05-12 8:49 AM by mƎALLEm
Hello,
I've recently managed to modify the SBSFU example for the STM32F413H-Discovery board and adapt it for my STM32F419 mcu, building it and executing it successfully.
Now the issue is, i need to modify the loading mode from serial ymodem to downloading the firmware image from a file inside of an USB stick
To do this, im using the ST driver that is present already in other projects, which requires interrupts (specifically
HAL_NVIC_SetPriority(OTG_HS_IRQn, NVIC_PRIORITYGROUP_4, 0);
HAL_NVIC_EnableIRQ(OTG_HS_IRQn);
There's a reset of the MCU, so how do i make it so that the SBSFU project can use interrupts?
I stumbled upon the AN5056 document where at page 38 talks about interrupt support in the SBSFU, but for the STM32L496 which has a Firewall feature i do not have. Is that still the correct way of proceeding? If so, how?
Best regards