The original program realizes state machine transition through on-board switches. In order not to use on-board switches, I made corresponding modifications in the program, as follows:
After the above settings, the program successfully jumps to the next state, that is stateCalib(),then , the program enters stateAlign( ).
But the problem occurred. In this program, GDU errors were found, as shown in the figure:
I want to know why and how to avoid
Best regards
Hello @fanlikang,
Can you read the DGU registers?
Which GDU error flags do you see?
Registers GDUDSE, GDUF.
Thanks,
BR, Daniel
Hi @fanlikang,
I need mention that the demo is provided "as is" and we don't support custom changed in the demo.
Anyway, the GDU detects desaturation error on LS[1].
The desaturation error detection is described in the RM, Section 18.4.5 Desaturation Error.
It also detects an overcurrent condition, which is likely caused by the desaturation error.
RM, Section 18.4.8 Current Sense Amplifier and Overcurrent Comparator.
Regards,
Daniel
Thank you for your answer. I'm trying to solve this problem according to your suggestion