cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a nand flash with FMC?

Junde
Senior II

Hi there,

I want to try touchGFX on my homemade board with the STM32F429BIT6 and a band flash chip H27U1G8F2B.

I initial the FMC NAND flash by following the code:

Junde_0-1711690830124.png

and test the NAND flash as below:

Junde_1-1711690868363.png

The LOG output is like this(the data value sometimes change, but always data[0] err):

Junde_2-1711690975526.png

By the LOG, the operation of the NAND flash is successful, but the result is wrong!

Am I making a mistake?

Thanks for your help in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions

I don't know what happened.

But the below setting seems to work well now:

Junde_0-1712457994541.png

 

View solution in original post

4 REPLIES 4
Junde
Senior II

Could anyone demo me how to use the FMC to extend the NAND flash?

I have already tried all the things in my mind.

I can use the SDRAM by FMC normally, but the NAND flash always err...

Thanks very much

enginehonestfan
Associate II

I don't know about dynamic use of NAND flash, but in case you want to use NAND flash only in case of after booting up, it must not be that much hard. Since you also have LCD and External RAM, it makes it a bit difficult to simultaneously use RAM and NAND flash at the same time.

@enginehonestfan 

Thanks for your reply.

Finally, I find the reason. I think that is a bug of HAL.

The FMC init function needs to add one line for configuring the device parameters.

For me, the code in Red Square is critical!

Junde_0-1712135853325.png

 

I don't know what happened.

But the below setting seems to work well now:

Junde_0-1712457994541.png