2017-06-05 07:18 AM
I am new to STM microcontrollers and I am trying to store an interger array into my Flash memory of STM32F4 Discovery board. I request you to kindly help how to proceed from scratch. I am using IAR Embedded IDE.
2017-06-05 08:25 AM
You want the tool chain to place the array there, or are you looking to program part of the flash memory after the fact?
The libraries should contain examples of programming the flash.
For STM32 specific information refer to the Reference Manual, it describes the memory organization and flash.
2017-06-05 12:57 PM
Can you please guide me to the examples of programming the flash memory to store this array.
Thank you.
2017-06-05 04:32 PM
If you know the values at compile time, you need only do something like this:
const int32_t TVA_LUT[8] =
{ 210, 209, 207, 206, 204, 203, 202, 201}
The compiler will place this array in flash memory, due to the const type qualifier.
2017-06-16 10:37 AM
Thank you!
2017-06-16 10:39 AM
Thank you!