Hi,
I have an application that has initialized the KL27Z256 microcontroller and is stuck in an endless loop. I try to connect to the microcontroller from USBDM - I set the Startup options to "Connect to running target" and "Halt Target", but when I try, I get an error saying "
Cannot access memory at address 0x746
Failed to execute MI command:
-break-insert -t main
"
Any idea what could be wrong?
Uri
已解决! 转到解答。
OK, thanks. Initially I couldn't connect while issue a reset, since that would cause the bootloader to run first, causing the USB enumeration to fail. Now that I have managed to program the security bytes I have disabled the bootloader so that issuing a reset is not a problem anymore.
Uri
Hi Uri,
I set up a KL27 running a small loop with a printf so I could see that it was executing.
I was able to connect to the target although it complained about thread list which I don't understand. The debugger display was also not initially synchronized so it could certainly do with some improvement.
It is possible that it cannot connect to a target due to a few reasons such as disabled debug interface pins or the target has halted with a bus fault. The only reliable connection process is with a target reset and even then it may not be possible.
Other than that I can't really suggest a reason.
bye
OK, thanks. Initially I couldn't connect while issue a reset, since that would cause the bootloader to run first, causing the USB enumeration to fail. Now that I have managed to program the security bytes I have disabled the bootloader so that issuing a reset is not a problem anymore.
Uri