22# To change any of these parameters from their default values, set them in your build script between where you
33# include app.cmake and where you add mbed os as a subdirectory.
44
5+ # Notes:
6+ # 1. The Nuvoton fork of OpenOCD is required: https://github.com/OpenNuvoton/OpenOCD-Nuvoton/releases .
7+ # Point CMake to it via setting the OpenOCD option. For example:
8+ # -DOpenOCD="C:/Program Files (x86)/OpenOCD-nuvoton/bin/openocd.exe"
9+ # 2. Take note of the "MSG" DIP switch on the Nu-Link section of the board. If set to ON, the Nu-Link will run in
10+ # mass storage mode and can only work with the "MBED" upload method. If set to OFF, the Nu-Link will run in
11+ # Nu-Link mode and only works with Nuvoton OpenOCD.
12+ # 3. On Windows you will need to install the Nu-Link Keil USB driver, which can be found near the bottom here:
13+ # https://www.nuvoton.com/tool-and-software/ide-and-compiler/
14+ # 4. The onboard nu-link does not have a unique USB serial number configured, so the MBED_UPLOAD_SERIAL_NUMBER
15+ # option will not work (and it doesn't seem to work with OpenOCD 0.10.x anyway). This means, sadly, it's impossible
16+ # to work with more than one Nuvoton board at a time on a given machine.
17+ # 5. To upgrade the Nu-Link firmware, the official instructions didn't work for me at first -- I had to use
18+ # the ICP Programming Tool to get to a newer version. Then I could use the method of holding down the
19+ # DAP button to get into bootloader mod, and flash the binary from here:
20+ # https://github.com/OpenNuvoton/Nuvoton_Tools/blob/master/Latest_NuLink_Firmware/NuLink1FW.bin
21+
522# General config parameters
623# -------------------------------------------------------------
724set (UPLOAD_METHOD_DEFAULT MBED)
@@ -11,12 +28,6 @@ set(UPLOAD_METHOD_DEFAULT MBED)
1128set (MBED_UPLOAD_ENABLED TRUE )
1229set (MBED_RESET_BAUDRATE 115200)
1330
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-
2031# Config options for OPENOCD
2132# -------------------------------------------------------------
2233set (OPENOCD_UPLOAD_ENABLED TRUE )
0 commit comments