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

Running application in non debug mode - Eclipse GCC

Hello,

I have been able to get an application to build and run in debug mode using Eclipse GCC (Kepler) for the nRF51822. My application does not use a soft device. We are using some of the nRF files from nRF51 SKD 5.1.0.

I have an IAR license and I can build debug code and I can run the application without the debugger attached.

I followed the instructions found in the tutorial about setting up Eclipse and GCC. devzone.nordicsemi.com/.../

My application will run when I am running a debug session using Eclipse GCC but if I disconnect my debugger (J-Link Lite) and apply power the application does not appear to run. I have been able to 'Connect to running target' and able to get into a back in a debug state after applying power and without the debugger attached and I find that the device is sitting at the HardFault_Handler. Attached is a photo of the general registers when I am at the Hardfault_handler.image description

I found the other thread about HardFault in SystemInit and made sure that I had the correct RAM selected but I still cannot get my application to run without the debugger attached. devzone.nordicsemi.com/.../

Attached is a screenshot of my debugger setup.image description

Any my Startup tab for the Debug.image description

My linker script looks like this.

/* Linker script to configure memory regions. */

SEARCH_DIR(.) GROUP(-lgcc -lc -lnosys)

MEMORY { FLASH (rx) : ORIGIN = 0x0000, LENGTH = 0x40000 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000 }

INCLUDE "gcc_nrf51_common.ld"


Does anyone have an example of how to setup the Release build? Or does anyone have any suggestions as to why the debug will not just run when I apply power with no debugger attached?

Thanks for your assistance.

Josh

Parents Reply Children
No Data
Related