---

** [tickets:#237] Regression cannot add breakpoint on STM32F7 with code from 
ITCM**

**Status:** new
**Milestone:** 0.9.0
**Created:** Sat May 11, 2019 03:22 PM UTC by benjarobin
**Last Updated:** Sat May 11, 2019 03:22 PM UTC
**Owner:** nobody


Hello,

After an update of openOCD debugging was no longer working with an STM32F7 with 
code running from ITCM interface.
The code is still in the internal flash of the STM32, but access from the ITCM 
bus (0x02000000) instead of the AXI bus (0x80000000)

I bisect the problem to the following commit :
* 
https://sourceforge.net/p/openocd/code/ci/81d0b769a65bf15dda2fd51cd4aee50bb0dc16fb/
* 
https://github.com/gnu-mcu-eclipse/openocd/commit/e3e31fc15f4c5f9b8718c280fa60d02edc7e4c53

Prior to this commit, the breakpoint was forced to be an BKPT_HARD since the 
address 0x02000000 is smaller than 0x20000000:
`BKPT_TYPE_BY_ADDR(addr) ((addr) < 0x20000000 ? BKPT_HARD : BKPT_SOFT)`

By default eclipse use Regular breakpoint, and it looks like it is hardcoded:
* 
https://github.com/eclipse-cdt/cdt/blob/HEAD/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/breakpoints/ToggleBreakpointAdapter.java

If I manually configure the breakpoint to be an hardware breakpoint, I can run 
to the configured hardware breakpoint, but stepping cannot be realized since it 
use internally a regular breakpoint.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to