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

Problem running nRF52 sample app with gdb on NetBeans IDE, macOS

Gentle folks,

I'm sure I'm making some simple, primitive error. Please help me mend my ways :-)

Using gcc in the NetBeans IDE on MacOS for building and running the ble_app_hrs sample app and SoftDevice S132 with a nRF52-DK (PCA10040, V 0.9.0, 2015.41) as target. Builds and runs fine (including connecting and handling BLE requests from an iPhone BLE monitor app).

But when I attempt to run in debug mode from the IDE (after starting JLinkGDBServer (JLinkARM.dll V6.16 (DLL compiled Jun 2 2017 17:59:14)), setting a breakpoint at the first executable line in main(), and connecting to the debugger, the app fails immediately (before ever reaching the breakpoint in main) with a soft device fault.

Here's the stack backtrace: image description

Any hints on how to fix this?

TIA,

Mike

PS: The nRF52-DK currently shows up on the USB as a Flash device named "JLINK".

PPS: Chasing down the interpretation of constants like Soft Device fault IDs is a pain in the online docs, hop-scotching through macro definitions. Sure would be nice if the values were collected in a table. Or am I missing something?

Parents
  • Jørgen, Thanks for replying. But the link at "this blog post" leads right back here to this post. Presume you meant to have it link somewhere else. Also, apologies for any duplicate postings. When I tried to post this question, I was getting web pages errors (seems like my "submit" was failing on my list of tags. I finally got the submit to work by trimming the list. (Should it be comma delimited? Multiple word tags with spaces OK?)

Reply
  • Jørgen, Thanks for replying. But the link at "this blog post" leads right back here to this post. Presume you meant to have it link somewhere else. Also, apologies for any duplicate postings. When I tried to post this question, I was getting web pages errors (seems like my "submit" was failing on my list of tags. I finally got the submit to work by trimming the list. (Should it be comma delimited? Multiple word tags with spaces OK?)

Children
No Data
Related