Openocd not working with STM32F750
I was successfully using openocd with GDB with STM32F746-DISCO. However, my new STM32F750-DISCO does not work.
I use this commands:
openocd -f /usr/share/openocd/scripts/board/stm32f7discovery.cfg
telnet localhost 4444
reset halt
flash write_image erase ../bld/main.bin 0x8000000which throws the following error:
openocd: src/flash/nor/stm32f2x.c:774: setup_sector: Assertion `i < bank->num_sectors' failed.
I think this is maybe because stm32f750 has smaller flash that stm32f746 (64k vs 1M). However, I have no idea how to fix this. I can successfully program it with st-flash so I don't think it is the problem of the Flash size itself, but some configuration being incompatible.
Thank you!
