This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems with the j-link debugger on nrf51 dongle

Hi, 

I managed to compile and run(?) my first two programs for nrf51 dongle on Keil uVision, however while i think they run I cannot make the debugger work and see what they do.

The UART outputs is emply, both in the uVision and when I try the Termite terminal. Well on termite I can get some garbage, but no matter what settings I use there I cannot get it to show anything human readable. Then I found the J-link web control panel. And on there is subpage showing log. Most of the log, while the application is running looks like this:

T4DC0 443:948.711 JLINK_IsHalted()
T4DC0 443:949.376 - 0.675ms returns FALSE
T4DC0 444:050.450 JLINK_HasError()
T4DC0 444:050.530 JLINK_IsHalted()
T4DC0 444:051.235 - 0.796ms returns FALSE
T4DC0 444:152.242 JLINK_HasError()
T4DC0 444:152.319 JLINK_IsHalted()
T4DC0 444:153.129 - 0.849ms returns FALSE
T4DC0 444:253.916 JLINK_HasError()
T4DC0 444:254.008 JLINK_IsHalted()
T4DC0 444:254.879 - 0.910ms returns FALSE
T4DC0 444:355.449 JLINK_HasError()
T4DC0 444:355.820 JLINK_IsHalted()

How can I fix this? Thanks
Parents Reply
  • For the teminal software I'm using "Termite". The nrfjprog --eraseall has helped!!! It works now. I can see a series of messages: APP:INFO:
    FE F8 4C 29 99 31 12 71 D1 98 F2 96 E0 DB AB 15 þøL).1.q..ò.à.«.
    APP:INFO:
    APP:INFO:Random Vector:
    APP:INFO:
    98 7B 3B 28 9D 99 A0 97 6F 73 ED F0 AD 36 23 AF .{;(.. .osíð.6#¯
    APP:INFO:

    Wow, Can you please explain what was actually wrong?

Children
No Data
Related