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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

197 Views
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 Kudos
Reply
4 Replies

98 Views
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 Kudos
Reply

135 Views
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 Kudos
Reply

117 Views
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 Kudos
Reply

127 Views
bighero77
Contributor III
thanks in advance.
0 Kudos
Reply
An error has occurred when reading existing sub-variable "Language_PG_Configuration"; see cause exception! The type of the containing value was: extended_hash+string (lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign redirect_lingo_page_url = web... [in template "language_macro_header.ftl" at line 173, column 1] - Reached through: #include "language_macro_header.ftl" [in template "Language_translator_Dashboard" at line 3, column 1] ----