Skip to main content
JJ.Lin
Associate III
August 30, 2021
Question

fmc operations cause mcu reset repeatly

Hi everyone,

I met a problem now. I am developing display product using stm32f429zet6, the lib is f41.26.1. In my project, nand flash is used to storage images and fonts, the sdram is used to cache images. Fatfs work upon nand. Obviously nand and sdram use fmc interface. When mcu start, I copy the images from nand to sdram before ui task stark. But in this operation, mcu would reset repeatly reset some times. Times is not fixed. Sometimes is 3 while sometimes is more, but sometimes it works well without reset. There is not mcu reset function in the copy process. I can't express why.

/JJ.Lin

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
August 30, 2021

Scope the power supply rail vs the NRST pin. Might also look for interconnected nets, inconsistent grounding, or circuitous routing of power

Any watchdog running?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
August 30, 2021

Determine the cause of the reset by looking at the RCC->CSR register.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JJ.Lin
JJ.LinAuthor
Associate III
August 31, 2021

Thank you a lot! If it works well the CSR register show that it is reset by soft reset as is designed, but unexpected reset due to POR/PDR (power on/ down) reset. How can NAND flash or SDRAM read/wirte cause power reset? So how can I do next ?

TDK
August 31, 2021

> How can NAND flash or SDRAM read/wirte cause power reset? So how can I do next ?

They use power, perhaps they are using more than you have available, causing the voltage to drop, causing a reset. Monitor the rail with a scope. Create a power budget to ensure you can power everything off of the LDO you're using (or whatever power generation you have).

"If you feel a post has answered your question, please click ""Accept as Solution""."