title: How to use W25Q16 FLASH memory in STM32F4 with HAL Driver?
body: <p>I want to save and restore my integer datas with my FLASH memory in STM32F407 using SPI1. I gave instructions to FLASH like this code.</p>
  
  <pre><code>uint8_t txData[10] = {0xAB, 0x04, 0x06, 0xC7, 0x04, 0x90, 0x00, 0x00, 0x00, 0x00};
  uint8_t rxData[10] = {0};
  
  HAL_SPI_Init(&amp;hspi1);
  HAL_SPI_Transmit(&amp;hspi1, txData+5, 1, 10000);
  HAL_SPI_Transmit(&amp;hspi1, txData+6, 1, 10000);
  HAL_SPI_Transmit(&amp;hspi1, txData+7, 1, 10000);
  HAL_SPI_Transmit(&amp;hspi1, txData+8, 1, 10000);
  HAL_SPI_TransmitReceive(&amp;hspi1, txData+9, rxData, 1, 10000);
  </code></pre>
  
  <p>But, in <code>rxData[0]</code>, it has only <code>FF</code> after <code>HAL_SPI_TransmitReceive()</code>. I want to see my Manufacturer ID.</p>
  
  <p>Thanks to help.</p>