Summary of Contents for Nuvoton NuMicro M031 Series
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 based system design. Nuvoton assumes no responsibility for errors or omissions.
Page 4
NuMaker-M031KG List of Figures Figure 1-1 NuMaker-M031KG Development Board ................. 7 Figure 3-1 Front View of NuMaker-M031KG ................... 9 Figure 3-2 Rear View of NuMaker-M031KG .................. 10 Figure 3-3 M031KG8AE Extension Connectors ................11 Figure 3-4 Arduino UNO Compatible Extension Connectors ............16 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
Page 5
NuMaker-M031KG Figure 4-28 NuEclipse Debug Mode ....................41 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 41 Figure 5-1 Nu-Link2-Me Circuit ...................... 42 Figure 5-2 M031 platform Circuit....................43 Figure 5-3 Extension Connectors Circuit ..................44 Figure 5-4 Front Placement ......................45 Figure 5-5 Rear Placement ......................
Page 6
NuMaker-M031KG List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M031KG8AE Full-pin Extension Connectors and GPIO Function List ......15 Table 3-3 Arduino UNO Extension Connectors and M031KG8AE Mapping GPIO List ....17 Table 3-4 Vin Power Source ......................18 Table 3-5 5 V Power Sources ......................
M031KG8AE. For the development flexibility, the M031 platform provides the extension connectors of M031KG8AE, the Arduino UNO compatible headers and able to adopt multiple power supply. Furthermore, the Nuvoton-designed ammeter connector can measure the power consumption instantly, which is essential for the prototype evaluation.
NuMaker-M031KG HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connectors Switch Reset Button External V Connector Ammeter VCOM Switch External V Connector ICE USB Connector USB PWR Connector ICE Chip: M48SSIDAE Power LED ICE Status LED PB14 LED Off-line Program Button External V Connector M031 Platform...
NuMaker-M031KG Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M031KG. 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 3-2 Rear View of NuMaker-M031KG May.
NuMaker-M031KG Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M031KG. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-M031KG. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M031KG provides the M031KG8AE onboard and extension connectors (JP3, JP4, JP5 and JP6).
NuMaker-M031KG Power Supply Configuration The NuMaker-M031KG is able to adopt multiple power supply. External power source include NU1 Vin (7 V to 12 V), VDD (depends on target chip operating voltage), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker- M031KG.
NuMaker-M031KG 3.4.3 3.3 V Power Sources Table 3-6 presents the 3.3 V power sources. Voltage Regulator 5 V Source Description ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies ICEUP1 USB_HS_VBUS 3.3 V to M031 platform or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M031 platform.
NuMaker-M031KG 3.4.6 USB Connectors Table 3-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-M031KG for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches.
NuMaker-M031KG To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the below steps: 1. Solder the resistor on ICEJPR1 (MCUVCC) depends on the target chip operating voltage. 2. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage. 3.
NuMaker-M031KG To use JP1 as external power supply source, please follow the below steps: 1. Switch the SW2 to OFF. 2. Remove the resistor on ICEJPR1 (MCUVCC). 3. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage. 4.
NuMaker-M031KG Table 3-12 presents all power models when supplies external power through M031 platform. The M031 platform 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 3.3 V 3.3 V output...
NuMaker-M031KG ICESW2 Function Description On: Connect target chip PB.13 (UART0_TXD) to Nu-Link2-Me. Off: Disconnect target chip PB.13 (UART0_TXD) to Nu-Link2-Me. On: Connect target chip PB.12 (UART0_RXD) to Nu-Link2-Me. Off: Disconnect target chip PB.12 (UART0_RXD) to Nu-Link2-Me. Note: Pin 3 and 4 is unused. Table 3-17 VCOM Function of Nu-Link2-Me May.
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-M031KG BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup 1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to Figure 4-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through USB cable. Figure 4-4 ICE USB Connector May.
NuMaker-M031KG 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 4-6 presents the PuTTY session setting.
NuMaker-M031KG Find the Example Project Use the “Template” project as an example. The project can be found under the BSP folder as shown in Figure 4-7. M031_Series_BSP_CMSIS_V3.XX.XXX SampleCode Template Keil Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
Figure 4-9 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-10 and Figure 4-11. Note: If the dropdown menu in Figure 4-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2.
NuMaker-M031KG 4. Figure 4-13 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 4-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-M031KG 4.6.2 IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. 1. Double click the “Template.eww” to open the project. 2. Make sure the toolbar contain “Nu-Link” item as shown in Figure 4-15. Note: If the toolbar does not contain “Nu-Link”...
NuMaker-M031KG 4. Figure 4-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 4-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-M031KG 4.6.3 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. 1. Double-click NuEclipse.exe to open the toolchain. 2.
NuMaker-M031KG 3. Click the “Template” project and find the project properties as shown in Figure 4-21. Make sure the settings are the same as settings in Figure 4-22. Figure 4-21 Open Project Properties Window Figure 4-22 Project Properties Settings May. 07, 2020 Page 37 of 47 Rev 1.00...
NuMaker-M031KG 4. Click the “Template” project and build the project. Figure 4-23 Build Project 5. After the project is built, click the “Template” project and set the “Debug Configuration” as shown in Figure 4-24. Follow the settings presented in Figure 4-25, Figure 4-26 and Figure 4-27 to enter debug mode.
NuMaker-M031KG Note 1: Double click the “GDB Nuvoton Nu-Link Debugging” to create the subitem. Note 2: After the project is built, the “*.elf” file will be shown in “C/C++ Application” frame. Figure 4-25 Main Tab Configuration Figure 4-26 Debugger Tab Configuration May.
NuMaker-M031KG Note 1: User must follow those settings highlighted in green, and can configure other settings depend on the needs. Figure 4-27 Startup Tab Configuration May. 07, 2020 Page 40 of 47 Rev 1.00...
NuMaker-M031KG 6. Figure 4-28 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 4-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-M031KG PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M031KG. Figure 5-4 Front Placement Figure 5-5 Rear Placement May. 07, 2020 Page 45 of 47 Rev 1.00...
Page 46
NuMaker-M031KG REVISION HISTORY Date Revision Description 2020.05.07 1.00 Initial version May. 07, 2020 Page 46 of 47 Rev 1.00...
Page 47
NuMaker-M031KG 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 NuMicro M031 Series and is the answer not in the manual?
Questions and answers