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