We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I was reading up on the flash eeprom and best I can tell for the stm32f chips this is needed. micromouseusa.com/
Has Keil mdk5 not provided a simple function?
Where is FLASH_writeBlock ?
I could not find an include to support this function. I tried a few other write methods.
1. Example from eeprom emulation reads but does not write. 2. STM32F2 Standard Peripheral bibliotheek same.
example
if(HAL_FLASH_Unlock()!=HAL_OK) //return ok. FLASH_PageErase(0x0800c000); FLASH->CR = 0;//known bug that apparent is not documented.
if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, 0x0800c000, 0x01010101) != HAL_OK) //error
HAL_FLASH_Lock();
I wrote the pseudo code off the top of my head in minutes.
FLASH_WriteBlock() is an abstraction for the code that manages the processor interaction with flash, figure it is a Flash aware memcpy()