Associate III
May 15, 2024
Question
Hard Fault with Floating point and DSP
- May 15, 2024
- 2 replies
- 1574 views
I am using STM32F302R8
I have a long code that triggers the Hard Fault interrupt after a few seconds because of these instructions (of the sine in particular):

The theta_fi angle is TIM6->CNT and I need to convert it from q15 to floating point.
I tried with both arm_q15_to_float function of DSP ... and arm_q15_to_float_new found online.
I can't figure out what the problem is.