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

Nrf51 dk not working after download program using segger.

Hi

I segger project get compiled and download successfully but it didn't start work. After put it in  debug mode, it start working even after removed it from debug mode working didn't get affect. only blinky (without softdevice) is exception for this , blinky project is working fine without putting hardware in debug mode.

I tried with nrfgo studio for programming hardware but giving same issue.

I  am using nrf51 dk and sdk 11 , segger version 4.12

Program of mentioned sdk are running well with keil but I recently I moved from keil to Segger embedded studio. For importing I follow the document available on nordic site, link is as below.

http://infocenter.nordicsemi.com/pdf/getting_started_ses.pdf

Apart from that I did some changes in Segger IDE

1)  Removed SEGGER_THUMB_Startup.s file from internal file section and added thumb_crt0.s

2) In project edit option in  common mode > Code > Build > Memory Segments , did change are as follows

FLASH RX 0x0001B000 0x000025000

SRAM RWX 0x20002080 0x00005F80

this both solution on following error

Output/ble_app_uart_s130_pca10028 nrf51422_xxac_s130/Obj/SEGGER_THUMB_Startup.o: In function `exit':
undefined reference to `__SEGGER_init_table__'

3) Removed retarget.c file from nRF_library section

this is to removed following error

storage size of '__stdout' isn't known
storage size of '__stdin' isn't known

Is there any setting is missing or any setting is wrong, I am new for segger so I didn't much knowledge about it. I would like to get solution as early as possible.

Related