imx6ull ecspi3 register 0x0201 0000 cannot be read. or the system would crash

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

imx6ull ecspi3 register 0x0201 0000 cannot be read. or the system would crash

734 次查看
bighero77
Contributor III

i want to debug the ecspi. so I need get register paramiters with ioctrl.

but I find if I ioremap the register to memory.the linux 4.1.15 would crash.

no any messge from dmesg. and I cannot interact with linxu4.1.15 but restart the system. no information would be find.

so. what can i do to get register of ecspi ??

thanks

0 项奖励
回复
4 回复数

635 次查看
pengyong_zhang
NXP Employee
NXP Employee

Hi @bighero77 

Did you connect the SPI device? please share your dts file.

Accessing registers when the SPI controller is not initialized or enabled may result in accessing illegal memory or abnormal hardware responses.

B.R
0 项奖励
回复

672 次查看
pengyong_zhang
NXP Employee
NXP Employee

Hi @bighero77 

Please use the attachment file for your test. I have tested on my site, There is no problem occurred.

BTW : I use the Linux BSP version is 6.6.23, But it's the same file you can use, Just change your Makefile file is OK.

0 项奖励
回复

654 次查看
bighero77
Contributor III

thanks pengyong。
but, in your code, the base reg address is 0x2000000. I do this read ok .
but, the reg address is not for ecspi.

I try the ecspi address 0x2010000. the system is stuck.

spba-bus@02000000 {
compatible = "fsl,spba-bus", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x02000000 0x40000>;

so, the issue is not resolved.

0 项奖励
回复

664 次查看
bighero77
Contributor III
thanks in advance.
0 项奖励
回复