Hello,
We are currently working with the ADI EV-SC-594-SOM board and facing an issue with UART initialization in FreeRTOS. Despite following the standard procedures, we are not seeing any prints on the serial console when running our FreeRTOS application.
Here is the detailed issue:
It seems like there is some initialization or configuration step that might be missing or incorrectly set when running the FreeRTOS application directly. Could you provide guidance on how exactly the UART initialization is handled in ADI's FreeRTOS environment?
Specifically, we would like to understand:
Thank You.
Ranji - Moved from ADSP-SC59x to CrossCore Embedded Studio and Add-ins. Post date updated from Tuesday, May 28, 2024 12:14 PM UTC to Wednesday, May 29, 2024 5:59 AM UTC to reflect the move.
Hi,
Thank you for your query. We are looking into this now. We will update you soon.
Best Regards,
Santhakumari.K
Hi,
Please find the attached project. In this project, ARM core is operating in FreeRTOS environment. In the task handler function, we have added printf function and it is redirected to UART0. And please ensure to check UART0 pins in pin multiplexing window. After enabling this, we can successfully see the output in Tera term window.
The UART configurations are available in io_startup.c file which is located at the following path:
project\system\FreeRTOS\Source\portable\CCES\ARM_CA5\io_startup.c
Hope this helps.
Best Regards,
Santhakumari.K
Hi santha.vijay
Thanks for the replay. The UART pin muxing was not proper in our case after correcting that We could see the prints.
One doubt here is, when we create a new free RTOS project and include UART as driver and service to it. by default, adi_initComponents will not have the pin muxing for UART. We need to do it separately. Is this understanding, correct?
Hi,
Yes, your understanding is correct. After creating a new project, you have to perform pin muxing. You can do the pin muxing in system.svc, it will auto-generate the pin muxing code, which will be called inside adi_initComponents().
Regards,
Santhakumari.K
Hi santha.vijay ,
Thanks for the clarification.