How to successfully debug a ST FOC motor control project ?
I'm working on a project where the STMC FOC v4.3 SDK has been used.
Developers of the project are not available for support, and I need to learn the details to implement new features as well as debugging/fixing existing code.
To facilitate my learning, I've bought a P-NUCLEO-IHM001 and generate code using the new version of the SDK. I'm using Keil and the onboard ST-Link to go into debugging, to look at how the code is being executed and trying to get access to some project variables. Of course, I cannot run the motor and simultaneously have breakpoints in the code. So I'm trying to look at some register values, i.e. the DAC and ADC1 registers. When doing this, the motor is spinning, and the Motor Workbench Monitor says that the UI has connection to the MCU, but pressing the "Stop Motor" or "Execute ramp" no longer works. Also, pressing the blue user button and turning the potmeter also has no impact on the motor.
I hope to come across some "How to debug STMC FOC projects", but cannot find any.
Any tips ?
