Hello,
I'm looking into the LPSPI Serial NOR recovery boot option, described by section 9.6.5 Serial NOR/EEPROM through LPSPI of the IMXRT1064 Reference Manual.
We are planning on using a Cypress S25FL512S.
I understand that the SCK, SDO, SDI, and CS is defined by the LPSPI_PORT_SEL number in Table 9-1. I also see LPSPI_ADDR and LPSIP_SPEED. What I don't see, is how does the MCU's boot ROM know the command set of the flash chip? How does it know what instruction to pass into the flash chip to read the initial 4KB to get the IVT, DCD table and so on?
Thank you.
Solved! Go to Solution.
Hi Steve,
The recovery method mainly uses EEPROM memories which are a 1-bit read/normal read mode SPI interface. The select EEPROM needs to meet the EEPROM instructions standard. It also supports Serial NOR flash, but if you use this type of memory, you need to verify that complies with the EEPROM standard.
The ROM bootloader knows how to communicate with this memory because it uses the EEPROM instructions standard, hence the instruction will always be the same.
Note1: BootROM uses SPI Mode(0,0)(CPOL=0, CPHA=0)access type. You cannot modify this.
Note2: BootROM mainly supports 2bytes(storage size is 4Kb - 512Kb) / 3bytes(1Mb - 128Mb)address EEPROM/NOR.
One of my coworkers has made some tests with different memories to verify the recovery mode. The memories he used and worked fine are the followings:
These memories are just examples. As long as you choose a memory that complies with the information mentioned above you shouldn't have any problems.
The coworker that made these tests also has a personal blog. Here he created a document regarding the EEPROM standard. Although the document is in Chinese, you can use the built-in translation of your browser to get the main idea of the blog.
痞子衡嵌入式:串行EEPROM接口事实标准及SPI EEPROM简介 - 痞子衡 - 博客园 (cnblogs.com)
Regards,
Victor
Great. Thanks.
Hi Steve,
The recovery method mainly uses EEPROM memories which are a 1-bit read/normal read mode SPI interface. The select EEPROM needs to meet the EEPROM instructions standard. It also supports Serial NOR flash, but if you use this type of memory, you need to verify that complies with the EEPROM standard.
The ROM bootloader knows how to communicate with this memory because it uses the EEPROM instructions standard, hence the instruction will always be the same.
Note1: BootROM uses SPI Mode(0,0)(CPOL=0, CPHA=0)access type. You cannot modify this.
Note2: BootROM mainly supports 2bytes(storage size is 4Kb - 512Kb) / 3bytes(1Mb - 128Mb)address EEPROM/NOR.
One of my coworkers has made some tests with different memories to verify the recovery mode. The memories he used and worked fine are the followings:
These memories are just examples. As long as you choose a memory that complies with the information mentioned above you shouldn't have any problems.
The coworker that made these tests also has a personal blog. Here he created a document regarding the EEPROM standard. Although the document is in Chinese, you can use the built-in translation of your browser to get the main idea of the blog.
痞子衡嵌入式:串行EEPROM接口事实标准及SPI EEPROM简介 - 痞子衡 - 博客园 (cnblogs.com)
Regards,
Victor
The ROM bootloader knows how to communicate with this memory because it uses the EEPROM instructions standard, hence the instruction will always be the same.
Thank you for the information. This is what I what was looking for.
Hello Steve,
I'm checking this internally. I will provide you an update as soon as possible.
Regards,
Victor