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

nRF51 crashes on startup in Eclipse?

Hi all,

I've spent 4 days now (!!) on getting a "Hello World" project to work in eclipse with GCC. I guess something around the startup-code is setup wrong in my very simple project but I don't know what.

Every time I start debugging the program counter in the disassembly goes directly do 0xfffffffe.

Would anyone take a look at my project? It can be downloaded here: www.dropbox.com/.../myproject.zip

Thanks in advance :-)

EDIT: I never hits Reset_Handler, if I set a breakpoint in there. Here is a capture of what happens when I start debugging:

image description

And here's my project structure, and what I would mean is needed in the bare metel nRF51 project:

image description

I haven't linked to anything else though - should I link to a CMSIS lib of some kind?

Related