unable to use 64mb spi flash in T1022

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

unable to use 64mb spi flash in T1022

615 Views
debduttabanerje
Contributor III

In our custom T1022 based board we boot from SPI flash, size 64 MB. T1022 only supports 24-bit spi addressing as boot source. So we have to force 24-bit addressing in kernel to ensure the board boot up after reboot command.

As a result we can only use 16 MB flash and not the whole 64 MB.

How can we use entire 64 MB spi flash?

Thanks

0 Kudos
3 Replies

549 Views
Pavel
NXP Employee
NXP Employee

The T1022 boot ROM supports only 16-bit or 24-bit addressing for SPI boot.

See the Table 4-6 of the T1022 Reference Manual.

Sole solution is booting from NAND or NOR Flash.

Use two SPI Flashes on your board- 16MB for boot and 64MB for other tasks.


Have a great day,
Pavel Chubakov

-------------------------------------------------------------------------------
Note:

This thread is continued as a private discussion with the submitter,
NXP support is not following the thread anymore.
-------------------------------------------------------------------------------

0 Kudos

549 Views
Pavel
NXP Employee
NXP Employee

Use booting from SD or NOR or NAND instead of eSPI. Configure eSPI for 32-bit address. See the AN4375:

https://www.nxp.com/docs/en/application-note/AN4375.pdf


Have a great day,
Pavel Chubakov

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

549 Views
debduttabanerje
Contributor III

Yes , we are able to use whole 64 MB SPI flash when booting from Nand or NOR. In the kernel spi driver 32-bit addressing is enabled by default.

But since we use SPI as boot source, we had to disable 32-bit addressing in kernel to ensure the board boots up on soft reboot.

won't it be possible to do both, i.e use 64MB flash and boot from SPI it at the same time. 

0 Kudos