Skip to main content
Associate III
March 13, 2024
Solved

FLASH_VOLTAGE_RANGE_1

  • March 13, 2024
  • 1 reply
  • 1254 views

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 ? 

Best answer by TDK

Not really. It's faster but uses more peak power. See here in RM:

TDK_0-1710345996450.png

 

1 reply

TDK
TDKAnswer
Super User
March 13, 2024

Not really. It's faster but uses more peak power. See here in RM:

TDK_0-1710345996450.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."