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

nRF52840 Dongle Programming Tutorial, SES Project/Options menu disable

I am trying to setup (Nordic Edition) SES 5.10d for an example to download to the nRF52840 Dongle.

The tutorial* helpfully discusses how to avoid overwriting the MBR and bootloader on the Dongle.

In SES, the Project/Options menu item is disabled, and I cannot find how to enable it, to set :

Update the Preprocessor Definitions:  

```
BOARD_PCA10059
BSP_DEFINES_ONLY
CONFIG_GPIO_AS_PINRESET
FLOAT_ABI_HARD
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
NRF52840_XXAA
```
Adjust the linker configuration:  

```
Linker/Section Placement Macros
FLASH_PH_START=0X0
FLASH_PH_SIZE=0X100000
RAM_PH_START=0X20000000
RAM_PH_SIZE=0X40000
FLASH_START=0X1000
FLASH_SIZE=0XDF000
RAM_START==X20000008
RAM_SIZE=0X3FFF8
```
Any guidance?
  • Hi,

    The instructions in the tutorial are valid for the nRF5 SDK. If you are using the nRF Connect SDK the Options menu will not be enabled, so I assume that is the case?

    With nRF connect SDK the general concept is stil valid (the app must start at 0x1000 instead of 0, and leave place for the USB bootloader at the end of the flash), but everything related to how you build your application is completely different and not covered by the tutorial. I most cases the only thing you have to do to build a NCS project for the nRF52840 dongle is to select that the board is nrf52840dongle_nrf52840.

  • Ah, so I did install the nRF5 SDK for Thread and Zigbee a couple of weeks ago, and likely opened one of those samples, when I set the above parameters.  So today, before I sent my request:

    - updated to nRF Connect 3.6

    - updated to nRF Connect SDK v1.4.0

    Following your response just now I:

    - select "Open IDE" from the Toolchain Manager

    - then "File/Open nRF Connect SDK Project ...", which opens an nRF Connect Options dialog (very nice)

    - choose Blinky (yes the Project/Options is disabled, but if I understand your answer, for my benefit)

    - build, locate the zephyr.hex file, flash it to the Dongle with nRF Connect Programmer (since dongle does not have JLink)

    - repeat the flash to prove I did not overwrite the MBR and bootloader

    This worked. 

    Thank you for clarifying that the Nordic SES + nRF Connect SDK correctly configure options for the Dongle.

Related