This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is writing ready flash this involved?

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?

Parents
  • 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();

Reply
  • 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();

Children