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
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.
2020-03-17 01:03 AM
Just use a global or static "const" variable, and it ends up in Flash.