The nucleo-l152re is the only stm32l1x supported board with two flash banks according to openocd config. Thus, adding the right config file makes the whole flash available.