i.MX6 Internal Boot from SPI Stuck in ROM

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

i.MX6 Internal Boot from SPI Stuck in ROM

1,158 次查看
andreas81
Contributor I

We have developed a custom board with an i.MX6D and I've been trying to get it to load from the SPI NOR and it seems to be stuck in the ROM.  It is supposed to be in Internal Boot mode and loading from CS0 on eCSPI1.  I'm able to attach JTAG while it is stuck in the ROM and I can verify the following:

  • SRC_SBMR2 = 0x32000001, so BOOT_MODE[1:0] is set to internal boot and BT_FUSE_SEL isn't set.
  • SRC_SBMR1 = 0xC8005830:
    • BOOT_CFG1 = 0x30 which the documentation says is for serial boot.
    • BOOT_CFG4 = 0xC8 which should be chip select 0, 3 byte addressing, and eCSPI1.

I have connected oscilloscope to the SPI lines. If I program the SPI Flash with our JTAG Debugger´I can see SPI commands on the bus. If I turn on the power supply of our board dont see anything on the SPI bus...

If I start up with the JTAG debugger also nothing happens on the SPI bus and I can see, that i.MX6 stuck in ROM code if I call brake.

Has anyone an idea what's going wrong?

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

807 次查看
krisroh
Contributor I

Hi Andreas,

Do you have any updates regarding this issue?

I have very similar problem, and I'd like to know if you already solved this problem.

Thank you,

Kris

0 项奖励
回复

807 次查看
andreas81
Contributor I

Hi Kris,

in our case the problem was the BOOT_CFG4[7] bit. If this bit is set the CPU will run Infinite Loop in ROM code (for ROM code debugging purposes).

Best regards,

Andreas

0 项奖励
回复

807 次查看
krisroh
Contributor I

Thank you for your confirmation, Andreas.

Best regards,

Kris

0 项奖励
回复