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

Difficulty adding Nordic UART Service to App_Template

For longer than I'd like to admit, I've been trying to make an application on the NRF52832 that relays UART data to a phone. To date, I've:

  • Gotten the BLE_APP_UART application working with the device, however that application is not capable of managing peers
  • I've verified that the APP_Template works and allows my phone to connect.

With those two pieces, my next step was to essentially merge the two by adding the UART handler to the APP_Template - which seemed easy enough.

First I tried doing this in Keil, but got an error from the linker that I had surpassed the size limit for my license. After that, I made a build in Eclipse Oxygen - unfortunately I don't have as much info on the device registers, etc. so it's a little more difficult to debug.

TL/DR I seem to be getting stuck at an error handler after calling bsp_init(), with "error_code" = 8.

Based on sdk_errors.h, that looks to say "NRF_ERROR_INVALID_STATE", however, it's not clear what in "bsp.c" would cause that error.

app_error_fault_handler() at app_error_weak.c:53 0x22474 app_error_handler_bare() at app_error.c:90 0x22438 buttons_leds_init() at main.c:851 0x27f62 main() at main.c:905 0x2802e

main - Copy.c

I've attached my copy of main.c - and I'm really hoping some of you Nordic gurus can help me out here. Additionally, any tips for building this out in Eclipse to make this easier to debug would be helpful

(Project info) SDK_13.1.0_7ca7556

S132 Soft Device

nrf52832

Related