Check availability of semihosting in LPCOpen

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

Check availability of semihosting in LPCOpen

ソリューションへジャンプ
676件の閲覧回数
vitaliylivnov
Contributor III

Hello! I used semihosting in my project with LPCOpen library. Everything works well, however, if I turn off the debugger from the microcontroller, the program stops running. Can I perform a software check on the availability of semihosting, and, if it is not available, disable debug output?

ラベル(1)
タグ(3)
1 解決策
535件の閲覧回数
converse
Senior Contributor V

You can't check if semihosting is available, but you can  check if the application is running under debug control (which may be good enough for your purposes). To do this, check bit 0 of the Debug Halting Control and Status Register (DHCSR), which is located at 0xE000EDF0.

More info here:

ARM Information Center 

元の投稿で解決策を見る

1 返信
536件の閲覧回数
converse
Senior Contributor V

You can't check if semihosting is available, but you can  check if the application is running under debug control (which may be good enough for your purposes). To do this, check bit 0 of the Debug Halting Control and Status Register (DHCSR), which is located at 0xE000EDF0.

More info here:

ARM Information Center