Skip to content

Commit b352953

Browse files
authored
Upload: Support Nuvoton targets (#334)
* NUVOTON: Support upload methods Support targets include: - NUMAKER_PFM_NANO130 - NUMAKER_PFM_NUC472 - NUMAKER_PFM_M453 - NUMAKER_PFM_M487 - NUMAKER_IOT_M487 - NUMAKER_IOT_M467 - NUMAKER_IOT_M252 - NUMAKER_IOT_M263A - NU_M2354 * NUVOTON: Add openocd upload method document This adds document to enable openocd upload method for Nuvoton NuMicro Cortex-M series.
1 parent 428b56e commit b352953

13 files changed

+270
-0
lines changed

targets/TARGET_NUVOTON/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Nuvoton NuMicro Cortex-M series
2+
3+
## Nuvoton fork of OpenOCD
4+
5+
Nuvoton NuMicro Cortex-M support for openocd is forked
6+
[here](https://github.com/OpenNuvoton/OpenOCD-Nuvoton),
7+
but has not yet upstreamed.
8+
To enable openocd upload method for the series,
9+
install [NuEclipse IDE](https://github.com/OpenNuvoton/Nuvoton_Tools)
10+
which will also install the necessary openocd.
11+
12+
> **ℹ️ Information**
13+
>
14+
> On Windows, openocd will usually install at:
15+
`C:\Program Files (x86)\Nuvoton Tools\OpenOCD\bin\openocd.exe`.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_IOT_M252.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m252kg6ae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m23.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_IOT_M263A.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m263kiaae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m23.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_IOT_M467.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m467hjhae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m4.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_IOT_M487.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m487jidae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m4.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_PFM_M453.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for OPENOCD
15+
# -------------------------------------------------------------
16+
set(OPENOCD_UPLOAD_ENABLED TRUE)
17+
set(OPENOCD_CHIP_CONFIG_COMMANDS
18+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m4.cfg)
19+
20+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
21+
# not yet upstreamed. Its version number is fixed to 0.10.022.
22+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_PFM_M487.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m487jidae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m4.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_PFM_NANO130.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for OPENOCD
15+
# -------------------------------------------------------------
16+
set(OPENOCD_UPLOAD_ENABLED TRUE)
17+
set(OPENOCD_CHIP_CONFIG_COMMANDS
18+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m0.cfg)
19+
20+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
21+
# not yet upstreamed. Its version number is fixed to 0.10.022.
22+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Mbed OS upload method configuration file for target NUMAKER_PFM_NUC472.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for OPENOCD
15+
# -------------------------------------------------------------
16+
set(OPENOCD_UPLOAD_ENABLED TRUE)
17+
set(OPENOCD_CHIP_CONFIG_COMMANDS
18+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m4.cfg)
19+
20+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
21+
# not yet upstreamed. Its version number is fixed to 0.10.022.
22+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mbed OS upload method configuration file for target NU_M2354.
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+
# General config parameters
6+
# -------------------------------------------------------------
7+
set(UPLOAD_METHOD_DEFAULT MBED)
8+
9+
# Config options for MBED
10+
# -------------------------------------------------------------
11+
set(MBED_UPLOAD_ENABLED TRUE)
12+
set(MBED_RESET_BAUDRATE 115200)
13+
14+
# Config options for PYOCD
15+
# -------------------------------------------------------------
16+
set(PYOCD_UPLOAD_ENABLED TRUE)
17+
set(PYOCD_TARGET_NAME m2354kjfae)
18+
set(PYOCD_CLOCK_SPEED 4000k)
19+
20+
# Config options for OPENOCD
21+
# -------------------------------------------------------------
22+
set(OPENOCD_UPLOAD_ENABLED TRUE)
23+
set(OPENOCD_CHIP_CONFIG_COMMANDS
24+
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/numicro_m23.cfg)
25+
26+
# Nuvoton NuMicro Cortex-M support for OpenOCD is forked, but has
27+
# not yet upstreamed. Its version number is fixed to 0.10.022.
28+
set(OPENOCD_VERSION_RANGE 0.10.022...0.10.22)

0 commit comments

Comments
 (0)