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.

AM6548: UDMA on R5F with Linux

Part Number: AM6548

Hi All

i like to see if we have an example code to use the udma from the R5f when running linux on the A53? I know there are example with the pdk but it can't be run while running linux on the A53. If not then how to port the pdk udma baremetal to run on the R5f with linux on the A53?

Thanks

  • Mohsen,

    The SoC resources are allocated to the Cortex-A and -R cores through the rm-cfg.c file in /soc/am65x/evm. With the UDMA resources allocated to the R5F core(s) you can run the RTOS or baremetal application.

    For running the R5F application, you can load and run through remoteproc - http://software-dl.ti.com/processor-sdk-linux/esd/docs/06_02_00_81/linux/Foundational_Components_U-Boot.html#remoteproc

    Best regards,

    Dave

  • Hi Dave

    Thanks for the reply but my problem has to do with running the udma baremetal example on the R5f  and the linux on the A53. the A53 is configuring the UDMA also i think that is my problem. The below is the error i am getting.   I was told i need to match the ring and the UDMA configuration from teh PDK and the A53. but i am not sure on the linux side how to do that. It is not in the dts file. If you want to point which file i need to change and match the variables to on the linux side it would be great. on the R5F baremetal side its in the following file.    /home/mohsen/ti/pdk_am65xx_1_0_6/packages/ti/drv/udma/soc/V0/udma_rmcfg.c  

    Thanks

    UDMA memcpy application started...

    [UDMA] [Error] Ring config for read access failed!!!

    [UDMA] [Error] Ring reset failed!!!

    [UDMA] [Error] FQ ring alloc failed!!!

    [UDMA] [Error] Channel resource allocation failed!!

    [Error] UDMA channel open failed!!

    [Error] UDMA App create failed!!

    [Error] UDMA channel disable failed!!

    [Error] UDMA event unregister failed!!

  • Notes from today's call with Nikhil and Justin:

    1. Nikhil to send a generated rm-cfg.c file, alone with the XLS table on the partition of resources across R5 and A53 (sysfw v 2019.09)

    2. Mohsen to use the new rm-cfg.c file, rebuild sysfw image and retry the DMA memcopy binary on R5

    3. We may need a few trials to get the partition right (to satisfy the memcopy resource needs)

    4. Mohsen may need further changes beyond this example per customer needs.

    Jian

  • this issues was resolved via offline debugging sessions:

    1. resource assignment file modified to partition reserve MCU-NAV resources for UDMA needs of R5;

    2. R5 baremetal code modified to adapt to the resource allocation

    please do not lock the thread as i like to add some additional notes for future reference. 

    jian