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.

CCS: Main Domain Console_UART (MCU2_1) for EVM_J721E



Tool/software: Code Composer Studio

Hi All,

I am trying to run one of the gateway_demos application (can_eth_gateway) from psdk_rtos_auto_j7_06_02_00_21 and kept the macro GATEWAY_UART_ENABLE true (export GATEWAY_UART_ENABLE ?= TRUE )

in Rules.make  and loading the image from mcu2_1 from CCS / JTAG ,expected the debug prints to appear in the Main_domain_uart_0 and no prints are occurring in the port instead it appears from CCS console only.

What could be issue for the same ? Can you kindly provide reasons for the same.

With regards,

Jeyaseelan  

  • Hi Jeyaseelan,

    Sorry for the delay in reply. There was some notification issue.

    Which SDK are you using ? Starting from 6.2 SDK, UART prints are no longer available for Gateway app since as per resource partitioning MCU 2_0 is the UART owner.

    What is your usecase ?

    Regards

    Vineet

  • Hi Vineeth,

    Following are the two use cases from main2_1 core.

    1.CAN messages from all 13 interfaces has to be timestamped   from main2_1 core and send  them to A72  for further data processing through IPC. A72 will send the post processed data to cloud for client publication .

    2.Some identified CAN messages to be routed through one of the selected 9 available Ethernet ports. (CAN<-> Ethernet ) gateway.

    3. mcu1_0 core would be used for power moding control

    We may need to interface with CAN, Ethernet , IPC to A72 from this core . So i took the can_eth_gateway referance application to start. So we have to enable one of the debug UART  ports to for debugging the application. How to  enable the same for this core apps. This port should work along with debug ports of mcu1_0 and  main_a72 .

    Currently we are using sdk version "psdk_rtos_auto_j7_06_02_00_21"

    With regards,

    Jeyaseelan

  • Hi Jeyaseelan,

    Thanks for the explanation.

    Gateway application is certainly suited for your requirements.

    1. CAN messages can be timestamped in SW on MCU 2_1. That's what we do today in the example application. You can then use IPC to send data over to A72.

    2. Routing is already done by gateway example application.

    3. I don't see any limitations here but let us know if you face any issues. Current OSPI booting example already boots MCU 1_0 before MCU 2_0 and MCU 2_1

    The present gateway app on MCU 2_1 communicates with the EthFw app running on MCU 2_0 through IPC. Since EthFw has ownership of Main UART 2, you can use it to display debug UART messages. Would this work for you ?

    You can see example code for IPC in gateway example application (main_tirtos.c) . Look for keywords like IPC, Mailbox etc.

    Regards

    Vineet

  • Hi Vineeth,

    Thanks for the reply. We like to keep a dedicated debug UART for MCU2_1 as main domain has 4 debug uarts connected in EVM. Currently only 2 would be used one from MCU2_0 (Ethfw switch ) and the other from A72. If it is possible to use one of the other two which are not used in main domain for mcu2_1

    If so, can you share any patches for the same.

    With regards,

    Jeyaseelan

  • Hi Jeyaseelan,

    Let me check here and get back to you.

    Regards

    Vineet

  • Hi Jeyaseelan,

    Please use the attached patch as a reference. This has been created on top of gateway-demos folder in SDK 7.0 release.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/gateway_2D00_main_2D00_uart3_2D00_output.patch


    Regards

    Vineet

  • Hi Vineet,

    Thanks for the patch changes.I will check on it and get back to you.

    With regards,

    Jeyaseelan