# FreeRTOS SPI and printf to terminal via UART 

**URL:** <https://forums.freertos.org/t/freertos-spi-and-printf-to-terminal-via-uart/5171>\
**Category:** Kernel\
**Created:** [April 29, 2013, 12:51pm UTC](https://forums.freertos.org/t/freertos-spi-and-printf-to-terminal-via-uart/5171 "2013-04-29T12:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 29, 2013, 12:51pm UTC](https://forums.freertos.org/t/freertos-spi-and-printf-to-terminal-via-uart/5171/1 "2013-04-29T12:51:10Z")

</div>

**[goldie13](https://sourceforge.net/u/goldie13/)** wrote on [Monday, April 29, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/e48cf145/#e168):

Hi,

I am using Atmel SAM4S-EK board and FreeRTOS 7.3.0.  
For some reason, after I use ‘freertos\_spi\_write\_packet’ or ‘freertos\_spi\_read\_packet’, the ‘printf’ or ‘sprintf’ and ‘puts’ to terminal does not work.  
I use the Atmel ‘configure\_console’ function that directs the output to UART.  
I want to say the before using the FreeRTOS functions, I see all ‘printf’’ on the terminal…

Can you help?  
Thanks,

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [April 29, 2013, 1:13pm UTC](https://forums.freertos.org/t/freertos-spi-and-printf-to-terminal-via-uart/5171/2 "2013-04-29T13:13:23Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, April 29, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/e48cf145/#687c):

A single USART port can be configured to operate as either a standard UART or an SPI port (as well as various other types of serial bus).&nbsp; Are you sure your USART printf output and your SPI port are not using the same physical USART peripheral?

Regards.
