How to write float data in Flash memory in STM32L4 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-16 11:07 PM
hello
i want to save float value in the flash memory in STM32L4.
it is my favor that you give me answer.
my below is my code
Labels:
- Labels:
-
Flash
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-17 12:47 AM
FLASH just stores bytes - it doesn't care what those bytes mean. The float is just a data type of a size of 4 bytes, so just write it as any other 4 bytes.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-17 1:03 AM
Just use a global or static "const" variable, and it ends up in Flash.
