Skip to main content
Junde
Senior III
March 29, 2024
Solved

How to set a nand flash with FMC?

  • March 29, 2024
  • 2 replies
  • 3388 views

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!

 

This topic has been closed for replies.
Best answer by Junde

I don't know what happened.

But the below setting seems to work well now:

Junde_0-1712457994541.png

 

2 replies

Junde
JundeAuthor
Senior III
April 3, 2024

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

Junde
JundeAuthor
Senior III
April 3, 2024

@unknown 

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

 

Junde
JundeAuthorBest answer
Senior III
April 7, 2024

I don't know what happened.

But the below setting seems to work well now:

Junde_0-1712457994541.png