2020-04-29 10:44 PM
Hi, I am using STM32F446RET6 programming in stm32cubeide. In my project I want to write and read data on internal EEPROM.
I could see library file working only for STM32L series.
I found a user created library file from github. But the problem i faced was after every time I run the program i need to erase the whole chip and update the firmware. If didn't do so so I couldn't upload the program.
It comes as this error
should i add thesefunction.
HAL_FLASH_Lock();
HAL_FLASH_UnLock();
i face the same problem even afterthat
Please help me.
Thank You
2020-04-30 02:01 AM
Hello,
What do you call internal EEPROM for STM32F446RET6 exactly ? According to its Datasheet its backup SRAM can be used as a pseudo EEPROM:
"The 4-Kbyte backup SRAM is an EEPROM-like memory area. It can be used to store data which need to be retained in VBAT and standby mode. This memory area is disabled by default to minimize power consumption. It can be enabled by software."
Some STM32L products has a real internal EEPROM embedded, this is not the case for F4 products. That should explain your first link.
Also the github you have mentioned seems to realize basic FLASH readings and writings, but FLASH operations do not work like EEPROM operations.
May be you can explain what you try to do by using an EEPROM-style memory ?
Also, EEPROM emulation oriented Appli Notes like the AN4894 or AN3969 could be useful for you.
Adam