Skip to main content
Andrea Canepa
Senior
June 13, 2019
Question

MCSKD 5.4.0 HardFault

  • June 13, 2019
  • 4 replies
  • 1445 views

I did some tests using the MCSDK 5.4.0, I generated the project using MC WorkBench for TrueStudio and CubeMX 5.2.1.

The hardware consists of NUCLEO-F303RE and X-NUCLEO-IHM16M1.

The problem is the following: when I try to start the engine with WorkBench Monitor, the "Software Error" signal comes on:0690X000008ichgQAA.jpg

While the TrueSTUDIO debug hangs at the "HardFault" function:

0690X000008iciFQAQ.jpg

Looking at the "Thread" we see that the function that generated the HardFault should be "RUC_FirstAccelerationStageReached":

0690X000008icioQAA.jpg

But at this point I don't know what to do: I expected everything to work well without a hitch.

Regards

Andrea

This topic has been closed for replies.

4 replies

Andrea Canepa
Senior
June 13, 2019

UPDATE: the same project realized with MCSDK 5.3.3 does not give problems. The engine runs normally.

Andrea

Andrea Canepa
Senior
June 17, 2019

UPDATE 2: the same project generated using the MCSDK 5.4.0 FULL does not give problems.

Therefore it is likely that the problem occurs with 5.4.0 when it is in normal version (ie not FULL).

cedric H
Technical Moderator
July 9, 2019

Hello,

I answered to this issue in the following post :

https://community.st.com/s/question/0D50X0000B07Hm8SQE/always-have-hard-faults-on-mcsdk-540

Regards

Cedric

Laurent Ca...
Senior III
June 22, 2021

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards