- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following the UART example project, I have been trying to get the UART working on the PSOC 6, after migrating a project from the PSOC 5lp. Below is the code I have to initialize and start the UART:
cy_en_scb_uart_status_t init_status;
/* Start UART operation. */
init_status = Cy_SCB_UART_Init(UART_HW, &UART_config, &UART_context);
if(init_status!=CY_SCB_UART_SUCCESS)
{
handle_error();
}
Cy_SCB_UART_Enable(UART_HW);
UART_Start();
// Send message to verify COM port is connected properly
Cy_SCB_UART_PutString(UART_HW, "COM Port Open\r\n");
Cy_SCB_UART_PutString(UART_HW, "Press H or h for help\r\n");
Is there something wrong within my initialization statement? When I program the device and have the port connected to a terminal, it does not print out "COM Port Open" or "Press H or h for help".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you assigned the pins to the correct port?
If you are using the PSoC 6 Pionner kit, you should use the TX at P5[1].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apparently I don't know how to add links to this forum it cut off the rest of my message.
You don't need the UART_Start as you are already initializing and enabling the block.
Also how are your pins and clocks configured?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, but I have looked at the attached link, it's where I obtained the initialization code. I do not have the UART terminals showing, and I am using the 100MHz clock as my Clk_HF0 on the CM4 processor. I just checked my clocks and UART settings against the example project, from what I can tell they are the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you assigned the pins to the correct port?
If you are using the PSoC 6 Pionner kit, you should use the TX at P5[1].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What terminal program are you using? What Comm port does device manager say your board is connected too?