Fail to connect to running application from USBDM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fail to connect to running application from USBDM

ソリューションへジャンプ
1,196件の閲覧回数
uribendelac
Contributor III

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

0 件の賞賛
返信
1 解決策
964件の閲覧回数
uribendelac
Contributor III

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
964件の閲覧回数
pgo
Senior Contributor V

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

0 件の賞賛
返信
965件の閲覧回数
uribendelac
Contributor III

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

0 件の賞賛
返信