Adding printf() in UART caused stalling

I tried to use printf() to get the data from SPI buffers. It runs OK in the peripheral/spi  example. But when I moved it to the ble_app_uart, the program stalled at printf.

Here is the code that stalled the debugging:

printf("TX: %x %x %x %x, RX :%x %x %x %x", spi_tx_buf[0], spi_tx_buf[1], spi_tx_buf[2], spi_tx_buf[3], spi_rx_buf[0], spi_rx_buf[1], spi_rx_buf[2], spi_rx_buf[3]);

Here is the place that my program paused at: It is in nrfx_uart.c

Can someone help me with this issue?

Thanks,

Chris

Parents Reply Children
Related