[SOLVED] How does Arduino EEPROM library work on STM32?
Posted: Thu Jul 25, 2024 12:10 pm
Hi All,
I recently created a design with an embedded STM32F303RET6 chip with the understanding that there was no EEPROM unit in this controller. From looking online I see that EEPROM can be emulated on STM32 MCUs using the on-chip flash memory.
I intended to connect an external EEPROM chip so that I could use the Arduino EEPROM.h library instead of using the expansion for the STMCube IDE to reconfigure the flash memory. However when I uploaded the software to the chip with no external EEPROM connected, it carried out the read and write functions I had written. My only explanation for this is that the EEPROM library accessed the flash memory, is this correct and if so how does it do this?
I'm relatively new programming these devices so any information or ideas would be super helpful.
Thanks,
Phoebe
I recently created a design with an embedded STM32F303RET6 chip with the understanding that there was no EEPROM unit in this controller. From looking online I see that EEPROM can be emulated on STM32 MCUs using the on-chip flash memory.
I intended to connect an external EEPROM chip so that I could use the Arduino EEPROM.h library instead of using the expansion for the STMCube IDE to reconfigure the flash memory. However when I uploaded the software to the chip with no external EEPROM connected, it carried out the read and write functions I had written. My only explanation for this is that the EEPROM library accessed the flash memory, is this correct and if so how does it do this?
I'm relatively new programming these devices so any information or ideas would be super helpful.
Thanks,
Phoebe