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

Is it possible to use the UART without the Soft Device?

There are some include dependencies that go like this:

app_uart.h -> app_util.h -> app_error.h -> nrf_error.h

and nrf_error.h is under Include/s110.

In order to debug some stuff happening with my UART peripherals, I'd like to do a build with my UART code included but the Soft Device not included, so I can use the extra memory for writing a log of my UART conversation.

Looks like this isn't going to be possible?

Parents Reply
  • Thanks again. I now seem to be stuck at the __WFI() call in this loop when reading from the UART:

    do
    {
        err_code = app_uart_get(&ch);
        
        if (NRF_ERROR_NOT_FOUND == err_code)
        {
    

    #ifdef USE_SOFTDEVICE sd_app_evt_wait(); #else __WFI(); #endif } else if (NRF_SUCCESS == err_code) { response[i++] = ch; } else { APP_ERROR_CHECK(err_code); }

        ended = gsm_response_ended((char *)response);
    }
    while (!ended);
    

    Also the timer that should make gsm_response_ended() return true eventually even if the peripheral stays quiet is never getting its timeout handler called. Any ideas?

Children
No Data
Related