i.MX6S can't boot or access NOR flash

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

i.MX6S can't boot or access NOR flash

1,668 次查看
andreaskarlsson
Contributor III

Hi,

 

I would like some input on troubleshooting a NOR flash on an i.MX6.

It is a custom board

CPU: i.MX6

Flash: Spansion S29GL256S90TFI010

Boot config: NOR Flash

SRC_SBMR1 = 0x26004000 , Not multiplexed 01 - A+DH, NOR flash

BOOT_MODE[1:0] = 10

BOOT_FUSE_SEL = 0

 

It is connected similar to the SABRE AI,

 

Issues:

I can't access it and since I can't access it it's obviously empty and the internal boot hangs trying the backup boot via serial USB.

I've tried to access the flash via Lauterbach and J-link. No luck

 

I've copied the EIM and CCM registers from the internal BOOT settings to use with the T32 imx6 sample script, I've converted it to i.MX6S from i.MX6Q.

 

When running the T32 flash script it stops on the first Flash access. (attached is T32 flash cmm)

 

Any ideas?

Of course it can be Hw related but I'd like any input for possible Sw issues in parallel.

 

Regards

Andreas

Original Attachment has been moved to: imx6s-norflash.cmm.txt.zip

标签 (1)
标记 (4)
0 项奖励
回复
4 回复数

1,103 次查看
igorpadykov
NXP Employee
NXP Employee

Hi andreas

one can check NOR with SDK (one can run it with jtag) eim_test.c

i.MX 6Series Platform SDK : Bare-metal SDK for the i.MX 6 series

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,103 次查看
andreaskarlsson
Contributor III

I did and it end up in an exception in the beginning of the code of flash_get_size.

Am I correct if I assume that the internal boot will setup the EIM bus correct if the boot_cfg is correct?

Not optimal but working. Based on that assumption I've commented out the "eim_hw_prepare" since I have a different flash, at first glance it looks like I could re-use.

0 项奖励
回复

1,103 次查看
igorpadykov
NXP Employee
NXP Employee

yes, iROM sets EIM correctly for further usage.

~igor

0 项奖励
回复

1,103 次查看
andreaskarlsson
Contributor III

Thanks for input, we found the issue today. PCB issues with addresspins.

Andreas

0 项奖励
回复