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

SoftDevice Fault with Segger Embedded Studio

SoftDevice Version s132 SDK Version 12.2 Kit NRF52832 PC10040 DK

I am trying to run the ble_app_beacon example after importing the project into Segger Embedded Studio. I have set the project up and modified appropriate Section Placement Macros and other settings.

FLASH_START=0x1f000 FLASH_SIZE=0x61000 RAM_START=0x200032f0 RAM_SIZE=0xcd10

But when I flash and run the program, the softdevice faults at this point

NVIC_SetPendingIRQ(SWI_IRQn);

The error code alternates between SVC Handler missing or Invalid Flash etc. I am not able to figure out why this happens. I also tried to just download the program and run without debugging, but the program doesn't work. I see the chip keeps rebooting (as the fault handler is executed) from the minor led fluctuations that I am able to observe indicating pin reset.

I tried the same project with IAR and it works on flashing to the board without debugging. But IAR has it's own set of problems with a strange "invalid .debug_info... "

Basically, I can't debug in IAR but run the program as is. I am able to debug the program but the softdevice faults in Segger Embedded Studio

If someone can please tell me how to solve this issue I would be really grateful! Segger Embedded Studio has much better code editor, IMO but if it only worked!!! Pls help.

Related