AnsweredAssumed Answered

STM32H7 HAL Flash Program

Question asked by Korinsek.Gasper.001 on Jun 29, 2017
Latest reply on May 4, 2018 by tarek tayachi

7There is a potential bug in the HAL library ver 1.0 for the STM32H7:


Functions FLASH_Erase_Sector and FLASH_MassErase (file stm32h7xx_hal_flash_ex.c,) change the PSIZE value in the FLASH->CRx register according to the VoltageRange argument. The function HAL_FLASH_Program (stm32h7xx_hal_flash.c) seems to expect the default PSIZE value (64-bit).


In other words: calling FLASH_Erase_Sector or FLASH_MassErase functions with a VoltageRange argument other than FLASH_VOLTAGE_RANGE_4, changes the behaviour of the HAL_FLASH_Program function.


Separate questions:


Is there any plan to support 8, 16 or 32-bit programming parallelisms in the HAL_FLASH_Program API?