Horje
how to write flash memory in stm32f030 Code Example
how to write flash memory in stm32f030
// You can write into flash page but can not over write erase page before write again.
//https://stackoverflow.com/questions/47373317/how-to-write-erase-on-chip-flash-continuously-in-stm32f030-family
uint32_t pageAddress = 0x08008000;
  uint16_t buffer = 0xdddd;          // data buffer
  HAL_HAL_StatusTypeDef  status;

  while(1)
  { 
     HAL_FLASH_Unlock();              // unlock the flash memory in ST
     //FLASH_PageErase(pageAddress); 
     status=HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, pageAddress, 
     buffer);
     HAL_FLASH_Lock();                // Flash memory locked
  }




C

Related
cannot read property '_id' of undefined at new Grid ReadStream Code Example cannot read property '_id' of undefined at new Grid ReadStream Code Example
user  define Code Example user define Code Example
Program optimization Code Example Program optimization Code Example
getopt optstr Code Example getopt optstr Code Example
manasa loves maths solution IN C Code Example manasa loves maths solution IN C Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10