Serial NAND not working with LS1012A

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial NAND not working with LS1012A

508 Views
minalnemade
Contributor II

Hi,

      We have designed a custom board using LS1012A process and using serial NAND flash W25N01GW. So we have modified the LS1012A_FRDM_init.py file so as to program our NAND flash. Please check the attached file. By using this .py file we are able to flash our custom board using codewarrior-TAP. But the uboot file we downloaded does not boot up on custom board. We see one application note AN5376 which say that to use NAND flash with qspi we need to modify LUT in the software. Please help us to understand the changes required for LUT for our NAND Flash and where this modification is required to be done.

Update to above

We have got another application note for W25N01GW NAND flash, which we have used in our custom board. As per this Note we need to do LUT modifications in software (As mentions in section "3.Software changes needed" page no. 2 of the attached Application Note). Also as per LS1012A Refrence manual, it is possible to program 64 LUT registers. But in the application Note for W25N01GW nand flash there are more than 64 LUT registers.

So please help us to understand the changes required to be done for W25N01GW NAND Flash. Alos where we need to do these modifications (PBI commands or in Uboot)?

Thanks & Regards

Minal

0 Kudos
1 Reply

272 Views
Pavel
NXP TechSupport
NXP TechSupport

The LS1012a PBL uses the following for QSPI boot:

0x03 as READ command

24-bit address mode

Operate at minimum speed of 15 MHz

 

Perhaps your problem concerns to byte ordering in RCW and u-boot for QSPI.

See attached snapshot. This file shows the LS1021aRDB PBL (address 0x4000_0000) and u-boot (address 0x4010_0000).

Find the following

40000080: 00000200 09570158 00000001 894c0014

40000090: 000f400c 09550000 40006108 15c98e05

 

The 894c0014 000f400c code is the following command:

write - 0x000F400C at address ox01550000              // set QSPI_MCR[END_CFG] to 0b11


Have a great day,
Pavel Chubakov

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

0 Kudos