forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some issues with building on K64F, add K64F upload methods (#267)
* Fix some issues with building on K64F, add K64F upload methods * Add Mbed upload method * Fix pin validate test * Also install json5 * Fix incorrect COMPONENT_SD config
- Loading branch information
1 parent
acfd341
commit 3fcfbbd
Showing
13 changed files
with
86 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Mbed OS upload method configuration file for target K64F. | ||
# 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. PyOCD did not actually work in my testing as of Apr 2024, though this device is supposed to be supported | ||
# 2. Be sure to update the DAPLink firmware on the board via these instructions: https://os.mbed.com/blog/entry/DAPLink-bootloader-update/ | ||
|
||
# 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 PYOCD | ||
# ------------------------------------------------------------- | ||
set(PYOCD_UPLOAD_ENABLED TRUE) | ||
set(PYOCD_TARGET_NAME k64f) | ||
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/mk64f.cfg) | ||
|
||
# Config options for LINKSERVER | ||
# ------------------------------------------------------------- | ||
set(LINKSERVER_UPLOAD_ENABLED TRUE) | ||
set(LINKSERVER_DEVICE MK64FN1M0xxx12:FRDM-K64F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# OpenOCD config file for Kinetis K64F chips using DAPLink | ||
|
||
source [find interface/cmsis-dap.cfg] | ||
|
||
transport select swd | ||
|
||
source [find target/k60.cfg] | ||
|
||
reset_config srst_only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters