FreeRTOS TTY output

I've got a SHARC Audio Module board and got FreeRTOS running a basic LED demo by loading the SC589 EZKIT demo project. However, I can't seem to get any UART output. I've verified that my TTY terminal configuration is correct because I can see the output from the pre-loaded code when I power cycle the board.

Can someone give me some ideas on where to look to solve this?

Top Replies

  • Hi . I managed to resolve this problem. There's a bug in the code ADI provided. In adi_freertos_uart_init(), the call add_uart_Open() fails because the UART_MEM_SIZE is defined as the wrong size…

  • 0
    •  Analog Employees 
    on Jul 29, 2021 2:35 PM

    Hi,

    The most obvious things to rule out first is that the UART service is configured for I/O and not trying to send the I/O statements somewhere else.
    If you open up the system.svc file in the relevant project, can you check that the "UART Driver for <core>" is in the list of installed Add-Ins?
    If you have a JTAG debug session open, are you seeing any console output in CrossCore?
    Is the application running correctly? Is the LED blinking and you are able to halt/step over the code in the debugger?

    Regards,
    Murray

  • Hi Murray,

    Thanks for the quick response. To answer your questions :

    Yes, "UART Driver for Cortex-A" is in the system.svc installed add-ins

    The CrossCore console just shows "Load complete." after loading the code for the debug session

    Yes, the application seems to be running correctly. I can hit breakpoints in the code and I've modified the LED ports in ParTest.c so that the LEDs are correct for the SAM board instead of the EZKIT board.

    I'm sure this is something simple, but I can't see it at the moment.

  • 0
    •  Analog Employees 
    on Jul 30, 2021 9:32 PM in reply to WuTangDan

    Hi,


    Can you send your project to processor.tools.support@analog.com for us to have a look at?

    Thanks,
    Murray

  • Hello , were you able to diagnose the problem and solve it? If so, can you then post the solution/fix? I faced a similar issue when I try running the example LWIP FreeRTOS project for the SC-589 MINI.

  • Hi . I managed to resolve this problem. There's a bug in the code ADI provided. In adi_freertos_uart_init(), the call add_uart_Open() fails because the UART_MEM_SIZE is defined as the wrong size for bidirectional comms. Changing this to ADI_UART_BIDIR_INT_MEMORY_SIZE resolves this problem.

    However, the example lwIP FreeRTOS project for the SC-589 MINI that ADI provided still doesn't work for me, for reasons that I can't quite get to the bottom of. After waiting for over 3 weeks for a response from processor.tools.support@analog.com they've now responded by refusing to help because apparently lwIP on FreeRTOS isn't supported, despite all the evidence to the contrary on the ADI website.

    So, if you manage to get the example lwIP FreeRTOS project for the SC-589 MINI working, please post back here and let me know.