Evaluation board for argb lighting board (20 pages)
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.
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.
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.
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) ...
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.
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.
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...
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...
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).
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.
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.
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.
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.
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.
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...
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.
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.
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...
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.
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...
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.
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.
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...
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...
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.
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.
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.
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)
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...
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.
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...
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...
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.
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.
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...
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...
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”.
Need help?
Do you have a question about the NuMaker-HMI-M032K and is the answer not in the manual?
Questions and answers