cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage interrupt while SE secure code is running?

Giulio Dalla Vecchia
Associate II

Hi ST Team,

I'm working on a project where I'm using SBSFU as bootloader (on a STM32H7). When I download the new firmware image, SBSFU reboot the system and start execution (decrypting image, validating and so on...). While SBSFU is doing these actions I would like to update a simple display that is made by 7-segment LEDs, so I need to manage it inside an interrupt routine. I notice that when the code jumps inside SECore code it disables the interrupt for a long time causes flickering on the display.

How can I manage that situation?

Thanks a lot in advance?

GDV

1 REPLY 1
Bubbles
ST Employee

Hi @Giulio Dalla Vecchia​,

the SBSFU is programing flash. It's quite normal that access to flash (same bank) is stalled several milliseconds during the write operation.

I think that with the latest SBSFU it should already be possible to place ISR (and vector table) into SRAM. This should solve your problem.

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.