Flash on the STM32L0 series of chips works a bit different and needs a slightly different implementation compared to other STM32 chips.