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

jlink firmware reset vs. nrfgo

Hi,

When I reset my nrf51822 beacon firmware using nrfgo, it works just fine. When I try to reset the firmware using jlink, I end up having problems. There are no errors, but the board is not in the correct state (blue blinking light). It does not matter if I wipe the board first with the jlink sequence, or within nrfgo. I seem to be missing some parameter or setting when using jlink. Can someone point me to the light?


J-Link>device nrf51822_xxac
Info: Device "NRF51822_XXAC" selected.
Reconnecting to target...
Info: Found SWD-DP with ID 0x0BB11477
Info: Found Cortex-M0 r0p0, Little endian.
Info: FPUnit: 4 code (BP) slots and 0 literal slots
Info: CoreSight components:
Info: ROMTbl 0 @ F0000000
Info: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
Info: ROMTbl 1 @ E00FF000
Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
Info: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
J-Link>speed 4000
Target interface speed: 1000 kHz
J-Link>loadbin firm\softdevice.hex 0x0
Downloading file [firm\softdevice.hex]...Info: J-Link: Flash download: Flash programming performed for 2 ranges (84992 bytes)
Info: J-Link: Flash download: Total time needed: 1.481s (Prepare: 0.091s, Compare: 0.032s, Erase: 0.000s, Program: 1.341s, Verify: 0.008s, Restore: 0.007s)
O.K.
J-Link>loadbin firm\bootloader.hex 0x3c000
Downloading file [firm\bootloader.hex]...Info: J-Link: Flash download: Flash programming performed for 2 ranges (16384 bytes)
Info: J-Link: Flash download: Total time needed: 0.493s (Prepare: 0.124s, Compare: 0.006s, Erase: 0.000s, Program: 0.314s, Verify: 0.003s, Restore: 0.044s)
O.K.
J-Link>loadbin firm\app.hex 0x16000
Downloading file [firm\app.hex]...Info: J-Link: Flash download: Flash programming performed for 1 range (13312 bytes)
Info: J-Link: Flash download: Total time needed: 0.432s (Prepare: 0.123s, Compare: 0.003s, Erase: 0.000s, Program: 0.261s, Verify: 0.000s, Restore: 0.043s)
O.K.
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
J-Link>g
J-Link>
Parents Reply Children
  • I get the same results using loadfile. Strangely enough loadbin works with my application hex file on OSX. Thought I had read somewhere that a few versions back loadbin started working with hex files but then again, that would certainly explain this.

    The hex files I am loading are the factory built hex files from the smart beacon firmware provided by Nordic. Outside of nrfgo, is there a way for j-link to load the hex files?

    SEGGER J-Link Commander V4.98c ('?' for help)
    Compiled Apr 23 2015 20:22:10
    DLL version V4.98c, compiled Apr 23 2015 20:21:50
    Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jun 16 2015 17:08:23
    Hardware: V1.00
    S/N: 681784956
    VTarget = 3.300V
    Info: Found SWD-DP with ID 0x0BB11477
    Info: Found Cortex-M0 r0p0, Little endian.
    Info: FPUnit: 4 code (BP) slots and 0 literal slots
    Info: CoreSight components:
    Info: ROMTbl 0 @ F0000000
    Info: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
    Info: ROMTbl 1 @ E00FF000
    Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
    Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
    Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
    Info: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
    Found 1 JTAG device, Total IRLen = 4:
    Cortex-M0 identified.
    Target interface speed: 100 kHz
    J-Link>device nrf51822
    Info: Device "NRF51822_XXAA" selected.
    Reconnecting to target...
    Info: Found SWD-DP with ID 0x0BB11477
    Info: Found Cortex-M0 r0p0, Little endian.
    Info: FPUnit: 4 code (BP) slots and 0 literal slots
    Info: CoreSight components:
    Info: ROMTbl 0 @ F0000000
    Info: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
    Info: ROMTbl 1 @ E00FF000
    Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
    Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
    Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
    Info: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
    J-Link>speed 4000
    Target interface speed: 1000 kHz
    J-Link>loadfile firm\softdevice.hex
    Downloading file [firm\softdevice.hex]...Info: J-Link: Flash download: Flash programming performed for 2 ranges (84992 bytes)
    Info: J-Link: Flash download: Total time needed: 1.459s (Prepare: 0.091s, Compare: 0.031s, Erase: 0.000s, Program: 1.319s, Verify: 0.009s, Restore: 0.007s)
    O.K.
    J-Link>loadfile firm\app.hex
    Downloading file [firm\app.hex]...Info: J-Link: Flash download: Flash programming performed for 1 range (13312 bytes)
    Info: J-Link: Flash download: Total time needed: 0.437s (Prepare: 0.124s, Compare: 0.003s, Erase: 0.000s, Program: 0.264s, Verify: 0.000s, Restore: 0.043s)
    O.K.
    J-Link>loadfile firm\bootloader.hex
    Downloading file [firm\bootloader.hex]...Info: J-Link: Flash download: Flash programming performed for 2 ranges (16384 bytes)
    Info: J-Link: Flash download: Total time needed: 0.495s (Prepare: 0.126s, Compare: 0.006s, Erase: 0.000s, Program: 0.315s, Verify: 0.003s, Restore: 0.043s)
    O.K.
    J-Link>r
    Reset delay: 0 ms
    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
    J-Link>g
    J-Link>erase
    Erasing device (nRF51822_xxAA)...
    Info: J-Link: Flash download: Total time needed: 5.670s (Prepare: 0.163s, Compare: 0.000s, Erase: 5.423s, Program: 0.000s, Verify: 0.000s, Restore: 0.083s)
    Erasing done.
    J-Link>loadfile firm\softdevice.hex
    Downloading file [firm\softdevice.hex]...Info: J-Link: Flash download: Flash programming performed for 4 ranges (113664 bytes)
    Info: J-Link: Flash download: Total time needed: 2.194s (Prepare: 0.177s, Compare: 0.146s, Erase: 0.031s, Program: 1.739s, Verify: 0.014s, Restore: 0.084s)
    O.K.
    J-Link>loadfile firm\bootloader.hex
    Downloading file [firm\bootloader.hex]...Info: J-Link: Flash download: Flash download into internal flash skipped. Flash contents already match
    Info: J-Link: Flash download: Total time needed: 0.222s (Prepare: 0.125s, Compare: 0.052s, Erase: 0.000s, Program: 0.000s, Verify: 0.000s, Restore: 0.044s)
    O.K.
    J-Link>loadfile firm\app.hex
    Downloading file [firm\app.hex]...Info: J-Link: Flash download: Flash download into internal flash skipped. Flash contents already match
    Info: J-Link: Flash download: Total time needed: 0.288s (Prepare: 0.137s, Compare: 0.094s, Erase: 0.000s, Program: 0.000s, Verify: 0.000s, Restore: 0.057s)
    O.K.
    J-Link>r
    Reset delay: 0 ms
    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
    J-Link>g
    J-Link>
    
Related