SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By LoloTheDude
#185089
Hello everyone,
recently bringing up a STM32L152VC (256K Flash/32K RAM/8K EEPROM), I went into trouble when trying to program further than 192KB with OpenOCD.
Looking in flash/nor/stm32lx.c it seems that Cat.3 devices are considered "Dual-banks" with a max first bank size of 192K.
ST datasheet RM0038 states that only Cat.4/5/6 are dual bank, so it looks like a bug to me.
Actually changing "has_dual_banks" to false for Cat.3 and rebuilding openOCD fixed my issue.