4 posts / 0 new
Last post
Cusko
Offline
Last seen: 4 years 9 months ago
Joined: 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: 6 years 5 months ago
Master
Joined: 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: 4 years 9 months ago
Joined: 2014-09-24 14:43
Thx. Where can I disable low

Thx. Where can I disable low power modes?

JE_Dialog
Offline
Last seen: 1 year 1 month ago
Staff
Joined: 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