title: How to write the flash memory of stm32w108 from code
body: <p>I am working on a problem, where I need to read and write some data from the flash of stm32w108 microcontroller. I am using dizic mb954 board, and running contiki on it. I've tried modifying the linker script by adding an extra section .flash_store within the .text section and added <strong>(rwx)</strong> attribute to the flash, and explicitly declared an array using </p>
  
  <p><code>__attribute__((.flash_store))</code></p>
  
  <p>The problem is although I can read the initialized array properly, while writing, it falls back to the default handler and loops there. </p>
  
  <p>In AVR microcontrollers this is easily done using PROGMEM attribute, is there any similar workaround for stm32w108?</p>