Skip to content

Commit 7edab2d

Browse files
author
Jamie Smith
authored
Add upload methods for NUCLEO_H723ZG (ARMmbed#209)
* Add upload methods for NUCLEO_H723ZG * Oops fix comment * Also fix another comment
1 parent 85c5dab commit 7edab2d

File tree

4 files changed

+64
-13
lines changed

4 files changed

+64
-13
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Mbed OS upload method configuration file for target NUCLEO_H723ZG.
2+
# To change any of these parameters from their default values, set them in your build script between where you
3+
# include app.cmake and where you add mbed os as a subdirectory.
4+
5+
# Notes:
6+
# 1. To use this target with PyOCD, you need to install a pack: `pyocd pack install STM32H723ZGTx`.
7+
# You might also need to run `pyocd pack update` first.
8+
# 2. Latest pyocd did not work with this target for me. Got 'Error while running debug sequence 'DebugDeviceUnlock''.
9+
10+
# General config parameters
11+
# -------------------------------------------------------------
12+
set(UPLOAD_METHOD_DEFAULT MBED)
13+
14+
# Config options for MBED
15+
# -------------------------------------------------------------
16+
17+
set(MBED_UPLOAD_ENABLED TRUE)
18+
set(MBED_RESET_BAUDRATE 115200)
19+
20+
# Config options for JLINK
21+
# -------------------------------------------------------------
22+
23+
set(JLINK_UPLOAD_ENABLED FALSE)
24+
set(JLINK_CPU_NAME STM32H723ZG)
25+
set(JLINK_CLOCK_SPEED 4000)
26+
set(JLINK_UPLOAD_INTERFACE SWD)
27+
28+
# Config options for PYOCD
29+
# -------------------------------------------------------------
30+
31+
set(PYOCD_UPLOAD_ENABLED FALSE)
32+
set(PYOCD_TARGET_NAME STM32H723ZGTx)
33+
set(PYOCD_CLOCK_SPEED 4000k)
34+
35+
# Config options for OPENOCD
36+
# -------------------------------------------------------------
37+
38+
set(OPENOCD_UPLOAD_ENABLED TRUE)
39+
set(OPENOCD_CHIP_CONFIG_COMMANDS
40+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/nucleo_h72x.cfg)
41+
42+
# Config options for STM32Cube
43+
# -------------------------------------------------------------
44+
45+
set(STM32CUBE_UPLOAD_ENABLED TRUE)
46+
set(STM32CUBE_CONNECT_COMMAND -c port=SWD reset=HWrst)
47+
set(STM32CUBE_GDBSERVER_ARGS --swd)
48+
49+
# Config options for stlink
50+
# -------------------------------------------------------------
51+
52+
set(STLINK_UPLOAD_ENABLED TRUE)
53+
set(STLINK_LOAD_ADDRESS 0x8000000)
54+
set(STLINK_ARGS --connect-under-reset)

targets/upload_method_cfg/WIO_H725AE.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set(PYOCD_CLOCK_SPEED 4000k)
3838

3939
set(OPENOCD_UPLOAD_ENABLED TRUE)
4040
set(OPENOCD_CHIP_CONFIG_COMMANDS
41-
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/wio_h725.cfg)
41+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/stm32h72x.cfg)
4242

4343
# Config options for STM32Cube
4444
# -------------------------------------------------------------
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OpenOCD config file for Nucleo H72x boards
2+
3+
source [find interface/stlink.cfg]
4+
5+
transport select hla_swd
6+
7+
source [find target/stm32h7x.cfg]
8+
9+
reset_config srst_only

targets/upload_method_cfg/openocd_cfgs/wio_h725.cfg

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)