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

nrf52840 dongle debug with iar i-jet, download warning

I am trying to set up the nrf52840 dongle on IAR using an I-jet for debugging. I have iar version 8.32.1. I am using example project ble_app_blinky from the ble_peripheral examples folder. My preprocessor shows ok I think. It is as follows: 

BOARD_PCA10059
CONFIG_GPIO_AS_PINRESET
FLOAT_ABI_HARD
NRF52840_XXAA
NRF_SD_BLE_API_VERSION=6
S140
SOFTDEVICE_PRESENT
SWI_DISABLE0

I have the latest versions of s140 and the SDK because I have never worked with nordic semi and I have just downloaded everything in these last few days. I have used the P1 to connect the SWDIO, SWCLK, Vref, gnd lines as I usually do when I connect to the I-jet (although I use silabs blue geckos and not nRF52840). I also cut SB2 and soldered SB1.

I compile, link and build fine. The issue is a warning when I try to download to the dongle. I get this:

Fri Feb 01, 2019 11:56:52: Download error at 0x00026000: downloading into non-writable memory. 

and then nothing happens where normally I get put at main(). I can send you the rest of the messages when I do the download but in truth they look fine. This was the only warning during the initialization of the debugging session. 

My goal is to evaluate using the nRF52840 for a future project where it would be a ble peripheral and that is why I started with the example projects in that folder.

Can you help? Thanks, Maria

Parents
  • Hi Maria,

    With regards to programming with the nRF52840 Dongle, there is some other steps to consider than using the regular nRF52840 DK.

    This is well documented in the "nRF52840 Dongle Programming Tutorial".

    Please read through it and if you have any more questions, then I am happy to help out.

    //Martin L.

  • Hi Martin,

    Yes I did read both the nRF52840 Dongle Programming Tutorial and the nRF52840 dongle User's guide.

    As per the user guide for an external source, I have cut the SB2 and soldered the SB1. The I-jet from iar provides the power. I measured the VDD out on the dongle and it has 4.5V so it does seem to get its power from the i-jet via the P1 connector where I have solder the SWD lines plus power and gnd.

    As per the programming tutorial I have made sure that the preprocessor is set to PCA10059. But in truth the example project I chose from Nordic (ble_app_blinky) already had a folder set up for this PCA10059 board. Although my exact case is not covered in the tutorial (external debugger, external power, and IAR workbench), these are the things I understand to be needed to be able to now program via the SWD of the I-jet using IAR workbench.

    Any ideas? Thanks, Maria

Reply
  • Hi Martin,

    Yes I did read both the nRF52840 Dongle Programming Tutorial and the nRF52840 dongle User's guide.

    As per the user guide for an external source, I have cut the SB2 and soldered the SB1. The I-jet from iar provides the power. I measured the VDD out on the dongle and it has 4.5V so it does seem to get its power from the i-jet via the P1 connector where I have solder the SWD lines plus power and gnd.

    As per the programming tutorial I have made sure that the preprocessor is set to PCA10059. But in truth the example project I chose from Nordic (ble_app_blinky) already had a folder set up for this PCA10059 board. Although my exact case is not covered in the tutorial (external debugger, external power, and IAR workbench), these are the things I understand to be needed to be able to now program via the SWD of the I-jet using IAR workbench.

    Any ideas? Thanks, Maria

Children
No Data
Related