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.
Tool/software:
Hi Team,
My customer has question about controlling pins in the MAIN domain from the MCU domain and its real-time response/latency. They do not have enough pins in the MCU domain and want to control the MAIN domain pins from MCU domain.They are concerned with real-time response because they want to use the pins for the following purpose:
Can you answer the questions below in detail?
On the other hand, in the situation where they try to control SPI and GPIO in MCU domain from MAIN domain, can you answer the following questions?
Best regards,
Mari Tsunoda
Hello Mari
In general we do not recommend or expect users to use the M4 to control the peripherals in main domain. This is not an envisioned use-case , so there is not much system level analysis or performance data available and none planned.
At a high level GPIOs etc should be ok. There will likely be some additional delay accessing main domain GPIO registers from MCU domain (and vice versa). Some previously quick / informal bench data showed something to the order of 150 ns to A53 access main domain GPIO ( read from GPIO reg) and M4 taking about 270 ns for reading main GPIO (this is just to give you relative difference, might not be fully accurate)
Main SPI does not have interrupt connection going to M4, so I do not need recommend it being used for such a use-case
You can find the summary of various peripheral interrupt connectivity in the TRM , Chapter 10
https://www.ti.com/lit/ug/spruiv7b/spruiv7b.pdf
10.1.12 Interrupt Connections Summary
Additionally M4 on AM62 does not have cache, so if the user program/data for M4 does not fit on the on chip RAM and requires DDR, the access penalty is huge. You can refer to the following FAQ
We do not recommend that they actually "transmit" data between main and mcu , they should simply be using IPC / Rpmsg for communication and pointing to relevant buffers if needed
https://dev.ti.com/tirex/nodeContent?node=A__AVjm7chph.4Q-bCWodAr.w__AM62-ACADEMY__uiYMDcq__LATEST
IPC benchmarks are currently work in progress. Will need to get back to you next week to check the status ( expert is traveling this week)
Hello Mari,
As Mukul mentioned the above points are all correct, users can't use the SPI peripheral in interrupt mode on the M4F core, and it does not have a cache and runs at lower frequencies.
See if you are able to move this application to the WKUP domain since WAKU core is R5F core, and it has a cache and runs at higher frequencies.
But, low power modes do not support on DM R5F core when you run applications on R5F core. Please look at more details in the link below.
An initial check, all MCSPI interrupts are routed to R5F core, and you can go with MCSPI on DM core with the interrupt mode.
Regards,
Anil.