Storing parameters to nonvolatile memory

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
zamek
Posts: 14
Joined: Sat Mar 23, 2013 6:39 pm

Storing parameters to nonvolatile memory

Post by zamek »

Hi All,

Is there any way to store short data to flash from my code? For example I need to measure 8 channel temperatures with pt100. It would be very cool, if I can store normalization parameters to flash.

thx
Zamek.
Last edited by zamek on Sat Mar 23, 2013 7:57 pm, edited 1 time in total.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Storing parameters to nonvolatile memory

Post by Tectu »

By "normalized parameters", you mean some values you need for calculation? Why not using const then?
Otherwise, this might be of your interests.


~ Tectu
zamek
Posts: 14
Joined: Sat Mar 23, 2013 6:39 pm

Re: Storing parameters to nonvolatile memory

Post by zamek »

Hi,

Yes, I have to calculating the correct value based on the linear equation. I need to store 4 parameters to each channel.
If I should store it in const, I need to recompile the sw, if somebody changes a sensor.
If I should store it to flash, I can make an auto standardization.

thx,
Zamek
Post Reply