Booting P1022 from SPI Boot ROM

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

Booting P1022 from SPI Boot ROM

778 Views
rinkutakkar
Contributor I

Hi, We would like to boot P1022 using SPI EEPROM N25Q256A13ESF40F. We have set cfg_rom_loc[0:3]=0110. The chip defines the default boot ROM address range to be 8 Mbytes at address 0x0_FF80_0000 to 0x0_FFFF_FFFF.

In case of booting from parallel NOR flash (local bus GPCM mode) we set the option register (OR) and base register (BR) corresponding to chip select 0 (CS0) properly so as to specify the desired address range.

Please suggest how to configure the similar settings for booting from SPI.

Labels (1)
0 Kudos
Reply
1 Reply

481 Views
r8070z
NXP Employee
NXP Employee

Have a nice day,

Boot from eSPI is supported by the P1022 using an on-chip ROM which contains the basic eSPI device driver and the code to perform block copy from eSPI EPROM to any target memory. Selecting cfg_rom_loc[0:3]=0110, causes the e500 CPU to fetch data from the on-chip ROM.

The EEPROM should contain a specific data structure with control words, device configuration information and

initialization code.  The on-chip ROM boot code uses the information from the EEPROM content to configure the device, and to copy the initialization code to a target memory device (for example, the DDR) through the eSPI interface. After all the code has been copied, the e500 core starts to execute the code from the target memory device.

The SPI boot details you can find in section 4.5.2 eSPI Boot ROM of the P1022 reference manual available on the NXP site.

Serge