This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: McASP as UART

Part Number: AM3358

Hi,

1.     I am tring to implement McASP as uart but i cant get any document for that

i got one old kernel version document but its not match with my current SDK linux kernel version as mentioned in the document. document link below:-

http://processors.wiki.ti.com/index.php/Soft-UART_Implementation_on_AM335X_PRU_-_Software_Users_Guide

i am using ti-processor-sdk-linux-am335x-evm-05.03.00.07 version

2. I run pru_uart example application i am getting following error 

./example_PRU_Hardware_UART.out: cannot execute binary file: Exec format error

  • Hello,

    I am assuming you are talking about implementing a software UART on the PRU (a processor core), and that you are NOT talking about the McASP (an audio serial port).

    What is your timeline for needing this? That soft-UART referenced in the old wiki page has been deprecated for years. However, our next SDK release will include

    1) PRU firmware and

    2) a Linux driver for a software UART implemented on the PRU.

    For future readers, the next SDK release will be adding support for PRU software UART on AM335x in particular.

    Regards,

    Nick

  • Thanks for your reply nick,

    I want to configure both PRU UART and McASP UART

    So kindly give any solution for that

  • Hello,

    TI has not implemented any software that allows UART communication over McASP.

    There is a hardware UART built into the PRU-ICSS. You can control it with the PRU. TI has NOT implemented a Linux driver to allow the ARM core to control the UART in the PRU-ICSS.

    You need to use RemoteProc to load and run the PRU_Hardware_UART example. Please see the RemoteProc and RPMsg documentation for guidance. You can ignore the RPMsg section for your use case. When running the example, don't forget to disable loopback if you want to see signals at the output pin.

    The software UART that we will include in the next SDK release can implement up to 3 UARTs per PRU core, or 6 UARTs total for am335x.

    Regards,

    Nick

  • Thanks nick,

    That PRU hardware uart  working fine after loading firmware.

    I can get any pach for enable soft uart?

    And can you tell me the release date for next SDK?

    Thanks,

    Jagadeesh

  • Hello Jagadeesh,

    Glad to hear it. The next SDK will be released in October.

    The PRU firmware and RTOS driver have already been released in our RTOS SDK. You can get more information about that in the RTOS PRU-ICSS UART documentation.

    I will be out of office for the rest of the week. If you cannot wait until the SDK release, next week I can show you how to get the Linux driver from our development repo. But keep in mind there are quite a few differences between the development repo and the Linux Processor SDK repo, and I cannot support code from the development repo on this forum.

    Regards,

    Nick