SK-AM64B: AM64x TSN CPSW App - "UDMA RX Channel open failed: 0xffffffff" / DMA Resource Allocation Issue

Part Number: SK-AM64B
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

I'm working with the AM64x MCU+ SDK (version 11.01.00.17) on the SK-AM64B board. I am running the 'TSN CPSW App'  and consistently encounter the following error during driver initialization:

  • What are the recommended steps to resolve "UDMA RX Channel open failed: 0xffffffff"/DMA resource allocation errors for CPSW apps on the AM64x?

  • How can I properly modify/verify the RX channel and flow allocations (in SysConfig, sciclient_defaultBoardcfg_rm.c, or another method) to ensure adequate DMA resource assignment?

  • Are there required updates to the Board Configuration or Bootloader if resource partitioning changes?

  • Is there a sample working configuration for the TSN CPSW App on SK-AM64B with reduced resources?

Thanks,

Shikha

  • Hi Shikha,

    Can you provide more details on this setup? Out of box, we do not expect to see this error. Can you please mention what is the method you are using to flash the example?

    If you are loading through CCS, then can you please make sure that the DuT is taken through a system reset between runs? This clears the UDMA state, which otherwise causes this issue of resource allocation. Since 'TSN CPSW APP' is the application name used for 2 examples, can you also please mention the name of the example as per the directory?

    We recommend the following sequence if you are using CCS to load the example.

    1. Stop the current example execution
    2. Disconnect the core
    3. Issue a system reset
    4. Connect to the desired core
    5. Issue a CPU reset
    6. Load the example

    This should solve the issue that you are facing. If you are using other means to load the example, please mention the method of loading as well.

    Thanks and regards,
    Teja.