- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I am using PSoC 6 PLE Pioneer board.
I have stdio redirected appropriately for debugging with an external terminal using printf and getchar
Everything has been working perfectly until the following problems appeared from nowhere and are persistent:
- printf will not output anything to the serial line.
- getchar blocks (even when the receive fifo says it is not empty and having disabled STDIN input buffering).
I thought it would be easy to debug this but I have been at it for considerably longer than I expected.
I wonder if someone could point me into an area to look at?
Many thanks.
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @StMa_3607891,
Can you please let us know if you are using ModusToolbox or PSoC Creator? If you are using PSoC Creator and if you regenerated the code then you will have to add UART_1_HW in stdio_user.h. Can you please confirm if that is added?
You could also try running our code examples that use print statements and check if that works and use it as a reference.
This blog might also help you - https://iotexpert.com/lesson-3-psoc-6-introduction-freertos-and-a-debugging-uart/
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @StMa_3607891,
Can you please let us know if you are using ModusToolbox or PSoC Creator? If you are using PSoC Creator and if you regenerated the code then you will have to add UART_1_HW in stdio_user.h. Can you please confirm if that is added?
You could also try running our code examples that use print statements and check if that works and use it as a reference.
This blog might also help you - https://iotexpert.com/lesson-3-psoc-6-introduction-freertos-and-a-debugging-uart/
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks Rakshith,
Fixed!
Didn't realise that regenerating the code recreates a new stdio_user.h.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad it worked 🙂
Rakshith M B