-
Notifications
You must be signed in to change notification settings - Fork 0
UART Communication
Alejandro Olvera edited this page Oct 27, 2017
·
8 revisions
In order to build the UART communication cable, pins 3 ( ground- red wire ), 5 ( UART RX - Yellow Wire ), and 6 ( UART TX - blue wire ) are wired to their corresponding pins on the CP2102 converter module.
Since the source code used did not enable the UART interface by default, a few key definitions were modified to provide for the functionality.
//#define DEBUG //!< When defined debug messages is output on standard I/O (d_uart is different)
#define TERMINAL_ENABLED 1 //!< DEBUG terminal enabled (0 = disabled, 1 = enabled)
#define DEBUG_UART 0 //!< UART used for debug (0 = port1, 1 = port2, ... 4 = none)
Above, TERMINAL_ENABLED was set to 1, and DEBUG_UART was set to 0 ( to utilize port 1 ). Enabling UART allows for boot up instructions to be monitored to discover where any issues may exist during boot up.