Skip to main content
Associate II
August 19, 2024
Solved

(M24M01E-F) Data storage

Hi,

For my project, I am using an M24M01E-F I2C EEPROM. In this application need to store sensors offset values (float data type) in EEPROM. whether it can be able to write/ read float value.

 

Regards,

Rishvana M

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
August 19, 2024

You can store bytes in any EEPROM, whether single bytes or bytes in groups. In STM32, FLOAT values consist of four bytes (32bit), so you can also store FLOAT on the EEPROM.

Hope that answers your question?

Regards
/Peter

In order 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.

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
August 19, 2024

You can store bytes in any EEPROM, whether single bytes or bytes in groups. In STM32, FLOAT values consist of four bytes (32bit), so you can also store FLOAT on the EEPROM.

Hope that answers your question?

Regards
/Peter

In order 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.
RishvanaAuthor
Associate II
August 19, 2024

Thank you @Peter BENSCH