mirror of https://github.com/ARMmbed/mbed-os.git
46 lines
1.6 KiB
CMake
46 lines
1.6 KiB
CMake
# Mbed OS upload method configuration file for target NUCLEO_F429ZI.
|
|
# 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. Using the JLINK upload method with your dev board requires converting its ST-LINK into a J-Link. See here for details: https://www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/
|
|
|
|
# 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 TRUE)
|
|
set(JLINK_CPU_NAME STM32F429ZI)
|
|
set(JLINK_CLOCK_SPEED 4000)
|
|
set(JLINK_UPLOAD_INTERFACE SWD)
|
|
|
|
# Config options for PYOCD
|
|
# -------------------------------------------------------------
|
|
|
|
set(PYOCD_UPLOAD_ENABLED TRUE)
|
|
set(PYOCD_TARGET_NAME stm32f429xi)
|
|
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/stm32f429-disco.cfg)
|
|
|
|
# Config options for STM32Cube
|
|
# -------------------------------------------------------------
|
|
|
|
set(STM32CUBE_UPLOAD_ENABLED TRUE)
|
|
set(STM32CUBE_CONNECT_COMMAND -c port=SWD reset=HWrst)
|
|
set(STM32CUBE_GDBSERVER_ARGS --swd)
|