|
| 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) |
0 commit comments