Freeing UART on the Pi

The easiest way to use libnfc with the Adafruit NFC Breakout is via UART, since it's well-supported by libnfc out of the box.  Unfortunately the UART port on the Pi is already dedicated to other purposes, and needs to be freed up for libnfc.

The following steps (based on a clean Raspbian install via noobs) should free UART up for us:

Step One: Run raspi-conf

From the command prompt enter the following command:

$ sudo raspi-config

Step Two: Disable Serial Console

From the main menu, select option 7 (Serial), then select 'No' to disable shell and kernel messages via UART.

Step Three: Enable UART

On the latest Jessie Raspbian, you may also need to enable the UART for user usage! Edit config.txt with sudo nano /boot/config.txt and update the line enable_uart=0 on the last line and set it to one: enable_uart=1

 

Lastly: Reset

From the command prompt enter the following commands to reboot your Raspberry Pi board, freeing UART up in the process:

$ sudo reboot
Last updated on 2016-07-18 at 05.14.27 PM Published on 2012-07-29 at 11.58.37 AM