background image

NuMaker-HMI-M032KI

 

 

May 25, 2022 

Page 

3

 of 58 

Rev 1.00 

N

UMA

K

E

R

-HMI

-M

03
2

K

I U

S

E

R

 M
A

NUA

L

 

Ma
k

er Nu

-m

be
d

 NUC

47

Us
er Man

ua

 

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

 .................................................................. 50

 

6.2

 

Find the M032 emWin Quick Start Guide

 ................................................................ 50

 

7

 

NUTFT KIT BOARD SCHEMATICS .............................................................. 51

 

7.1

 

NuTFT Kit Board

 .......................................................................................................... 51

 

7.2

 

PCB Placement

 ........................................................................................................... 52

 

8

 

NUMAKER-M032KI SCHEMATICS ............................................................... 53

 

8.1

 

Nu-Link2-Me

 ................................................................................................................. 53

 

8.2

 

M032KI Target Board

 .................................................................................................. 54

 

8.3

 

Extension Connectors

 ................................................................................................. 55

 

8.4

 

PCB Placement

 ........................................................................................................... 56

 

9

 

REVISION HISTORY ..................................................................................... 57

 

 

 

Содержание NuMaker-HMI-M032K

Страница 1: ...e 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 microcon...

Страница 2: ...CONFIGURATION 16 4 1 Front View 16 4 2 Rear View 17 4 3 Extension Connectors 18 Pin Assignment for Extension Connectors 18 Arduino UNO Compatible Extension Connectors 23 4 4 Power Supply Configuration...

Страница 3: ...oolchains 38 Keil MDK 38 IAR EWARM 42 NuEclipse 44 6 EMWIN GUI LIBRARY PACKAGE QUICK START 50 6 1 emWin GUI Library Package Download 50 6 2 Find the M032 emWin Quick Start Guide 50 7 NUTFT KIT BOARD S...

Страница 4: ...I 29 Figure 4 8 Wiring between Ammeter Connector and Ammeter 31 Figure 5 1 Nu Link USB Driver Installation Setup 34 Figure 5 2 Nu Link USB Driver Installation 35 Figure 5 3 Open VCOM Function 36 Figur...

Страница 5: ...ion 47 Figure 5 27 Startup Tab Configuration 48 Figure 5 28 NuEclipse Debug Mode 49 Figure 5 29 Debug Message on Serial Port Terminal Windows 49 Figure 6 1 M032 emWin Quick Start Guide Folder Path 50...

Страница 6: ...xtension Connectors and M032KIAAE Mapping GPIO List 24 Table 4 4 Vin Power Source 25 Table 4 5 5 V Power Sources 25 Table 4 6 3 3 V Power Sources 26 Table 4 7 1 8 V Power Sources 26 Table 4 8 Power Co...

Страница 7: ...ports virtual COM VCOM port for printing debug messages on PC Besides the programming status could be shown on the built in LEDs Lastly the Nu Link2 Me could be detached from the evaluation board and...

Страница 8: ...NuMaker HMI M032KI May 25 2022 Page 8 of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL Maker Nu mbed NUC472 User Manual Figure 1 2 NuMaker M032KI Board Figure 1 3 NuMaker HMI M032KI...

Страница 9: ...Micro M032KIAAE used as main microcontroller with function compatible with M032KIAAE M032SIAAE M032KIAAE full pins extension connectors Arduino UNO compatible extension connectors Ammeter connector fo...

Страница 10: ...1 Front View of NuTFT Kit Board Figure 3 1 shows the main components and connectors from the front side of NuTFT Kit Board The following lists components and connectors from the front view Five Direc...

Страница 11: ...d connectors from the rear view 16 Mbits 2 MB SPI Flash 1 W25Q16CV U1 Arduino UNO Compatible Interface Connectors NU1 NU2 NU5 NU6 and NU7 SPI Flash Arduino compatible interface connectors Arduino comp...

Страница 12: ...tion 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 NC NC NC 3 3V NC GND GND NC ADC YU AD...

Страница 13: ...SO GPIO GND LCM_SPI_MOSI 3 3V NC NC NC 3 3V NC GND GND NC ADC YU ADC XL ADC YD ADC XR Button SW7 Button SW8 NC NC NC VSS SPIFlash CLK SPIFlash MISO0 SPIFlash MOSI0 SPIFlash SS SPIFlash MOSI1 SPIFlash...

Страница 14: ...nel by switching the SPI Flash SS0 D10 and LCM_SPI_SS Header Arduino UNO Pin Define NuMaker Pin Define NuTFT Kit Board Function NU1 NC NC NC IOREF IOREF NC RESET RESET NC 3 3V 3 3V Power for NuTFT Kit...

Страница 15: ...MOSI1 D10 D10 SPI0 SPI Flash SS0 D11 D11 SPI0 SPI Flash MOSI0 D12 D12 SPI0 SPI Flash MISO0 D13 D13 SPI0 SPI Flash CLK0 GND GND GND AREF AREF NC SDA SDA NC SCL SCL NC NU7 D12 SPI_MISO SPI1 LCM_SPI_MISO...

