cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupts in SBSFU for STM32F429

fstaffa
Visitor

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 

OTG_HS_IRQn and possibly others) but when the code tries to setup the interrupt and its priority with
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

0 REPLIES 0