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

failed to write blinky app via nrfconnect programmer

Hello

Development environment: mac

h/w nrf52840 dongle connected via usb

compiler: gcc-arm-none-eabi-7-2018-q2-update

Updated nrf5sdk/examples/ble_peripheral/ble_app_blinky/pca10059/s140/armgcc/ble_app_blinky_gcc_nrf52.ld as follows

/*
MEMORY
{
  FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xd9000
  RAM (rwx) :  ORIGIN = 0x20002300, LENGTH = 0x3dd00
}
*/

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0xdf000
  RAM (rwx) :  ORIGIN = 0x20000008, LENGTH = 0x3fff8
}

make creates the following hex file under _build

-rw-r--r--    1 user  staff    79842 Nov  3 18:29 nrf52840_xxaa.hex

Tried to write this file using nrfconnect programmer. It appears to write the file but the device is then turned off. Expected it to reset and run the program.

What am i missing? Appreciate your help.

Parents Reply Children
  • Thank you Kenneth. Appreciate your help. Your answer helped me with look for examples that do not require a softdevice and i found them under peripheral which included blinky app which do not use ble and hence do not require a softdevice. Keeps it simple and i can do it via command line which is what i was looking for.

    Appreciate the different options you provide for development. Keep up the good work.

Related