Страница 16: ...rnal VREF Connector Figure 4 1 Front View of NuMaker M032KI Figure 4 1 shows the main components and connectors from the front side of NuMaker M032KI The following lists components and connectors from...

Страница 17: ...w 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 ICEV...

Страница 18: ...extension connectors on the NuMaker M032KI NU1 NU2 NU3 and NU4 Arduino UNO compatible pins on the NuMaker M032KI Table 4 1 Extension Connectors Pin Assignment for Extension Connectors The NuMaker M03...

Страница 19: ...PWM0_BRAKE1 JP3 11 11 VSS JP3 12 12 VDD JP3 13 13 PA 11 ACMP0_P0 EBI_nRD USCI0_CLK UART6_TXD BPWM0_CH0 TM0_EXT JP3 14 14 PA 10 ACMP1_P0 EBI_nWR USCI0_DAT0 UART6_RXD BPWM0_CH1 TM1_EXT JP3 15 15 PA 9 E...

Страница 20: ...TM0 INT3 JP5 17 49 PC 6 EBI_AD8 UART4_RXD UART0_nRTS UART6_RXD PWM1_CH3 BPWM1_CH1 TM1 INT2 JP5 18 50 PA 7 EBI_AD7 UART0_TXD I2C1_SCL PWM1_CH4 BPWM1_CH2 ACMP0_WLAT TM2 INT1 JP5 19 51 PA 6 EBI_AD6 UART0...

Страница 21: ..._RXD BPWM0_CH0 JP4 19 83 PG 15 CLKO ADC0_ST JP4 20 84 PD 7 UART1_TXD I2C0_SCL USCI1_CLK JP4 21 85 PD 6 UART1_RXD I2C0_SDA USCI1_DAT1 JP4 22 86 PD 5 I2C1_SCL USCI1_DAT0 JP4 23 87 PD 4 USCI0_CTL0 I2C1_S...

Страница 22: ...E1 JP6 21 117 PB 14 ADC0_CH14 EBI_AD13 SPI0_CLK USCI0_DAT1 UART0_nRTS UART3_RXD PWM1_CH1 TM1_EXT CLKO JP6 22 118 PB 13 ADC0_CH13 ACMP0_P3 ACMP1_P3 EBI_AD14 SPI0_MISO USCI0_DAT0 UART0_TXD UA RT3_nRTS P...

Страница 23: ...H2 PA 3 D10 SPI0_MOSI PWM0_CH5 PA 0 D11 SPI0_MISO PWM0_CH4 PA 1 D12 SPI0_CLK PWM0_CH3 PA 2 D13 VSS VSS VREF VREF I2C0_SDA PC 0 SDA I2C0_SCL PC 1 SCL UART1_RXD PWM0_CH3 PB 2 D0 UART1_TXD PWM0_CH2 PB 3...

Страница 24: ...2 D1 PB 3 NU2 5 A4 PB 0 NU3 3 D2 PC 4 NU2 4 A3 PB 4 NU3 4 D3 PC 5 NU2 3 A2 PB 5 NU3 5 D4 PC 3 NU2 2 A1 PB 6 NU3 6 D5 PC 2 NU2 1 A0 PB 7 NU3 7 D6 PA 7 NU1 NU1 8 VIN NU3 8 D7 PA 6 NU1 7 VSS NU4 NU4 1 D...

Страница 25: ...power source with voltage range from 7 V to 12 V The voltage regulator UP2 converts the NU1 pin8 input voltage to 5 V and supplies it to NU1_5VCC Table 4 4 Vin Power Source 5 V Power Sources Table 4 5...

Страница 26: ...hed to ON UP1 NU1_5VCC UP1 converts NU1_5VCC to 3 3 V and supplies 3 3 V to M032KI target board Note SW2 2 NU1 3VCC should be switched to ON Table 4 6 3 3 V Power Sources 1 8 V Power Sources Table 4 7...

Страница 27: ...he target chip operating voltage at 1 8 V 3 3 V 5 V Note M032 operating voltage range is from 1 8 V to 3 6 V Do not switch ICEJPR1 MCUVCC to 5 V ICEJPR2 Configures the ICE chip operating voltage at 1...

Страница 28: ...V Off 1 8 V output 2 3 3 V Connect to PC 3 3 V default 3 3 V default 3 3 V Off 3 3 V output 3 5 V Connect to PC 5 V 3 3 V default 3 3 V Off 5 V output Note 1 0 should be soldered between ICEJPR1 s MC...

Страница 29: ...ith Nu Link2 Me detached from NuMaker M032KI please follow the steps below Switch the SW2 depending on the target chip operating voltage Detach the Nu Link2 Me from NuMaker M032KI Connect the external...

Страница 30: ...2 V Input NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V 7 5 V Connect to PC NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V 8 1 8 V 3 6 V Connect to PC OFF DC Input 1 8 V 3 6 V Remove resistor 1 8 V...

Страница 31: ...nal Reference Voltage Connector 4 6 Ammeter Connector Table 4 14 presents the ammeter connector Connector Description AMMETER Connector for user to measure the target chip power consumption easily Use...

