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:
Here the stack:
Any hint?