mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-21 14:16:26 +00:00
8c235cec60
Adds a build argument to the stm32f429i-disc1 target that enables running tests via the pw_test_server. Change-Id: I76c98fa25d27c771251e41de8631f156572f7731
38 lines
1.1 KiB
INI
38 lines
1.1 KiB
INI
# Copyright 2019 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 STM32F4xx 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/stm32f4x.cfg]
|
|
|
|
# Use hardware reset.
|
|
reset_config srst_only srst_nogate
|