2020-04-07 07:29 PM
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
Solved! Go to Solution.
2020-04-08 12:26 AM
Ohh my bad, i just found the correct IAP driver..
It seems its gonna work out.
2020-04-08 12:26 AM
Ohh my bad, i just found the correct IAP driver..
It seems its gonna work out.