Страница 32: ...lso supports virtual COM port VCOM for printing debug messages on PC Besides the programming status could be shown on the built in LEDs Lastly the Nu Link2 Me could be detached from the evaluation boa...

Страница 33: ...Me is selected to connect Flash x 3 Flash x 3 Flash x 3 On ICE online Not connected to a target chip On Flash x 3 Flash x 3 ICE online Connected to a target chip On On ICE online Failed to connect to...

Страница 34: ...23 IAR EWARM NuEclipse GCC for Windows NuEclipse GCC for Linux 5 2 Nuvoton Nu Link Driver Installation Download and install the latest Nuvoton Nu Link Driver Download and install Nu Link_Keil_Driver w...

Страница 35: ...NuMaker HMI M032KI May 25 2022 Page 35 of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL M m U Figure 5 2 Nu Link USB Driver Installation...

Страница 36: ...P Firmware Download Download and unzip the Board Support Package BSP 5 4 Hardware Setup Open the virtual COM VCOM function by changing Nu Link2 Me VCOM Switch No 1 and 2 to ON Figure 5 3 Open VCOM Fun...

Страница 37: ...NUAL M m U 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 11520...

Страница 38: ...5 6 Execute the Project under Toolchains Open and execute the project under the toolchain The section 5 6 1 5 6 2 and 5 6 3 describe the steps of executing project in Keil MDK IAR EWARM and NuEclipse...

Страница 39: ...e 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 2 1 Figure 5 10 Debugger Setting in Options Window Note If the...

Страница 40: ...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 deb...

Страница 41: ...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...

Страница 42: ...w 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...

Страница 43: ...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...

Страница 44: ...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 Figu...

Страница 45: ...M032KI USER MANUAL M m U 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 1 2 3 Figure 5 21 Open Projec...

Страница 46: ...k the Template project and build the project 1 2 3 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 se...

Страница 47: ...KI USER MANUAL M m U 4 1 5 2 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...

Страница 48: ...of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL Maker Nu mbed NUC472 User Manual 8 10 11 9 1 Note User must follow those settings highlighted in green and configure other settings depending on the needs...

Страница 49: ...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 For more information about how to use...

Страница 50: ...GUI Library Package Download Download and unzip the emWin GUI Library Package to Board Support Package BSP 6 2 Find the M032 emWin Quick Start Guide The M032 emWin Quick Start Guide pdf can be found...

Страница 51: ...CM_SPI_CLK LCM_SPI_SS LCM_RESET Joy Stick_U Joy Stick_R NU7 HEADER 4X2 f emale SMD HEADER4X2_2 54_SMD LCM_SPI_MISO 1 3 3V 2 LCM_SPI_CLK 3 LCM_SPI_MOSI 4 LCM_Panel_RESET 5 GND 6 LCM_SPI_SS 7 GPIO 8 3VC...

Страница 52: ...e 52 of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL Maker Nu mbed NUC472 User Manual 7 2 PCB Placement Figure 7 2 and Figure 7 3 show the front and rear placement of NuTFT Kit Board Figure 7 2 Front Pl...

Страница 53: ...12MHz SMD X3225B 1 XIN 2 GND 4 GND 3 XOUT 3 3V SPIM_MISO0 ICEU2 W25Q16JVSSIQ SOP8 5 23 1 27MM CS 1 DO 2 WP 3 GND 4 DI 5 CLK 6 HOLD 7 VCC 8 3 3V SPI FLASH ICEC12 0 1u C0603 SN74LV2T45DCUR ICEU4 SOP8 3...

Страница 54: ...TM3 INT5 30 PF 5 PWM0_CH0 BPWM0_CH4 X32_IN ADC0_ST 31 PF 4 PWM0_CH1 BPWM0_CH5 X32_OUT 32 PH 4 33 PH 5 34 PH 6 35 PH 7 36 PF 3 XT1_IN BPWM1_CH0 37 PF 2 XT1_OUT BPWM1_CH1 38 VSS 39 VDD 40 PE 8 USCI1_CTL...

Страница 55: ...xt Connector Custom 3 3 Wednesday June 26 2019 PB2_NU3_D0 RX PC12 PC10 PB1_NU2_A5 SCL TX PC11 PC9 PB0_NU2_A4 SDA RX GND VDD_MCU PA11_NU5_CLK PA10_NU5_MOSI PA9_NU5_MISO PA8_NU5_SS PD12 PD11 PD10 PF7 PF...

Страница 56: ...ge 56 of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL Maker Nu mbed NUC472 User Manual 8 4 PCB Placement Figure 8 4 and Figure 8 5 show the front and rear placement of NuMaker M032KI Figure 8 4 Front Pl...

Страница 57: ...NuMaker HMI M032KI May 25 2022 Page 57 of 58 Rev 1 00 NUMAKER HMI M032KI USER MANUAL M m U 9 REVISION HISTORY Date Revision Description 2022 03 25 1 00 Initial version...

Страница 58: ...re usage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safety sy...

Отзывы: