cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_TYPEPROGRAM_FAST fails in G0B1

microhenrio
Associate

I tried to use FLASH_TYPEPROGRAM_FAST in a G0B1 but is not working after a page erase. I suppose it will work with mass erase but not tried. Only works FLASH_TYPEPROGRAM_DOUBLEWORD.

I've also tried to make my own function to write only 32bits modifing FLASH_Program_DoubleWord(), but again it doesn't like it and goes to HardFault_Handler()

Edit: Post moved from the old thread STM32G0 and FLASH_TYPEPROGRAM_FAST fail. Starting a new thread is better to have more chance to check the question by Community members. Don't hesitate to provide more details that can help to understand the problem and what you did as tests.

1 REPLY 1
KORKAD
ST Employee

Hello @microhenrio,

Please note that during fast programming, the flash memory clock (HCLK) frequency must be at least 8 MHz.

The FLASH fast and DoubleWord programming modes are working well with a mass or page erase. If not, the PGSERR is set.

For more technical details, please refer to section "3.3.8 FLASH Main Memory Programming Sequences" in the STM32G0x1 Reference Manual.

If there are no constraints, you can share your project to further investigate your issue.

With Regards

Anis