Trouble booting imx6 from SPI Flash

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

Trouble booting imx6 from SPI Flash

跳至解决方案
1,660 次查看
joerutledge
Contributor III

Hi,

I have a custom iMX6Q board currently booting from MMC. It's an image built from Fido and in Linux user space I have no trouble seeing the flash parts sat on the SPI bus. From inside of u-boot I can probe these devices and can read and write to them. I have taken the u-boot.imx that comes from my Fido image build and programmed it into the flash at offset 0x400, as described in the i.MX Linux Users Guide. The flash probes correctly and reports its product code however reading the data back shows only zeroes. I flashed the efuses in the iMX6 to boot from SPI2 (on the CSI pads) where the flash is currently attached (along with 24bit addressing, as the part is large). I've verified that those pads are not configured for anything other than SPI2. Using an oscilloscope I can see the iMX6 clocking data from the flash at power on, but the device does not boot. I get no output on my serial console.

Is there any way I can investigate what's going on that's causing the iMX6 to fail to boot or the flash to fail to read but still give its part number?

Many Thanks,

Joe

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,352 次查看
art
NXP Employee
NXP Employee

Most likely, something is wrong in the SPI memory write and/or read command

sequence. You can investigate this by logging the SPI bus activity during memory

write and read (with oscilloscope or SPI data logger) and then checking the

command/data sequence with your SPI memory data sheet.


Have a great day,
Artur

在原帖中查看解决方案

2 回复数
1,353 次查看
art
NXP Employee
NXP Employee

Most likely, something is wrong in the SPI memory write and/or read command

sequence. You can investigate this by logging the SPI bus activity during memory

write and read (with oscilloscope or SPI data logger) and then checking the

command/data sequence with your SPI memory data sheet.


Have a great day,
Artur

1,352 次查看
joerutledge
Contributor III

Yup. Swing on the SPI signals was too low. Thanks!

0 项奖励
回复