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,

    When you use an external debugger and as long as you confirm that you set REG0 correctly, then there is no difference between programming whichever nRF52840. 


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

    You need to tell the debugger what flash region that you are going to write to, so it may not have been set correctly (?)

Reply
  • Hi Maria,

    When you use an external debugger and as long as you confirm that you set REG0 correctly, then there is no difference between programming whichever nRF52840. 


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

    You need to tell the debugger what flash region that you are going to write to, so it may not have been set correctly (?)

Children
No Data
Related