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

Programming nRF52

I've got the nRF52 preview development kit and I am trying to flash a binary in it.

I am using JLink_Linux_V501a_x86_64 the way I was using for nRF51, but I can't get anything written. Even though loadbin reports success, nothing is really written:

J-Link>loadbin out/minimal_xxaa.bin 0
Downloading file [out/minimal_xxaa.bin]...O.K.
J-Link>mem32 0x0, 0x100
00000000 = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 
00000010 = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 
00000020 = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 

Am I doing something wrong? How should I write the binary? The JLink changelog mentions nRF52, though ExpDevList only mentions nRF51-based devices...

Parents
  • What command line are you using to run JLink? You'll need

    JLink -device nrf52 -if swd
    

    That doesn't actually work for me as I don't have my board yet (thanks Mouser) but it does recognise it at least.

    edit:

    ExpDevList for me has this line in it to

    "Nordic Semi", "nRF52", "Cortex-M4", { {0x00000000, 0x00080000}, {0x10001000, 0x00001000} }, {0x20000000, 0x00010000}
    
Reply
  • What command line are you using to run JLink? You'll need

    JLink -device nrf52 -if swd
    

    That doesn't actually work for me as I don't have my board yet (thanks Mouser) but it does recognise it at least.

    edit:

    ExpDevList for me has this line in it to

    "Nordic Semi", "nRF52", "Cortex-M4", { {0x00000000, 0x00080000}, {0x10001000, 0x00001000} }, {0x20000000, 0x00010000}
    
Children
No Data
Related