Skip to main content
Associate
June 16, 2025
Solved

F769 EVAL QSPI_Executeinplace example code

  • June 16, 2025
  • 2 replies
  • 336 views

when running the QSPI_Executeinplace example code on the stm32f769i_eval board,the program enters HardFault_handler() after executing GpioToggle().i just remove the QSPI_DummyCyclesCfg(),in GpioToggle() the GPIO Not Taking effect,so How can I solve this problem?      thanks

Best answer by Imen.D

Hello @andrewpei ,

Use a debugger to identify the exact instruction causing the HardFault.

Have you made any updates to the example?  If yes, please share the exact modifications you made and the debugger output when the HardFault occurs?

Ensure that the QSPI and GPIO peripherals do not have conflicting configurations or resource usage.

Ensure that the dummy cycles are correctly configured as per the QSPI memory datasheet.

Remember to use the latest release of CubeF7 firmware package.

2 replies

Imen.DBest answer
Technical Moderator
June 16, 2025

Hello @andrewpei ,

Use a debugger to identify the exact instruction causing the HardFault.

Have you made any updates to the example?  If yes, please share the exact modifications you made and the debugger output when the HardFault occurs?

Ensure that the QSPI and GPIO peripherals do not have conflicting configurations or resource usage.

Ensure that the dummy cycles are correctly configured as per the QSPI memory datasheet.

Remember to use the latest release of CubeF7 firmware package.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
andrewpeiAuthor
Associate
June 17, 2025

Hello,@Imen.D ,

Indeed, by debug the code, I found that the data written to NOR Flash differs from the original data,because the dummy cycle configuration for my NOR Flash under the QUAD_OUT_FAST_READ_CMD instruction differs from the example code's implementation. 

Technical Moderator
June 16, 2025

Hello @andrewpei 

Please refer to this article to debug hardfault.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"