| # Copyright 2023 The Pigweed Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. You may obtain a copy of |
| # the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations under |
| # the License. |
| |
| # This openocd configuration is compatible with all STM32F7xx cores. |
| |
| interface hla |
| hla_layout stlink |
| hla_device_desc "ST-LINK/V2-1" |
| hla_vid_pid 0x0483 0x374b |
| |
| # If PW_STLINK_SERIAL is specified, use that device. |
| if { [info exists ::env(PW_STLINK_SERIAL)] } { |
| hla_serial $::env(PW_STLINK_SERIAL) |
| } |
| |
| # If PW_GDB_PORT is specified, use that port. |
| if { [info exists ::env(PW_GDB_PORT)] } { |
| gdb_port $::env(PW_GDB_PORT) |
| } |
| |
| transport select hla_swd |
| |
| source [find target/stm32f7x.cfg] |
| |
| # Use hardware reset. |
| reset_config srst_only srst_nogate |