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

UART Application Problem

Hello all,

I'm stuck in the use of the UART.

I have used the code from the UART example and the UART application for iPhone. I'm using eclipse because I don't want to pay licences to KEIL if I can do it for free. So I have configure the makefile and the UART code is compiling and is executing in the nRF6310. I use for uploading the program nRF Studio with SoftDevice S110.

I have added some messages for traceability through the UART port at the init and it works. LED 0 gets ON. Then I connect the Ipod and LED 0 -> OFF and LED 1 -> ON. Then I send a message from the Iphone and the nRF get stuck and the app disconnects.

When using the debugging with Eclipse, most of the times it blocks at the call BLE_STACK_HANDLER_INIT from ble_stack_init.

What I'm doing wrong? Could anyone that has encountered similar problems give me some hints?

Thanks in advance. M.

Parents
  • Have you had a look at this question?

    It seems that what actually happens is that Eclipse makes GDB jump directly to the application's reset handler, instead of starting at the reset handler.

    Another way to solve it seems to be to set the program counter manually on reset, as shown in the attached screenshot. The exact address you should set it to will be dependent on the softdevice version used, but you can read it out at address 0x04 in the flash of the chip. With softdevice 5.2.0 it should be 0x114BD, 5.2.1 0x114CD and 6.0.0-alpha1 0x11D35.

    eclipse-fix.png

Reply
  • Have you had a look at this question?

    It seems that what actually happens is that Eclipse makes GDB jump directly to the application's reset handler, instead of starting at the reset handler.

    Another way to solve it seems to be to set the program counter manually on reset, as shown in the attached screenshot. The exact address you should set it to will be dependent on the softdevice version used, but you can read it out at address 0x04 in the flash of the chip. With softdevice 5.2.0 it should be 0x114BD, 5.2.1 0x114CD and 6.0.0-alpha1 0x11D35.

    eclipse-fix.png

Children
No Data
Related