2019-08-04 09:24 PM
I have successfully updated the firmware of L476RG of my added functionality (I put my own code into a new fixed FLASH region, and only update this region for updating the firmware), now assuming I have changed the definition of pin on L476RG, which possibly cause new Hal functions added into the flash, what could I do?
at first I thought I could erase & write all FLASH except for my upgrade code, but I found I need to use some HAL functions when I erase & write FLASH, i.e I could not erase that FLASH region!
So Any way to deal with this situation? I also thought about identifying those new caused HAL functions and put them into reserved upgrade memory, so HAL functions related with erase & write will not be erased, but I found it's complicated as small functions are within large functions....