6 years, 8 months ago.

How to flash blinky with nrfjprog

``` mbed compile -m NRF52_DK -t GCC_ARM flash Building project mbed-os-example-blinky (NRF52_DK, GCC_ARM) Scan: . Scan: env Scan: mbed Scan: FEATURE_BLE +-----+-+-+--+

Module.text.data.bss

+-----+-+-++

Fill66425
Misc31348248885
hal462048
platform11594265
rtos45144360
rtos/rtx579561761624
targets/TARGET_NORDIC789220805
Subtotals4933426967212

+-----+-+-++ Allocated Heap: 41340 bytes Allocated Stack: 2048 bytes Total Static RAM memory (data + bss): 9908 bytes Total RAM memory (data + bss + heap + stack): 53296 bytes Total Flash memory (text + data + misc): 52030 bytes

Image: ./BUILD/NRF52_DK/GCC_ARM/mbed-os-example-blinky.hex [mbed] Detected "LPC2368" connected to "/run/media/bernhard/JLINK" and using com port "/dev/ttyACM0" ```

yields no errors but the LED does not blink.

Same for

``` /opt/nrfjprog/nrfjprog family NRF52 program ./BUILD/NRF52_DK/GCC_ARM/mbed-os-example-blinky.hex ```

It does not matter if I do a power cycle, press any of the buttons.

Flashing via the filesystem does work.

So I assume that either I am missing a commandline switch which must be not obvious or something different I am not aware of.

Can anyone shed some light on this?

Be the first to answer this question.