Encountered an issue after trying to enable SPI with SDMA for Cortex M7 on the 8MPLUSLPD4-EVK. I believed I followed the SDMA example that came with the IMX8 (found in below path).
I am using FreeRTOS. The build appears to be having difficulty in running loaded ROM script. It gets stuck in the below while loop. Also below is call stack. Any thoughts to what could be wrong with my setup?
Hi @frank9
You can find rdc config in uboot dts: arch/arm/dts/imx8mp-evk-u-boot.dtsi
mcu_rdc {
compatible = "imx8m,mcu_rdc";
/* rdc config when MCU starts
* master
* SDMA3p --> domain 1
* SDMA3b --> domian 1
* SDMA3_SPBA2 --> domian 1
* peripheral:
* SAI3 --> Only Domian 1 can access
* UART4 --> Only Domian 1 can access
* GPT1 --> Only Domian 1 can access
* SDMA3 --> Only Domian 1 can access
* I2C3 --> Only Domian 1 can access
* memory:
* TCM --> Only Domian 1 can access (0x7E0000~0x81FFFF)
* DDR --> Only Domian 1 can access (0x80000000~0x81000000)
* end.
*/
You don't have ecspi sdma1 permission with default rdc config. Please try to add sdma1 config in imx8mp-evk-u-boot.dtsi.