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
  • Christopher Bilal said:
    For the SPI and TWI part, how can I know if I have the memory map issue?

    In the section of the documentation it shows what address the different peripherals has, some peripherals has the same address, so they can not be used at the same time.  
    Example, SPI0 and TWI0 share the same base address.



    Where in the in code is the printf() called?


    Can you share you project?

    Regards,
    Jonathan

Children
No Data
Related