mirror of https://github.com/ARMmbed/mbed-os.git
Add upload methods for NUCLEO_H723ZG (#209)
* Add upload methods for NUCLEO_H723ZG * Oops fix comment * Also fix another commentpull/15494/head
parent
85c5dab9da
commit
7edab2d1ce
|
@ -0,0 +1,54 @@
|
|||
# Mbed OS upload method configuration file for target NUCLEO_H723ZG.
|
||||
# To change any of these parameters from their default values, set them in your build script between where you
|
||||
# include app.cmake and where you add mbed os as a subdirectory.
|
||||
|
||||
# Notes:
|
||||
# 1. To use this target with PyOCD, you need to install a pack: `pyocd pack install STM32H723ZGTx`.
|
||||
# You might also need to run `pyocd pack update` first.
|
||||
# 2. Latest pyocd did not work with this target for me. Got 'Error while running debug sequence 'DebugDeviceUnlock''.
|
||||
|
||||
# General config parameters
|
||||
# -------------------------------------------------------------
|
||||
set(UPLOAD_METHOD_DEFAULT MBED)
|
||||
|
||||
# Config options for MBED
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(MBED_UPLOAD_ENABLED TRUE)
|
||||
set(MBED_RESET_BAUDRATE 115200)
|
||||
|
||||
# Config options for JLINK
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(JLINK_UPLOAD_ENABLED FALSE)
|
||||
set(JLINK_CPU_NAME STM32H723ZG)
|
||||
set(JLINK_CLOCK_SPEED 4000)
|
||||
set(JLINK_UPLOAD_INTERFACE SWD)
|
||||
|
||||
# Config options for PYOCD
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(PYOCD_UPLOAD_ENABLED FALSE)
|
||||
set(PYOCD_TARGET_NAME STM32H723ZGTx)
|
||||
set(PYOCD_CLOCK_SPEED 4000k)
|
||||
|
||||
# Config options for OPENOCD
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(OPENOCD_UPLOAD_ENABLED TRUE)
|
||||
set(OPENOCD_CHIP_CONFIG_COMMANDS
|
||||
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/nucleo_h72x.cfg)
|
||||
|
||||
# Config options for STM32Cube
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(STM32CUBE_UPLOAD_ENABLED TRUE)
|
||||
set(STM32CUBE_CONNECT_COMMAND -c port=SWD reset=HWrst)
|
||||
set(STM32CUBE_GDBSERVER_ARGS --swd)
|
||||
|
||||
# Config options for stlink
|
||||
# -------------------------------------------------------------
|
||||
|
||||
set(STLINK_UPLOAD_ENABLED TRUE)
|
||||
set(STLINK_LOAD_ADDRESS 0x8000000)
|
||||
set(STLINK_ARGS --connect-under-reset)
|
|
@ -38,7 +38,7 @@ set(PYOCD_CLOCK_SPEED 4000k)
|
|||
|
||||
set(OPENOCD_UPLOAD_ENABLED TRUE)
|
||||
set(OPENOCD_CHIP_CONFIG_COMMANDS
|
||||
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/wio_h725.cfg)
|
||||
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/stm32h72x.cfg)
|
||||
|
||||
# Config options for STM32Cube
|
||||
# -------------------------------------------------------------
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# OpenOCD config file for Nucleo H72x boards
|
||||
|
||||
source [find interface/stlink.cfg]
|
||||
|
||||
transport select hla_swd
|
||||
|
||||
source [find target/stm32h7x.cfg]
|
||||
|
||||
reset_config srst_only
|
|
@ -1,12 +0,0 @@
|
|||
# OpenOCD config file for the Wio-H725
|
||||
|
||||
interface hla
|
||||
hla_layout stlink
|
||||
hla_device_desc "ST-LINK/V2"
|
||||
|
||||
# ST-LINK V2.1 0483:374b
|
||||
hla_vid_pid 0x0483 0x374b
|
||||
|
||||
transport select hla_swd
|
||||
|
||||
source [find target/stm32H7x.cfg]
|
Loading…
Reference in New Issue