title: How do I read and write a byte to FLASH using a STM32 chip
body: <p>For example, I have a counter value that needs to be saved to flash and after I reboot I want to read that counter again. I am new to the ARM processors. I am using the HAL Drivers.</p>
  
  <p>Something similar to:</p>
  
  <pre><code>s8 adl_flhRead( ascii * Handle, u16 ID, u16 Len, u8 * ReadData );
  
  s8 adl_flhWrite( ascii * Handle, u16 ID, u16 Len, u8 * WriteData );
  </code></pre>