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

Creating a working BLE NUS (Nordic UART Service) example with FreeRTOS

Good afternoon everyone,

I'm trying to make a working application for the BLE NUS example but with the support of FreeRTOS that is MANDATORY. I work with KEIL. I started with ble_hrs_demo_freertos, added the NUS related files, changed the configuration within sdk_config.h. As soon as I invoke uart_init() it crashes with a fatal error and reboots, if I skip the initialization of the UART module, it crashes anyway into advertisement_init(), the in services_init().

Does anyway have a ready to test/modify/study application for BLE NUS with FreeRTOS?

Bests,

Fabio

Parents
  • In my experience with FreeRTOS and Nordic there are several things can cause a reboot.  It's a good idea to use the debugger and put a breakpoint on the app_error_handler() function. It's hard to determine your issue without more information.

    Some quick questions:

    1. Can you confirm that you were able to run the ble_hrs_demo_freetos? 
    2. Are you running on a DK or a custom board?
    3. Are you able to share your main.c and sdk_config.h?

    Thanks

Reply
  • In my experience with FreeRTOS and Nordic there are several things can cause a reboot.  It's a good idea to use the debugger and put a breakpoint on the app_error_handler() function. It's hard to determine your issue without more information.

    Some quick questions:

    1. Can you confirm that you were able to run the ble_hrs_demo_freetos? 
    2. Are you running on a DK or a custom board?
    3. Are you able to share your main.c and sdk_config.h?

    Thanks

Children
Related