cancel
Showing results for 
Search instead for 
Did you mean: 

IAP driver for STM32 L071?

MPrad.2
Associate

Hi ,

I try to put IAP Driver in my projects. But, I have a problem with this driver. Let me inform you what I have done and what I have. I use STM32CubeIDE with STM32L071 Controller. I search the IAP Driver. Found one. Download the driver. Put the driver into my src and inc folder. Try to compile. Then, I get error because the driver is used by STM32F4 Series and the driver use Standard Peripheral Library.

Considering that STM32CubeIDE generate HAL Library, so I need your help to translate this part of code from Standard Library into HAL Library or their equivalent.

FLASH_EraseSector(i, VoltageRange_3) != FLASH_COMPLETE
 
FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange)
 
(FLASH_OB_GetWRP() >> (UserStartSector/8)) == (0xFFF >> (UserStartSector/8))
 
FLASH_OB_WRPConfig(UserWrpSectors, DISABLE);

I really appreciate for your help. thanks.

Pradipta

1 ACCEPTED SOLUTION

Accepted Solutions
MPrad.2
Associate

Ohh my bad, i just found the correct IAP driver..

It seems its gonna work out.

View solution in original post

1 REPLY 1
MPrad.2
Associate

Ohh my bad, i just found the correct IAP driver..

It seems its gonna work out.