STM32F072RBT6 not properly modeled in OPENOCD? 64K instead of 128K
Hi,
Maybe will help to activate debug level 3 (-d3) for OpenOCD.
(Here you can find how to do this http://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=977)
It is possible that OpenOCD creates a configuration that is not for STM32F0 MCU ?
My understanding is that OpenOCD creates the configuration at the beginning of the execution, but I don’t know what are the inputs. Probably the variables above are initialized at this time.
Something that can be useful is this:
12.1 Flash Configuration Commands
http://openocd.org/doc/html/Flash-Commands.html#flashdriverlist
“Flash Driver: stm32f1x
Note that some devices have been found that have a flash size register that contains an invalid value, to workaround this issue you can override the probed value used by the flash driver.
flash bank $_FLASHNAME stm32f1x 0 0x20000 0 0 $_TARGETNAME”
(I think this will specify 128k)
Maybe you can ckeck if STM32 ST-LINK Utility reports the correct flash size.
I suppose you don’t use on-board ST-LINK debugger. Conform with ST NUCLEO-F072RB has a V2.1 debugger but from your log there is a V2.0
Hope this help somehow.