This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ble uart demo freeze during debugging!

I managed to compile the ble_app_uart on windows 8.1 with cygwin. I had to remove all abspath on the makefile, as launchpad gcc is not compatible with cygdrive notation. I'm using eclipse, openocd with olimex jtag, lauchpad gcc 5.2, cygwin 64bit, PCA10040.

The app seems to work, if:

  • nRFgo Studio
  • erase all
  • program softdevice S132 2.0.0.7-alpha
  • in Eclipse, download the program and run it.

I can see the led 1 blinking, connect and send/receive data over uart. Good.

The problem: I can't run a second time the application or try to stepping. After the call to SOFTDEVICE_HANDLER_INIT() the nRf52 hangs in the softdevice code at address 0x09d8. I followed via disassembly, after the line:

err_code = sd_softdevice_enable(clock_source, softdevice_fault_handler);

there is the svc and then some code inside the softdevice. Here the disassembly of problematic line:

image description

Here the stack:

image description

Any hint?

Parents
  • I just tried the JLink with Eclipse and GNU ARM Eclipse Jlink plugin, it seems to work. If I break the execution, at next run it will go to fault handler, but likely it's normal (softdevice doesn't like to be stopped).

    Thanks a lot for your support.

Reply
  • I just tried the JLink with Eclipse and GNU ARM Eclipse Jlink plugin, it seems to work. If I break the execution, at next run it will go to fault handler, but likely it's normal (softdevice doesn't like to be stopped).

    Thanks a lot for your support.

Children
No Data
Related