Hello,
My hardware and software runs when the J-Link debugger is connected with the KV56 MCU, but if I disconnect the debugger via stop in MCUXpresso the code freezes and also if I power the board without the debugger connected the code does not run.
Why would this be? Is there something I need to do in MCUXpresso to get KV56 to run without debugger connected?
已解决! 转到解答。
It looks like the debugger unlocks the DWT but you have to do this yourself if not using the debugger. See this post: https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58-DWT-Delay-Problem-DWT%E5%BB%B6%E6%97%B6%E...
I had to add this to the CM7 header
Then I had to add unlocking the DWT registers
It looks like the debugger unlocks the DWT but you have to do this yourself if not using the debugger. See this post: https://community.nxp.com/t5/Kinetis-Microcontrollers/KV58-DWT-Delay-Problem-DWT%E5%BB%B6%E6%97%B6%E...
I had to add this to the CM7 header
Then I had to add unlocking the DWT registers