This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART print is not getting?

Hi all,

I'm using pca10040 board with sdk version nRF5_SDK_11.0.0-2.alpha_bc3f6a0.

There i'm using example code of spi handling. Instead of nrf_log_printf i changed printf and enabled uart_init(). Program is compiling successfully but i'm not able to get any prints in console. In uart_example code i can able to get prints in console.

Is there anything i need to change in Makefile or somewhere?

Hereby i attached my main.c file and Makefile.

Thanks in advance.main.c

Makefile

Parents
  • Try to use app_uart_fifo.c instead of app_uart.c in your project. If you use app_uart.c printf will only print out the first byte.

    Update 2016-04-07: This is also a bug if you use ble_app_template example in SDK 11, where app_uart.c is used instead of app_uart_fifo.c. This will be fixed for the next SDK release.

Reply
  • Try to use app_uart_fifo.c instead of app_uart.c in your project. If you use app_uart.c printf will only print out the first byte.

    Update 2016-04-07: This is also a bug if you use ble_app_template example in SDK 11, where app_uart.c is used instead of app_uart_fifo.c. This will be fixed for the next SDK release.

Children
Related