--- **[tickets:#470] adapter speed changes in target events fails with a fixed speed adapter** **Status:** new **Milestone:** 0.12.0 **Created:** Thu Apr 23, 2026 09:19 AM UTC by Tomas Vanek **Last Updated:** Thu Apr 23, 2026 09:19 AM UTC **Owner:** nobody If we use a fixed speed adapter (e.g. linuxgpiod) `adapter speed` command in the configuration phase is silently ignored. On the other hand `adapter speed` after `init` fails with `Translation from khz to adapter speed not implemented` Since merging 5049: target: use LOG_USER to print errors in events | https://review.openocd.org/c/openocd/+/5049 `adapter speed` used in an event (typically `reset-start` and `reset-init`) logs this: ``` > reset halt Translation from khz to adapter speed not implemented [stm32u3x.cpu] Execution of event reset-start failed: /home/vanekt/o/tcl//target/stm32x5x_common.cfg:125: Error: Traceback (most recent call last): File "embedded:startup.tcl", line 1471, in ocd_process_reset ocd_process_reset_inner halt File "/home/vanekt/o/tcl//target/stm32x5x_common.cfg", line 125, in ocd_process_reset_inner {adapter speed} 480 ``` IMO OpenOCD should accept a fixed speed adapter without making such noise. Moreover if the event contains some other Tcl commands after `adapter speed` they don't get executed. Possible solutions: - use `catch` with `adapter speed` in all event handlers. Con: more than 30 occurrences. - modify adapter.c code not to return error in case of a fixed speed adapter used --- 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.
