// 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
}
Code Example |
---|
C :: Print Characters |
C :: VLOOKUP CHECK #N/A |
C :: clipboard lib |
C :: cmake boilerplate for visual studio c++ project |
C :: #pragma pack(1) in c |
C :: c to assembly converter online |
C :: python project script run |
C :: link a lib iusing pragma |
C :: float para numeros aleatorios em c |
C :: Algorithm that flips sentences and numbers |
C :: C (K&R) |
C :: timespec c |
C :: get file ligne count c |
C :: wait system call |
C :: how to devowel string in c program |
C :: why return 0 is written at the code end? |
C :: print octal in c |
C :: gotoxy not working in dev c++ |
C :: wordpress clean name spaces |
C :: perfect numbers in c |
C :: c constants |
C :: rpobleme valgrind |
Dart :: textfield border radius flutter |
Dart :: flutter appbar text color |
Dart :: how to change color in container flutter |
Dart :: remove space from string dart |
Dart :: textfield height flutter |
Dart :: dart loop through array |
Dart :: flutter chip padding |
Dart :: convert string to float .0 dart |