I have motor code running on a STM32G431 MCU and am using Keil IDE with J-Link debugger. When the motor is stopped I can see timer registers updating and can inspect watch variables. I'm also have a simple uart command interface I use to start/stop the motor and read some variables.
When I start the motor the Keil IDE watch window stops updating. I have it set to periodic update under the View menu but nothing updates. I can still communicate over the uart interface but the J-link seems locked out. Is this a problem with priority level settings?
Also, if the motor code is already running I cannot connect with the J-link. I need to issue a command to stop the motor then I can connect the debugger and read registers or start the motor.
Any suggestions? ---- Right now I am very hampered in debugging the code under these conditions.
Thanks,
BT
Additions: It's been 3 weeks and I'm still stuck on this problem. The debugger downloads the code to flash and runs with the debugger displaying properly but as soon as the motor start command is given the debugger crashes. The motor runs and I can still communicate over the uart but there is no updating of debugger windows which are now trash. Even if I give the command to stop the motor, which it does, the debugger is long gone. Any suggestions how to debug this?
When I start the motor the Keil IDE watch window stops updating. I have it set to periodic update under the View menu but nothing updates. I can still communicate over the uart interface but the J-link seems locked out. Is this a problem with priority level settings?
Also, if the motor code is already running I cannot connect with the J-link. I need to issue a command to stop the motor then I can connect the debugger and read registers or start the motor.
Any suggestions? ---- Right now I am very hampered in debugging the code under these conditions.
Thanks,
BT
Additions: It's been 3 weeks and I'm still stuck on this problem. The debugger downloads the code to flash and runs with the debugger displaying properly but as soon as the motor start command is given the debugger crashes. The motor runs and I can still communicate over the uart but there is no updating of debugger windows which are now trash. Even if I give the command to stop the motor, which it does, the debugger is long gone. Any suggestions how to debug this?
The post was edited 1 time, last by btremaine: Looking for more inputs from community ().