2021-12-14 12:05 PM
Hi, I am using board B-G431B-ESC1 and Motor Control 5.Y.3.
When controlling the motor through the Motor Pilot and increasing the current, I get a recurring Bad CRC Header error.
There is a neighboring forum thread where this is discussed
And there was a proposal to reduce the speed of USART, but this did not lead to anything for me, I tried it at speeds of 115200 and 1843200.
If the motor is standing or moving without load, everything is fine, but as soon as the current increases and reaches, for example, 5000 units of s16A, then this error begins to appear.
Solved! Go to Solution.
2021-12-14 01:10 PM
Hello @DTort.1 ,
The message you are referring to is not related to your issue.
If the communication is OK at low current and errors are increasing when your current increases, it makes me think that we have electrical disturbance on the UART link.
Could you try to configure UART pin internal pull-up as shown in the picture attached ?
Second point, could you tell me what is the stlink version used by the embedded stlink ?
Regards
Cedric
2021-12-14 01:10 PM
Hello @DTort.1 ,
The message you are referring to is not related to your issue.
If the communication is OK at low current and errors are increasing when your current increases, it makes me think that we have electrical disturbance on the UART link.
Could you try to configure UART pin internal pull-up as shown in the picture attached ?
Second point, could you tell me what is the stlink version used by the embedded stlink ?
Regards
Cedric
2022-07-23 05:51 AM
Hello,
I had similar problem, and even worse, where stlink was dropping the connection completely.
My board is NUCLEO-F446RE, extension board and IPM15B power stage.
I configured UART pins as recommended but that didn't help.
Then I took my trifield meter and realized that there is a lot of RF radiation around the board. I have found out that this radiation was coming from 15V power supply you have to connect to power stage. I disconnected this PS and connected workbench DC power supply, and the problem disappeared.
So this small PS was causing disturbances.