First check that you have UART connection available before doing anything else.
Try this example, and check that thread as it has way more information than this: