2024-03-13 07:08 AM - edited 2024-03-13 07:09 AM
Hi,
What is the effect of "VoltageRange " while erasing a sector ?
Er.VoltageRange = FLASH_VOLTAGE_RANGE_1;
Ret = HAL_FLASHEx_Erase(&Er, &SectorError);
#define FLASH_VOLTAGE_RANGE_1 0x00000000U /*!< Flash program/erase by 8 bits */
#define FLASH_VOLTAGE_RANGE_2 FLASH_CR_PSIZE_0 /*!< Flash program/erase by 16 bits */
#define FLASH_VOLTAGE_RANGE_3 FLASH_CR_PSIZE_1 /*!< Flash program/erase by 32 bits */
#define FLASH_VOLTAGE_RANGE_4 FLASH_CR_PSIZE /*!< Flash program/erase by 64 bits */
From the comment, it seems like the operation will be faster if FLASH_VOLTAGE_RANGE_4 is used. Is that the only thing to be noted ? Are there any disadvantages or any other parameters that ned to be taken care if I keep it as FLASH_VOLTAGE_RANGE_4 ?
Solved! Go to Solution.
2024-03-13 09:06 AM
Not really. It's faster but uses more peak power. See here in RM:
2024-03-13 09:06 AM
Not really. It's faster but uses more peak power. See here in RM: