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.

AM2432: Details on RAT

Part Number: AM2432
Other Parts Discussed in Thread: SYSCONFIG

Dear Champs,

My customer is using AM2432 ALX package(11x11).

Could you please let me know where detailed document & examples for RAT can be found?

When I checked the TRM, the role of RAT is only translation of address from 48bits to 32bits, but I could not understand why RAT should be used for M4F SS.

Could you please let me know why RAT should be used for M4F SS?

And, Is there usecase need to use RAT with R5 core?

Is there any examples to access peripherals of main domain from M4F SS?

As there is no peripherals of main domain shown in sysconfig for M4F SS as below, it is hard for customer to understand how access on peripherals of main domain from M4F SS.

Please comment your idea on this.

Thanks and Best Regards,

SI.

  • Hi Sl.

    As you mentioned in you thread, the RAT for M4F core is for address translation (virtual address pace to physical address place). It will be M4F core to access bigger virtual address space (2^48). At this point, I do not  see any usage of RAT in MCU+ SDK, because the  AM243x SOC uses 32-bit address space. There is no need to use 48 bit address space, so all entry in RAT should be virtual address equals to physical address.

    The M4F is in the MCU domain. It is mainly designed for safety. It is on purpose that M4F only uses the peripherals in MCU domain in SysConfig, even though M4F can access to the peripherals in the MAIN domain.

    Best regards,

    Ming 

  • Hi Ming,

    Thanks for your kindly response.

    In ALX package(11x11) without DDR memory access, is there any need to use RAT for M4FSS to access MAIN domain?

    I found below e2e that it is needed to set RAT for M4FSS to access MAIN domain or 2MB MSMC memory, and would like to clarify this.

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1075115/am2431-access-from-m4f-in-mcu-domain-to-peripherals-in-main-domain/3984652?tisearch=e2e-sitesearch&keymatch=RAT#3984652

    And do we have a plan to release example how M4FSS can access the peripherals in MAIN domain and the 2MB MSMC memory?

    Thanks and Best Regards,

    SI.

  • Hi SL,

    For ALV, if the M4F core want to access to DDR, it has to set both MPU and RAT properly.

    For ALX, since there is no DDR interface, so M4F cannot access to DDR, but it can access to other memory in MAIN domain like the OCRAM (0x70000000) or OSPI flash (0x60000000). Of course, you will need to set both MPU and RAT properly.

    Best regards,

    Ming  

  • Ming,

    Thanks for the clarification.

    Do you mean it is needed to set RAT properly when M4F access to OCRAM and peripherals of MAIN domain although it is 32bit?

    you will need to set both MPU and RAT properly.

    When you say to set MPU properly, is it 'Config MPU Region'x to set memory region?

    Thanks and Best Regards,

    SI.

  • Hi SI,

    Yes. You will need to set the virtual address and the physical address the same or OCRAM in RAT.

    Best regards,

    Ming

  • Ming,

    Sorry for bothering you, but I'm still confusing.

    At this point, I do not  see any usage of RAT in MCU+ SDK, because the  AM243x SOC uses 32-bit address space.

    Does this mean there is no need to use RAT when M4F access on their own peripherals & internal SRAM in MCU domain?

    Yes. You will need to set the virtual address and the physical address the same or OCRAM in RAT.

    When M4F access to peripherals of MAIN domain, should RAT be set properly? why RAT should be used although AM243x SOC uses 32-bit address space even in MAIN domain?

    Thanks and Best Regards,

    SI.

  • Hi SI,

    There is not need for RAT settings for its internal SRAM (256KB) and the peripherals in MCU domain, but you do need RAT entries for DDR and OSPI flash memory space:

    You will need MPU entries for its internal SRAM (256KB), the peripherals in MCU domain, OCRAM, DDR and OSPI flash:

    Best regards,

    Ming

  • Hi Ming,

    Thanks for clarification. I have one more question for my understanding.

    Then, my understanding is that there is no need to have RAT entries when M4F core will access to the peripherals of MAIN domain or OCRAM of MAIN domain, right?

    Thanks and Best Regards,

    SI.

  • Hi SI,

    I looked into the IPC M4F examples. It seems TRUE that for M4F core to use OCRAM, there is no need for RAT entry. I am not sure about the MAIN domain peripherals. 

    However there is an RAT entry for OSPI flash (0x60000000), but no MPU entry for OSPI flash.

    In my opinion, both MPU and RAT entry has to be added for each address space used by the M4F core, even though the virtual address is the same as the physical address, like 0x60000000 for OSPI flash, 0x70000000 for OCRAM, because those RAT and MPU entry should not cause any issue, even they may not needed.

    Best regards,

    Ming