Revert "boards/nucleo-f767zi: add correct flash bank openocd config" #13457
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts #13179
this line in boards/common/stm32/dist/stm32f7.cfg
flash bank $_FLASHNAME.riot stm32f2x 0x08000000 0 0 0 $_TARGETNAME
leads to misinformation of openocd about the memory layout (there is an extra flash region at the same place) and since gdb gets its memory map information from openocd it will detect Overlapping regions in memory map and will not use it. this will hamper debugging.
gdb: warning: Overlapping regions in memory map: ignoring
For me it was:
gdb tells openocd to set soft break points, if it does not know about the memory map, which do not work (in flash regions?).
older versions of openocd (current ubuntu) ignore if gdb tells them to set soft breakpoints and decide on their own depending o the address. newer version respect what gdb tells them to do.
i am not sure how to fix the issue that #13179 tried to fix but i think i should be in openocd.sh
which states:
i think the nucleo-f767zi is in a non flashable state with its reset being pulled there for the procedure should be pull the reset the release it then read the flash information
flash probe 0
allways fails for the nucleo-f767zi in that with the current procedurethe flash procedure does it like this
after this the flash is accessible and the flash probe 0 should not fail