![]() ![]() ![]() For our setup, we would like to manipulate an I/O pin when the debugger has halted /started the MCU. Script debugger run on the main thread code#When you halt the code execution of the MCU, we would also like the motor to stop, otherwise it can fly away and cause damage as the timer pins are not actively being managed by the MCU code anymore (execution is halted). What can happen is that we would like to set breakpoints, halt, and debug the code on the MCU but the MCU can be driving the timer pins at the same time that the motor is active. We have a main MCU that drives timer pins that go into a PLD drive, which ultimately drives a very large motor. We would just like to get something like the aforementioned events. The specifics of the code we need to write to manipulate the pins can be discussed and is not important as a start. When these events occur, we would like to write script code to write to unused GPIO pins of the JTAG / SWD port. type of events do not exist and are not scriptable. Looking at the scripting interface, something like OnBeforeHalt, OnAfterHalt, OnBeforeExitHalt, OnAfterExitHalt, etc. Our company has a use case where we are debugging an MCU using JLINK and we would like to manipulate GPIO pins of the debugger port when the JLINK halts the MCU or exits halt and goes into run. I have performed a rudimentary search already. This may be possible or information available elsewhere, but I don't want to go sifting through the gobs of posts and would rather just ask directly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |