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.

AM3359: PRU UART configuration

Part Number: AM3359

Hi,

I have EVM TMDICE3359 and i use linux rt as OS (SDK TI, CCS, etc.).

I develop application whom use uart and ethernet ports with PRP&HSR protocol.

I need real time on uart and i would like use PRU (on EVM TMDICE3359, PR1_UART0_TXD/PR1_UART0_RXD pins D15/D16).

How configure and program this UART with EVM please ? If I use PRUs for redundancy protocol (PRP or HSR with offload) i can use uart of PRU without problem ?

Best regard.

  • Sorry,

    I forgot a request. When I will have configure UART on PRU and use how i can transfert data between PRU and cortex applicatif A8 (processor) ? 

    best regard

  • Hello Medhi,

    1) Do you want to control the PRU-ICSS UART subsystem with the PRU, or with the A8?

    2) To confirm, you want to use the same PRU-ICSS for both HSR-PRP and the hardware UART?

    Note that TI does not provide a Linux driver for controlling the PRU-ICSS hardware UART. We do provide PRU firmware and a Linux driver for software UARTs in Linux Processor SDK 6.1 and later. See post Soft UART for more information on PRU software UARTs.

    Regards,

    Nick

  • Hello Nick,

    Thanks for your response.

    1. Ideally with A8 but i would like the best performance and real time then if i must use the PRU i will use the subsystem PRU.

    For information, i had develop a apllication with UART_1 of A8 (with dma). The performance is good at 3Mbps but i need more for futur application. 

    2. Yes if possible.

    The PRU firmware with linux driver for software UARTs don't have the good performance for us (PRU Soft UART Features : common baud rates up to 115200 Mbps).

    Best regards,

    Mehdi

  • edited April 14 2020

    Hello Mehdi,

    I apologize for the delayed response. future replies will be faster.

    One of our developers is planning on adding a Linux driver and PRU firmware to allow ARM Linux to control the HW UART in an ICSS. They do not have an exact timeline for integration. The SDK release around July 2020 would be the earliest potential release date, but it might take longer to release. Note that this solution would require dedicated firmware on at least one PRU, so it would not be compatible with HSR/PRP firmware running on both PRU cores on the AM335x. 

    See update below.

    I am checking if HSR/PRP on one ICSS and the HW UART driver on the other ICSS might be an option on AM437x.

    Regards,

    Nick

  • I just got a correction from the developer. The Linux HW UART driver should not need any PRU firmware to work, so we would expect that it could be used concurrently with HSR/PRP firmware on AM335x. (note, that use case has not been tested at this point in time.)

    Regards,

    Nick

  • Hello Nick,

    Thanks a lot for your response.

    I will see the sdk release in July 2020.  

    Best regards,

    Mehdi

  • Hello Mehdi,

    Sounds good. To restate timeline: the Linux driver to use ICSS hardware UART will not be in our April SDK release. It may be in the July 2020 SDK release, but it might not get integrated until a later release. Feel free to check back with us if you cannot find it in the July 2020 release. We can point you to documentation if it was added, or hopefully provide an updated timeline if it is not yet added.

    Regards,

    Nick