Table of Contents

Advertisement

Quick Links

NuMaker-HMI-M032KI
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-HMI-M032KI
User Manual
Evaluation Board for NuMicro
®
M032 Series
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuMicro microcontroller and
microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
May 25, 2022
Page 1 of 58
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMaker-HMI-M032K and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton NuMaker-HMI-M032K

  • Page 1 The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NuMicro microcontroller and microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
  • Page 2: Table Of Contents

    4.8 LEDs ..........................32 4.9 Nu-Link2-Me ......................... 32 VCOM Switches......................32 Status LEDs ........................33 5 NUMAKER-M032KI QUICK START .............. 34 5.1 Toolchains Supporting ....................34 5.2 Nuvoton Nu-Link Driver Installation ................34 May 25, 2022 Page 2 of 58 Rev 1.00...
  • Page 3 NuMaker-HMI-M032KI 5.3 BSP Firmware Download ................... 36 5.4 Hardware Setup ......................36 5.5 Find the Example Project ................... 38 5.6 Execute the Project under Toolchains ..............38 Keil MDK .......................... 38 IAR EWARM ........................42 NuEclipse ......................... 44 6 EMWIN GUI LIBRARY PACKAGE QUICK START ........50 6.1 emWin GUI Library Package Download ..............
  • Page 4 NuMaker-HMI-M032KI List of Figures Figure 1-1 NuTFT Kit Board ......................7 Figure 1-2 NuMaker-M032KI Board ..................... 8 Figure 1-3 NuMaker-HMI-M032KI ....................8 Figure 3-1 Front View of NuTFT Kit Board ................. 10 Figure 3-2 Rear View of NuTFT Kit Board ................. 11 Figure 3-3 NuTFT Kit Board Extension Connectors –...
  • Page 5 NuMaker-HMI-M032KI Figure 5-22 Project Properties Settings ..................45 Figure 5-23 Build Project ......................46 Figure 5-24 Open Debug Configuration ..................46 Figure 5-25 Main Tab Configuration ..................47 Figure 5-26 Debugger Tab Configuration .................. 47 Figure 5-27 Startup Tab Configuration..................48 Figure 5-28 NuEclipse Debug Mode ..................
  • Page 6 NuMaker-HMI-M032KI List of Tables Table 3-1 NuTFT Kit Board Pin Function Description – NU1, NU2 and NU5 ......14 Table 3-2 NuTFT Kit Board Pin Function Description – NU6 and NU7 ........15 Table 4-1 Extension Connectors ....................18 Table 4-2 M032KIAAE Full-pin Extension Connectors and GPIO Function List ......22 Table 4-3 Arduino UNO Extension Connectors and M032KIAAE Mapping GPIO List ....
  • Page 7: Overview

    Kit Board requires NuMaker development board as mother board to create a GUI development platform. All Nuvoton NuMaker development boards support this kit board. It is designed for LCD display or GUI evaluation, prototype development and validation. Besides, Nuvoton provides emWin GUI library on NuMaker-NUC126 and NuMaker-M032KI.
  • Page 8: Figure 1-2 Numaker-M032Ki Board

    NuMaker-HMI-M032KI Figure 1-2 NuMaker-M032KI Board Figure 1-3 NuMaker-HMI-M032KI May 25, 2022 Page 8 of 58 Rev 1.00...
  • Page 9: Features

    NuMaker-HMI-M032KI FEATURES NuTFT Kit Board Features  16 Mbits (2 MB) SPI Flash * 1 (W25Q16CV)  2.4” (320x240) LCD Panel with 4-Wire ADC Touch Function (LCD Driver is Ili9341)  Five Direction Joystick * 1  Push Botton * 2 ...
  • Page 10: Nutft Kit Board Hardware Configuration

    NuMaker-HMI-M032KI NUTFT KIT BOARD HARDWARE CONFIGURATION Front View Arduino compatible Arduino compatible interface connectors interface connectors TFT LCD Panel with TFT LCD Panel with Touch Function Touch Function Five Direction Switch Button Joystick Arduino compatible Arduino compatible interface connectors interface connectors Figure 3-1 Front View of NuTFT Kit Board Figure 3-1 shows the main components and connectors from the front side of NuTFT Kit Board.
  • Page 11: Rear View

    NuMaker-HMI-M032KI Rear View Figure 3-2 shows the main components and connectors from the rear side of NuTFT Kit Board. The following lists components and connectors from the rear view:  16 Mbits (2 MB) SPI Flash * 1 (W25Q16CV) (U1) ...
  • Page 12: Extension Connectors

    NuMaker-HMI-M032KI Extension Connectors Pin Assignment for Extension Connectors NuTFT Kit Board is equipped with one SPI flash, one LCD panel with touch function, one five direction joystick and two push buttons for developing and verifying some special feature. Besides, the pin arrangement of NuTFT Kit Board is compatible with Arduino UNO.
  • Page 13: Figure 3-4 Nutft Kit Board Connectors - Rear View

    NuMaker-HMI-M032KI SPIFlash-CLK SPIFlash-MISO0 SPIFlash-MOSI0 3.3V SPIFlash-SS SPIFlash-MOSI1 SPIFlash-MISO1 LCM_LED Joystick-R ADC-YU Joystick-U ADC-XL Joystick-L ADC-YD Joystick-D ADC-XR Joystick-M Button-SW7 Button-SW8 LCM_RESET LCM_DC LCM_SPI_SS LCM_RESET LCM_SPI_CLK LCM_SPI_MISO GPIO LCM_SPI_MOSI 3.3V Figure 3-4 NuTFT Kit Board Connectors – Rear View May 25, 2022 Page 13 of 58 Rev 1.00...
  • Page 14: Pin Function Description

    NuMaker-HMI-M032KI Pin Function Description There is few different between NuMaker pin define and Arduino UNO pin define. The pin define of NU7 of Arduino is same as D11, D12, D13 (SPI function) and there is 1 set of SPI. The pin define of NU7 of NuMaker is another SPI function and there are 2 sets of SPI.
  • Page 15: Table 3-2 Nutft Kit Board Pin Function Description - Nu6 And Nu7

    NuMaker-HMI-M032KI Arduino UNO NuMaker Pin Header NuTFT Kit Board Function Pin Define Define SPI Flash – MISO1 SPI Flash – MOSI1 SPI Flash – SS0 D10 (SPI0) SPI Flash – MOSI0 D11 (SPI0) SPI Flash – MISO0 D12 (SPI0) SPI Flash – CLK0 D13 (SPI0) AREF AREF...
  • Page 16: Numaker-M032Ki Hardware Configuration

    NuMaker-HMI-M032KI NUMAKER-M032KI HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connector Switch Reset Button External V Connector Ammeter VCOM Switch External V Connector ICE USB Connector USB FS Connector ICE Chip: M48SSIDAE Power LED ICE Status LED PB14 LED Off-line Program Button External V Connector M032 Platform...
  • Page 17: Rear View

    NuMaker-HMI-M032KI Rear View Figure 4-2 shows the main components and connectors from the rear side of NuMaker-M032KI. The following lists components and connectors from the rear view:  Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – ICEVCC Power Switch MCUVCC Power Switch Figure 4-2 Rear View of NuMaker-M032KI May 25, 2022...
  • Page 18: Extension Connectors

    NuMaker-HMI-M032KI Extension Connectors Table 4-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M032KI. NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-M032KI. Table 4-1 Extension Connectors Pin Assignment for Extension Connectors The NuMaker-M032KI provides the M032KIAAE onboard and extension connectors (JP3, JP4, JP5 and JP6).
  • Page 19 NuMaker-HMI-M032KI M032KIAAE Header Pin No. Function PB.5/ADC0_CH5/ACMP1_N/EBI_ADR0/I2C0_SCL/UART5_TXD/USCI1_CTL0/PWM0_CH0/UART2 JP3.1 _TXD/TM0/INT0 PB.4/ADC0_CH4/ACMP1_P1/EBI_ADR1/I2C0_SDA/UART5_RXD/USCI1_CTL1/PWM0_CH1/UAR JP3.2 T2_RXD/TM1/INT1 PB.3/ADC0_CH3/ACMP0_N/EBI_ADR2/I2C1_SCL/UART1_TXD/UART5_nRTS/USCI1_DAT1/PW JP3.3 M0_CH2/PWM0_BRAKE0/TM2/INT2 PB.2/ADC0_CH2/ACMP0_P1/EBI_ADR3/I2C1_SDA/UART1_RXD/UART5_nCTS/USCI1_DAT0/PW JP3.4 M0_CH3/TM3/INT3 JP3.5 PC.12/EBI_ADR4/UART0_TXD/I2C0_SCL/UART6_TXD/PWM1_CH0/ACMP0_O JP3.6 PC.11/EBI_ADR5/UART0_RXD/I2C0_SDA/UART6_RXD/PWM1_CH1/ACMP1_O JP3.7 PC.10/EBI_ADR6/UART6_nRTS/UART3_TXD/PWM1_CH2 JP3.8 PC.9/EBI_ADR7/UART6_nCTS/UART3_RXD/PWM1_CH3 PB.1/ADC0_CH1/EBI_ADR8/UART2_TXD/USCI1_CLK/I2C1_SCL/QSPI0_MISO1/PWM0_CH4/PW JP3.9 M1_CH4/PWM0_BRAKE0 PB.0/ADC0_CH0/EBI_ADR9/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/QSPI0_MOSI1/PWM0_CH5/ JP3.10 PWM1_CH5/PWM0_BRAKE1 JP3.11 JP3.12 JP3.13 PA.11/ACMP0_P0/EBI_nRD/USCI0_CLK/UART6_TXD/BPWM0_CH0/TM0_EXT JP3.14 PA.10/ACMP1_P0/EBI_nWR/USCI0_DAT0/UART6_RXD/BPWM0_CH1/TM1_EXT JP3.15 PA.9/EBI_MCLK/USCI0_DAT1/UART1_TXD/UART7_TXD/BPWM0_CH2/TM2_EXT JP3.16 PA.8/EBI_ALE/USCI0_CTL1/UART1_RXD/UART7_RXD/BPWM0_CH3/TM3_EXT/INT4 JP3.17...
  • Page 20 NuMaker-HMI-M032KI M032KIAAE Header Pin No. Function JP5.2 PH.5/EBI_ADR2/UART7_nCTS/UART6_RXD JP5.3 PH.6/EBI_ADR1/UART7_TXD JP5.4 PH.7/EBI_ADR0/UART7_RXD JP5.5 PF.3/EBI_nCS0/UART0_TXD/I2C0_SCL/XT1_IN/BPWM1_CH0 JP5.6 PF.2/EBI_nCS1/UART0_RXD/I2C0_SDA/QSPI0_CLK/XT1_OUT/BPWM1_CH1 JP5.7 JP5.8 JP5.9 PE.8/EBI_ADR10/USCI1_CTL1/UART2_TXD/PWM0_CH0/PWM0_BRAKE0 JP5.10 PE.9/EBI_ADR11/USCI1_CTL0/UART2_RXD/PWM0_CH1/PWM0_BRAKE1 JP5.11 PE.10/EBI_ADR12/USCI1_DAT0/UART3_TXD/PWM0_CH2/PWM1_BRAKE0 JP5.12 PE.11/EBI_ADR13/USCI1_DAT1/UART3_RXD/UART1_nCTS/PWM0_CH3/PWM1_BRAKE1 JP5.13 PE.12/EBI_ADR14/USCI1_CLK/UART1_nRTS/PWM0_CH4 JP5.14 PE.13/EBI_ADR15/I2C0_SCL/UART4_nRTS/UART1_TXD/PWM0_CH5/PWM1_CH0/BPWM1_CH5 JP5.15 PC.8/EBI_ADR16/I2C0_SDA/UART4_nCTS/UART1_RXD/PWM1_CH1/BPWM1_CH4 JP5.16 PC.7/EBI_AD9/UART4_TXD/UART0_nCTS/UART6_TXD/PWM1_CH2/BPWM1_CH0/TM0/INT3 JP5.17 PC.6/EBI_AD8/UART4_RXD/UART0_nRTS/UART6_RXD/PWM1_CH3/BPWM1_CH1/TM1/INT2 JP5.18 PA.7/EBI_AD7/UART0_TXD/I2C1_SCL/PWM1_CH4/BPWM1_CH2/ACMP0_WLAT/TM2/INT1 JP5.19 PA.6/EBI_AD6/UART0_RXD/I2C1_SDA/PWM1_CH5/BPWM1_CH3/ACMP1_WLAT/TM3/INT0 JP5.20 JP5.21 JP5.22...
  • Page 21 NuMaker-HMI-M032KI M032KIAAE Header Pin No. Function JP4.4 PD.8/EBI_AD6/UART2_nRTS/UART7_RXD JP4.5 PC.5/EBI_AD5/QSPI0_MISO1/UART2_TXD/I2C1_SCL/UART4_TXD/PWM1_CH0 JP4.6 PC.4/EBI_AD4/QSPI0_MOSI1/UART2_RXD/I2C1_SDA/UART4_RXD/PWM1_CH1 JP4.7 PC.3/EBI_AD3/QSPI0_SS/UART2_nRTS/I2C0_SMBAL/UART3_TXD/PWM1_CH2 JP4.8 PC.2/EBI_AD2/QSPI0_CLK/UART2_nCTS/I2C0_SMBSUS/UART3_RXD/PWM1_CH3 JP4.9 PC.1/EBI_AD1/QSPI0_MISO0/UART2_TXD/I2C0_SCL/PWM1_CH4/ACMP0_O/ADC0_ST JP4.10 PC.0/EBI_AD0/QSPI0_MOSI0/UART2_RXD/I2C0_SDA/PWM1_CH5/ACMP1_O JP4.11 JP4.12 JP4.13 PG.9/EBI_AD0/BPWM0_CH5 JP4.14 PG.10/EBI_AD1/BPWM0_CH4 JP4.15 PG.11/EBI_AD2/UART7_TXD/BPWM0_CH3 JP4.16 PG.12/EBI_AD3/UART7_RXD/BPWM0_CH2 JP4.17 PG.13/EBI_AD4/UART6_TXD/BPWM0_CH1 JP4.18 PG.14/EBI_AD5/UART6_RXD/BPWM0_CH0 JP4.19 PG.15/CLKO/ADC0_ST JP4.20 PD.7/UART1_TXD/I2C0_SCL/USCI1_CLK JP4.21 PD.6/UART1_RXD/I2C0_SDA/USCI1_DAT1 JP4.22 PD.5/I2C1_SCL/USCI1_DAT0 JP4.23...
  • Page 22: Table 4-2 M032Kiaae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-HMI-M032KI M032KIAAE Header Pin No. Function JP6.7 JP6.8 JP6.9 PE.1/EBI_AD10/QSPI0_MISO0/UART3_TXD/I2C1_SCL/UART4_nCTS JP6.10 PE.0/EBI_AD11/QSPI0_MOSI0/UART3_RXD/I2C1_SDA/UART4_nRTS JP6.11 PH.8/EBI_AD12/QSPI0_CLK/UART3_nRTS/UART1_TXD JP6.12 PH.9/EBI_AD13/QSPI0_SS/UART3_nCTS/UART1_RXD JP6.13 PH.10/EBI_AD14/QSPI0_MISO1/UART4_TXD/UART0_TXD JP6.14 PH.11/EBI_AD15/QSPI0_MOSI1/UART4_RXD/UART0_RXD/PWM0_CH5 JP6.15 PD.14/EBI_nCS0/SPI0_I2SMCLK/USCI0_CTL0/PWM0_CH4 JP6.16 JP6.17 LDO_CAP JP6.18 JP6.19 PC.14/EBI_AD11/SPI0_I2SMCLK/USCI0_CTL0/QSPI0_CLK/TM1 PB.15/ADC0_CH15/EBI_AD12/SPI0_SS/USCI0_CTL1/UART0_nCTS/UART3_TXD/PWM1_CH0/T JP6.20 M0_EXT/PWM0_BRAKE1 PB.14/ADC0_CH14/EBI_AD13/SPI0_CLK/USCI0_DAT1/UART0_nRTS/UART3_RXD/PWM1_CH1/ JP6.21 TM1_EXT/CLKO PB.13/ADC0_CH13/ACMP0_P3/ACMP1_P3/EBI_AD14/SPI0_MISO/USCI0_DAT0/UART0_TXD/UA JP6.22 RT3_nRTS/PWM1_CH2/TM2_EXT PB.12/ADC0_CH12/ACMP0_P2/ACMP1_P2/EBI_AD15/SPI0_MOSI/USCI0_CLK/UART0_RXD/UA JP6.23 RT3_nCTS/PWM1_CH3/TM3_EXT JP6.24 JP6.25 JP6.26...
  • Page 23: Arduino Uno Compatible Extension Connectors

    NuMaker-HMI-M032KI Arduino UNO Compatible Extension Connectors Figure 4-4 shows the Arduino UNO compatible extension connectors. MISO RESET PA.9 PA.11 nRESET PA.8 USCI0_DAT1 USCI0_CLK UART1_RXD PWM0_CH3 PB.2 UART1_TXD PWM0_CH2 PB.3 I2C1_SDA PWM1_CH1 PC.4 I2C1_SCL PWM1_CH0 PC.5 PWM1_CH2 PC.3 PWM1_CH3 PC.2 PWM1_CH4 PA.7 PWM1_CH5 PA.6...
  • Page 24: Table 4-3 Arduino Uno Extension Connectors And M032Kiaae Mapping Gpio List

    NuMaker-HMI-M032KI NuMaker-M032KI NuMaker-M032KI Header Header Compatible to Compatible to GPIO Pin of M032 GPIO Pin of M032 Arduino UNO Arduino UNO NU3.1 PB.2 NU2.6 PB.1 NU3.2 PB.3 NU2.5 PB.0 NU3.3 PC.4 NU2.4 PB.4 NU3.4 PC.5 NU2.3 PB.5 NU3.5 PC.3 NU2.2 PB.6 NU3.6 PC.2...
  • Page 25: Power Supply Configuration

    NuMaker-HMI-M032KI Power Supply Configuration The NuMaker-M032KI is able to adopt multiple power supplies. External power sources include NU1 Vin (7 V to 12 V), V (depending on the target chip operating voltage), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker- M032KI.
  • Page 26: Power Sources

    NuMaker-HMI-M032KI 3.3 V Power Sources Table 4-6 presents the 3.3 V power sources. Voltage 5 V Source Description Regulator ICEUP1 converts USB_HS_VBUS to 3.3 V and ICEUP1 USB_HS_VBUS supplies 3.3 V to M032KI target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M032KI target board.
  • Page 27: Usb Connectors

    NuMaker-HMI-M032KI USB Connectors Table 4-9 presents the USB connectors. Connector Description ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ3 programming from PC. USB FS connector on NuMaker-M032KI for power supply. Table 4-9 USB Connectors Power Switches Table 4-10 presents the power switches. Switch Description Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V.
  • Page 28: Figure 4-6 External Power Supply Sources On M032Ki Target Board

    NuMaker-HMI-M032KI To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the steps below: Solder the resistor on ICEJPR1 (MCUVCC) depending on the target chip operating voltage. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. Switch the SW2 to OFF.
  • Page 29: Figure 4-7 Detach The Nu-Link2-Me From Numaker-M032Ki

    NuMaker-HMI-M032KI To use JP1 as external power supply source, please follow the steps below: Switch the SW2 to OFF. Remove the resistor on ICEJPR1 (MCUVCC). Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. Connect ICEJ3 to PC. Connect the external power supply to JP1.
  • Page 30: Table 4-12 Supply External Power For M032Ki Target Board

    NuMaker-HMI-M032KI Table 4-12 presents all power models when supplies external power through M032KI target board. The M032KI target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection Selection 7 V ~ 12 V Remove...
  • Page 31: External Reference Voltage Connector

    NuMaker-HMI-M032KI External Reference Voltage Connector Table 4-13 presents the external reference voltage connector. Connector Description Connector for user to connect to the external reference voltage pin of the VREF1 target chip. User needs to remove the L5 ferrite bead. Table 4-13 External Reference Voltage Connector Ammeter Connector Table 4-14 presents the ammeter connector.
  • Page 32: Leds

    NuMaker-HMI-M032KI LEDs Table 4-16 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M032KI is powered. PB14 LED The LED is connected to the target chip PB.14. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3 Table 4-16 LEDs Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer.
  • Page 33: Status Leds

    NuMaker-HMI-M032KI Status LEDs Table 4-18 presents the status LEDs patterns for different operation on Nu-Link2-Me. Status LED Operation Status ICES0 ICES1 ICES2 ICES3 Boot Flash x 3 Flash x 3 Flash x 3 Flash x 3 Idle One Nu-Link2-Me is selected to connect Flash x 3 Flash x 3 Flash x 3...
  • Page 34: Numaker-M032Ki Quick Start

    KEIL MDK Nuvoton edition M0/M23  IAR EWARM  NuEclipse GCC (for Windows)  NuEclipse GCC (for Linux) Nuvoton Nu-Link Driver Installation Download and install the latest Nuvoton Nu-Link Driver.  Download and install Nu-Link_Keil_Driver when using Keil MDK.  Download and install Nu-Link_IAR_Driver when using IAR EWARM.
  • Page 35: Figure 5-2 Nu-Link Usb Driver Installation

    NuMaker-HMI-M032KI Figure 5-2 Nu-Link USB Driver Installation May 25, 2022 Page 35 of 58 Rev 1.00...
  • Page 36: Bsp Firmware Download

    NuMaker-HMI-M032KI BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to Figure 5-3 Open VCOM Function Connect the ICE USB connector shown in Figure 5-4 to the PC USB port through a USB cable. Figure 5-4 ICE USB Connector May 25, 2022 Page 36 of 58...
  • Page 37: Figure 5-5 Device Manger

    NuMaker-HMI-M032KI Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 5-5. Figure 5-5 Device Manger Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 5-6 presents the PuTTY session setting.
  • Page 38: Find The Example Project

    NuMaker-HMI-M032KI Find the Example Project Use the “Template” project as an example. The project can be found under the BSP folder as shown in Figure 5-7.  M031_Series_BSP_CMSIS_V3.XX.XXX  SampleCode  Template   Keil  Figure 5-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 39: Figure 5-9 Project File Migrate To Version 5 Format

    Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 5-10 and Figure 5-11. Figure 5-10 Debugger Setting in Options Window Note: If the dropdown menu in Figure 5-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 5.2. May 25, 2022 Page 39 of 58 Rev 1.00...
  • Page 40: Figure 5-11 Programming Setting In Options Window

    NuMaker-HMI-M032KI Figure 5-11 Programming Setting in Options Window Rebuild all target files. After successfully compiling the project, download code to the Flash memory. Click “Start/Stop Debug Section” button to enter debug mode. 1. Rebuild 2. Successfully compile 3. Download 4. Start/Stop Debug Figure 5-12 Compile and Download the Project May 25, 2022 Page 40 of 58...
  • Page 41: Figure 5-13 Keil Mdk Debug Mode

    NuMaker-HMI-M032KI Figure 5-13 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 5-14. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 42: Iar Ewarm

    NuMaker-HMI-M032KI IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. Double click the “Template.eww” to open the project. Make sure the toolbar contains “Nu-Link” item as shown in Figure 5-15. Note: If the toolbar does not contain “Nu-Link” item, please rework section 5.2. Figure 5-15 IAR EWARM Window Make a target file as presented in Figure 5-16.
  • Page 43: Figure 5-17 Iar Ewarm Debug Mode

    NuMaker-HMI-M032KI Figure 5-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 5-18. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 44: Nueclipse

    NuMaker-HMI-M032KI NuEclipse This section provides steps to beginners on how to run a project by using NuEclipse. Please make sure the filenames and project folder path contain neither invalid character nor space. Double-click “NuEclipse.exe" to open the toolchain. Import the “Template” project by following the steps presented in Figure 5-19 and Figure 5-20. Figure 5-19 Import the Project in NuEclipse M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template\GCC)
  • Page 45: Figure 5-21 Open Project Properties Window

    NuMaker-HMI-M032KI Click the “Template” project and find the project properties as shown in Figure 5-21. Make sure the settings are the same as settings in Figure 5-22. Figure 5-21 Open Project Properties Window Figure 5-22 Project Properties Settings May 25, 2022 Page 45 of 58 Rev 1.00...
  • Page 46: Figure 5-23 Build Project

    NuMaker-HMI-M032KI Click the “Template” project and build the project. Figure 5-23 Build Project After the project is built, click the “Template” project and set the “Debug Configuration” as shown in Figure 5-24. Follow the settings presented in Figure 5-25, Figure 5-26 and Figure 5-27 to enter debug mode.
  • Page 47: Figure 5-25 Main Tab Configuration

    NuMaker-HMI-M032KI Note 1: Double-click the “GDB Nuvoton Nu-Link Debugging” to create the sub item. Note 2: After the project is built, the “*.elf” file will be shown in “C/C++ Application” frame. Figure 5-25 Main Tab Configuration Figure 5-26 Debugger Tab Configuration...
  • Page 48: Figure 5-27 Startup Tab Configuration

    NuMaker-HMI-M032KI Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 5-27 Startup Tab Configuration May 25, 2022 Page 48 of 58 Rev 1.00...
  • Page 49: Figure 5-28 Nueclipse Debug Mode

    NuMaker-HMI-M032KI Figure 5-28 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 5-29. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 50: Emwin Gui Library Package Quick Start

    NuMaker-HMI-M032KI EMWIN GUI LIBRARY PACKAGE QUICK START emWin GUI Library Package Download Download and unzip the emWin GUI Library Package Board Support Package (BSP). Find the M032 emWin Quick Start Guide The “M032 emWin Quick Start Guide.pdf” can be found under the emWin GUI library package folder as shown in Figure 6-1.
  • Page 51: Nutft Kit Board Schematics

    NuMaker-HMI-M032KI NUTFT KIT BOARD SCHEMATICS NuTFT Kit Board Figure 7-1 shows the NuTFT Kit Board circuit. Connector 5D-JoyStick HEADER 2.54 10X1 male SIP-10P HEADER 2.54 8X1 male 3VCC SIP-8P SPI_Flash_CLK0 Flash-CLK0 SPI_Flash_MISO0 3VCC 3.3V Flash-MISO0 SPI_Flash_MOSI0 R0603 R0603 CONN MOD 6-6_J R0603 R0603 R0603...
  • Page 52: Pcb Placement

    NuMaker-HMI-M032KI PCB Placement Figure 7-2 and Figure 7-3 show the front and rear placement of NuTFT Kit Board. Figure 7-2 Front Placement Figure 7-3 Rear Placement May 25, 2022 Page 52 of 58 Rev 1.00...
  • Page 53: Numaker-M032Ki Schematics

    NuMaker-HMI-M032KI NUMAKER-M032KI SCHEMATICS Nu-Link2-Me Figure 8-1 shows the Nu-Link2-Me circuit. 3.3V ICER1 O f f - page C onnect or 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE C0603 C0603 MCUVCC_DIODE SWDH_DAT TICEDAT SWDH_CLK TICECLK SWDH_RST# TICERST ICE_RX_S MCU_TX ICE_TX_S MCU_RX...
  • Page 54: M032Ki Target Board

    NuMaker-HMI-M032KI M032KI Target Board Figure 8-2 shows the M032KI target board circuit. P1 - P32 P65 - P96 PF0_ICE_DAT PB5_NU2_A2 TICEDAT PF1_ICE_CLK PB4_NU2_A3 TICECLK PB3_NU3_D1/TX PB2_NU3_D0/RX PC12 PC5_NU3_D3 PC11 PC4_NU3_D2 PC10 PC3_NU3_D4 PC2_NU3_D5 PB1_NU2_A5/SCL/TX PC1_NU4_SCL nRESET PB0_NU2_A4/SDA/RX PC0_NU4_SDA PE.15/UART6_RXD VDD_3 VDD_4 VDD_MCU VDD_MCU...
  • Page 55: Extension Connectors

    NuMaker-HMI-M032KI Extension Connectors Figure 8-3 shows extension connectors of NuMaker-M032KI. P1 - P32 P65 - P96 PB5_NU2_A2 PB4_NU2_A3 TICEDAT TICECLK PC1_NU4_SCL I2C_SCL PB3_NU3_D1/TX PB2_NU3_D0/RX PC0_NU4_SDA I2C_SDA PC12 PC11 PC5_NU3_D3 PC4_NU3_D2 VREF VREF PC10 PC3_NU3_D4 PC2_NU3_D5 PB1_NU2_A5/SCL/TX PB0_NU2_A4/SDA/RX PC1_NU4_SCL PC0_NU4_SDA TICERST PA2_NU3_D13/CLK MCU_RESET VDD_MCU...
  • Page 56: Pcb Placement

    NuMaker-HMI-M032KI PCB Placement Figure 8-4 and Figure 8-5 show the front and rear placement of NuMaker-M032KI. Figure 8-4 Front Placement Figure 8-5 Rear Placement May 25, 2022 Page 56 of 58 Rev 1.00...
  • Page 57: Revision History

    NuMaker-HMI-M032KI REVISION HISTORY Date Revision Description  2022.03.25 1.00 Initial version May 25, 2022 Page 57 of 58 Rev 1.00...
  • Page 58 NuMaker-HMI-M032KI Important Notice Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.

Table of Contents