STM32L073Z-EVAL no flash bank found for address 8018000
solved:
added a second flash bank to stm32l073z_eval.cfg, right after sourcing stm32l0.cfg:
here is the full fixed file:
# STM32L073Z-EVAL: This is an STM32L0 eval board with a single STM32L073VZT6 # (192KB) chip. # ### To be updated ### http://www.st.com/internet/evalboard/product/.jsp # This is for using the onboard STLINK/V2-1 source [find interface/stlink-v2-1.cfg] transport select hla_swd # increase working area to 20KB set WORKAREASIZE 0x5000 source [find target/stm32l0.cfg] # NOTE: the following is the added line flash bank $_FLASHNAME.1 stm32lx 0x08018000 0 0 0 $_TARGETNAME # use hardware reset, connect under reset reset_config srst_only srst_nogate
find the file (on my installation, it’s in SystemWorkbench/plugins/fr.ac6.mcu.debug_1.9.0.201605241146/resources/openocd/scripts/st_board/stm32l073z_eval.cfg) and fix it.