--- ** [tickets:#352] Watchpoints with HLA target** **Status:** new **Milestone:** 0.11.0 **Created:** Wed May 25, 2022 07:33 AM UTC by Fab **Last Updated:** Wed May 25, 2022 07:33 AM UTC **Owner:** nobody Using the latest commit (0a36acbf6ac67cf6e95077aa25a001e2638f2798), an ST-link-v2 adapter, and a Cortex-M7, I launch openocd with: ~~~ openocd -f ./tcl/interface/stlink.cfg -f ./tcl/target/stm32f7x.cfg ~~~ Works like a charm in conjunction with gdb, but watchpoints are not reported as WP, but as breakpoints. The reasons are: - In src/target/hla_target.c, adapter_examine_debug_reason, the examination is pretty shallow. - Also, "hit_watchpoint" is not filled in the hla_target structure. Re-using the methods in src/target/cortex_m.c worked for me. I also tried to forcibly use a "cortex_m" target, but it didn't go well. Below is the log when I launch openocd, which shows that we use an HLA_SWD transport: ~~~ Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable} Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 2000 kHz Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.243973 Info : [stm32f7x.cpu] Cortex-M7 r1p0 processor detected Info : [stm32f7x.cpu] target has 8 breakpoints, 4 watchpoints ~~~ --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net 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.