cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 - Secure Manager - BusFault

Lunarship
Visitor

Hello,

long time lurker, now with an issue that I would like to solve.

 

I developed a firmware that runs standalone without issue. I would like to use the secure manager on my STM32H573VI microcontroller.

I followed the procedures at this link: https://wiki.st.com/stm32mcu/wiki/Security:How_to_make_your_application_compatible_with_Secure_Manager 

 

and I am able to run the python provisioning.py --sfi-flash command. Then from the cube ide I can debug my program that is written with cmake and the cubemx template.

Since I am using threadx I set TIM6 as a time base for the HAL.

What I observe is the following...

- if I run the application straight away, I do not see the tick increment. 

- I set an __enable_interrupt() before HAL_Init() and I see that the tim6 interrupt is fired.

Then in the ISR, I see that with the first line of HAL_TIM_IRQHandler, when reading htim->Instance->DIER then I land in a BusFault_Handler. 

 

I run out of ideas. No clue about how to deal with hit.

There is someone that solved a situation similar to this one?

 

thank you in advance

 

0 REPLIES 0