cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_VOLTAGE_RANGE_1

andy_long
Associate III

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 ? 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

1 REPLY 1
TDK
Guru

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".