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

using printf gives me " <error> app: SOFTDEVICE: ASSERTION FAILED "

I am currently working in the " ble_thread_dyn_mtd_coap_cli" multi protocol example.

Whenever I call printfmy program crashes. I think it has to do with the ble_nus service that is added in the project. So I found this link https://devzone.nordicsemi.com/question/14089/wireless-printf-using-ble-uart/ and put retarget in sdk_config.h to 0 but it still crashes on printf probably an easy solution but if anyone could help would be great.

Thanks !

Parents
  • Don't quite understand but changing the coap_init function below from client to server seems to have fixed the problem..

    static void thread_coap_init(void)
    {
        thread_coap_configuration_t thread_coap_configuration =
        {
            .coap_server_enabled                = true,
            .coap_client_enabled                = false,
            .coap_cloud_enabled                 = false,
            .configurable_led_blinking_enabled  = false,
        };
    
        thread_coap_utils_init(&thread_coap_configuration);
    }
    
Reply
  • Don't quite understand but changing the coap_init function below from client to server seems to have fixed the problem..

    static void thread_coap_init(void)
    {
        thread_coap_configuration_t thread_coap_configuration =
        {
            .coap_server_enabled                = true,
            .coap_client_enabled                = false,
            .coap_cloud_enabled                 = false,
            .configurable_led_blinking_enabled  = false,
        };
    
        thread_coap_utils_init(&thread_coap_configuration);
    }
    
Children
No Data
Related