EraseInitStruct.NbPages=((u32EndAddr+1-u32StartAddr)/0x100);/* Number of pages that need to be erased */
if(HAL_FLASHEx_Erase(&EraseInitStruct,&PAGEError)!=HAL_OK)/* Executing page erasure, PAGEError returns the page with the erasure error and 0xFFFFFFFF, indicating successful erasure */
if(HAL_FLASHEx_Erase(&EraseInitStruct,&PAGEError)!=HAL_OK)/* Executing page erasure, PAGEError returns the page with the erasure error and 0xFFFFFFFF, indicating successful erasure */
if(HAL_FLASHEx_Erase(&EraseInitStruct,&PAGEError)!=HAL_OK)/* Executing page erasure, PAGEError returns the page with the erasure error and 0xFFFFFFFF, indicating successful erasure */
if(HAL_FLASHEx_Erase(&EraseInitStruct,&PAGEError)!=HAL_OK)/* Executing page erasure, PAGEError returns the page with the erasure error and 0xFFFFFFFF, indicating successful erasure */