iMX8 Cortex M7 SPI with SDMA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX8 Cortex M7 SPI with SDMA

1,647 次查看
frank9
Contributor II

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).

frank9_0-1697741008016.png

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?

frank9_1-1697740890696.jpeg

frank9_2-1697740890696.jpeg

 

0 项奖励
回复
1 回复

1,612 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复