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

604件の閲覧回数
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 返答(返信)

505件の閲覧回数
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 件の賞賛
返信

542件の閲覧回数
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 件の賞賛
返信

524件の閲覧回数
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 件の賞賛
返信

534件の閲覧回数
bighero77
Contributor III
thanks in advance.
0 件の賞賛
返信