Skip to main content
Associate
Oct 20, 2026 9:26 AM UTC
Solved

STM32H743 FMC NOR hangs after repeated external resets

My STM32H743 application runs from internal Flash, with some code and data in external NOR via FMC. It runs stably for days without NOR issues, but after repeated external resets the board eventually becomes silent and will not recover with an MCU reset; power-cycling restores it. HAL_NOR_Init() has writes disabled, and captured pre-FMC pin levels were unchanged. What should I check to identify whether FMC/NOR initialization, access sequencing, or reset behavior causes the hang?

Associate
Nov 2, 2026 9:57 AM UTC

What was actually happening:
Part of my app runs straight from the external NOR. On every boot, the app's own startup code was reconfiguring the clocks and the FMC while the CPU was still reading code and data from that same NOR. My theory is that an external reset landing in that window leaves the NOR in a bad state. A normal MCU reset doesn't clear it, so only a power cycle recovers the board. I haven't proven the exact mechanism, but removing the re-initialization made the problem go away.

The fix:
-BOOT sets up the clocks, the FMC (NOR read-only) and the SDRAM once, then jumps to the app.
-The app no longer touches the clocks or the FMC. It only calls SystemCoreClockUpdate() to pick up BOOT's settings.
-No HAL_DeInit() before the jump, because it resets the FMC and the GPIO ports.

4 replies

KDJEM.1
ST Technical Moderator
Oct 20, 2026 10:40 AM UTC

Hello ​@tomercohenmunters and welcome to the community;

 

Is cache enabled?

Are you using the MPU?

Could you please check the reset pin

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
rich.g.williams
Senior
Oct 20, 2026 1:46 PM UTC

​@tomercohenmunters 

The STM32H743 has about 1MB of internal RAM, can you run everything inside RAM as a test?

Are there enough wait states configured for your NOR memory?

Have you checked the coding that brings up the core voltage VOSA to its highest value assuming you are running at top speed?

Have you checked that the PLL’s are correctly configured?

It could be an external Xtal failing to restart? You could try using the internal HSI in place of external Xtal?

Are the power supplies clean and correct voltages? Is the reset signal clean and sharp?

Have you tried a second PCB in case of dry joint or similar PCB problem?

Is anything getting too hot?

A good idea would be to monitor the current to the MCU. When the MCU fails to start, if the current is too low suggests the sys clk didn’t restart - maybe a PLL cannot lock on again?

 

 

Bill's Notes
Pavel A.
Oct 21, 2026 11:30 PM UTC

It’s hard to tell without knowing your flash chip, but generally NOR flashes have certain state machine and spurious resets can get it in a weird state. In startup code (or bootloader) you can read the NOR flash status and detect if it needs additional reset actions before jumping to the main app.  The ST “HAL” library is generic and can miss some corner cases for specific chips . (this is similar to how I2C devices can get “locked up” and need additional reset).

 

 

tomercohenmuntersAuthorBest answer
Associate
Nov 2, 2026 9:57 AM UTC

What was actually happening:
Part of my app runs straight from the external NOR. On every boot, the app's own startup code was reconfiguring the clocks and the FMC while the CPU was still reading code and data from that same NOR. My theory is that an external reset landing in that window leaves the NOR in a bad state. A normal MCU reset doesn't clear it, so only a power cycle recovers the board. I haven't proven the exact mechanism, but removing the re-initialization made the problem go away.

The fix:
-BOOT sets up the clocks, the FMC (NOR read-only) and the SDRAM once, then jumps to the app.
-The app no longer touches the clocks or the FMC. It only calls SystemCoreClockUpdate() to pick up BOOT's settings.
-No HAL_DeInit() before the jump, because it resets the FMC and the GPIO ports.