2021-03-29 01:14 PM
2021-03-29 01:21 PM
Not really much detail to bite on there.
Does the L0 have width and alignment expectations?
Have a Hard Fault Handler that outputs some actionable data, look at the code faulting, look at the registers, and the address that's causing the issue.
2021-03-29 11:45 PM
Maybe you use flash as eeprom code in F072, but addressing and size for L071 is other. Too L071 have internal EEPROM then better is use it instead flash writes.
2021-03-30 02:48 AM
Lots of info on debugging Hard Faults:
#HardFault
2021-03-30 01:48 PM
Thanks to MM..1, I used Data eeprom and it worked perfectly, Thanks!
2021-03-30 03:00 PM
While on STM32F, erased flash is 0xff. it is 0 on STM32L0. That could be a pitfall too.
2021-03-31 03:01 AM