2024-09-11 06:11 AM - last edited on 2024-09-11 06:32 AM by Andrew Neil
Hi everyone.
I caught a problem on STM32G0B0KET6. I want to write a data to main flash memory. But I detected that I can not write any data page 382 and page 383. I only can not write to this pages. There are no problem for other pages.
For this pages, I always took error(warning) of FLASH->SR : CFGBSY after when I write first word that is 32 bits.
I spent to find for two day for this problem. If I did not test other pages, I would have lost time more. I used HAL library for this process.
Do you have any information about this problem?
Note: I write as Type of DoubleWord.
Thank you.
Best regards,
Page number for following SS: 55
2024-09-11 07:51 AM
Hello @erkanc,
Please check if the write protection error flag (WRPERR) of the FLASH_SR register is set.
Read 3.5.2 FLASH write protection (WRP) section in RM
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.
2024-09-11 10:15 PM - edited 2024-09-12 03:10 AM
I already tested it. If I write any data to page 382 and page 383, CFGBSY bit is stucted as set. But there is no problem for other pages.
2024-09-17 03:12 AM
Hello again @erkanc,
Could share with us the sequence to write double word in these 2 pages
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.