Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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 |
+-----+-+-++
Fill | 66 | 4 | 25 |
Misc | 31348 | 2488 | 85 |
hal | 462 | 0 | 48 |
platform | 1159 | 4 | 265 |
rtos | 451 | 4 | 4360 |
rtos/rtx5 | 7956 | 176 | 1624 |
targets/TARGET_NORDIC | 7892 | 20 | 805 |
Subtotals | 49334 | 2696 | 7212 |
+-----+-+-++
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?