4 posts / 0 new
Last post
Cusko
Offline
Last seen:3 years 3 weeks ago
加入:2014-09-24 14:43
Debug with Keil

I have a problem with a real-time debugging in uVision. When I hit stop button in debug session I see the program waits in
while ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP) {};
If I comment this line I get a lot of errors. How can I debug in a realtime with uVision?

gcblair
Offline
Last seen:4 years 8 months ago
Master
加入:2014-09-08 10:21
Hi,

Hi,

I had the same problem. Basically because of the low power modes the application will not work with debugging. What you need to do is disable lower power modes and comment this line (and I think the one after) and it will work fine

Cusko
Offline
Last seen:3 years 3 weeks ago
加入:2014-09-24 14:43
谢谢。Where can I disable low

谢谢。我在哪里可以禁用低功率模式?

JE_Dialog
Offline
Last seen:6 days 2 hours ago
Staff
加入:2013-12-05 14:02
Hello Cusko,

Hello Cusko,

per another thread :

"Deep sleep or extended sleep conflicts with the J-Link debugger. You have to stop the debugger for the device to start advertising. You can also disable (undefine) both sleep modes in the da14580_config.h file of each project, this will allow you to also use the debugger."

BR JE_Dialog