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-M031SD List of Figures Figure 1-1 NuMaker-M031SD Board ....................6 Figure 2-1 Front View of NuMaker-M031SD ..................8 Figure 2-2 Rear View of NuMaker-M031SD ..................9 Figure 2-3 Arduino UNO Compatible Extension Connectors ............10 Figure 2-4 M031SD2AE Extension Connectors ................12 Figure 2-5 External Power Supply Sources on Nu-Link2-Me ............
Page 5
NuMaker-M031SD List of Tables Table 2-1 Arduino UNO Extension Connectors and M031SD2AE Mapping GPIO List ....11 Table 2-2 M031SD2AE Full-pin Extension Connectors and GPIO Function List ......14 Table 2-3 Vin Power Source ......................15 Table 2-4 5V Power Sources ......................15 Table 2-5 3.3 V Power Sources .....................
NuMaker-M031SD OVERVIEW This user manual is aimed to give users a fast introduction to the use of NuMaker-M031SD board. The NuMaker-M031SD consists of two parts, a M031 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M031SD allows users to quickly develop and easily program and debug application.
Page 7
NuMaker-M031SD Arduino UNO compatible extension connector Vin USB power connector on M031 platform ICE USB connector on Nu-Link2-Me On-board Nu-Link2-Me debugger and programmer: Debug through SWD interface On-line/off-line programming Virtual COM port function Feb.
Target Chip: M031SD2AE Target Chip Extension Connector Figure 2-1 Front View of NuMaker-M031SD Figure 2-1 shows the main components and connectors from the front side of NuMaker-M031SD. The following lists components and connectors from the front view: Target Chip: M031SD2AE(U1) ...
NuMaker-M031SD Rear View Figure 2-2 shows the main components and connectors from the rear side of NuMaker-M031SD. The following lists components and connectors from the rear view: Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) ICEVCC Power Switch (ICEJPR2) ICEVCC Power Switch...
ICE USB connector supplies 5 V power from PC to ICEJ3 USB_HS_VBUS M031 platform and Nu-Link2-Me. USB connector on NuMaker-M031SD supplies 5 V USB_VBUS power from PC to M031 platform and Nu-Link2-Me. ICEJ3, J2 or NU1 pin8 supplies 5 V power to NU1 pin5.
Table 2-6 1.8V Power Sources 2.5.5 Power Connectors Table 2-7 presents the power connectors. Connector Comment (1.8 V ~ 3.6 V) connector on the NuMaker-M031SD. connector on the NuMaker-M031SD. Table 2-7 Power Connectors 2.5.6 USB Connectors Table 2-8 presents the USB connectors.
NuMaker-M031SD 2.5.8 Power Supply Models 2.5.8.1 External Power Supply through Nu-Link2-Me to Target Chip The external power supply source on Nu-Link2-Me is shown in Figure 2-5. ICE USB Connector (ICEJ3) Nu-Link2-Me Figure 2-5 External Power Supply Sources on Nu-Link2-Me To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the below steps: 1.
2. Separate the Nu-Link2-Me from NuMaker- M031SD. 3. Connect the external power supply to Vin or J2. To use JP1 as external power supply source with Nu-Link2-Me separated from NuMaker-M031SD, please follow the below steps: 1. Switch the SW2 to OFF.
NuMaker-M031SD External V Connector (JP1) USB Power Connector (J2) " External V Connector (JP2) Separate Nu-Link2-Me NU1 pin8 (Vin) Figure 2-7 External Power Supply Sources on M031 platform Table 2-11 presents all power models when supplies external power through M031 platform. The M031 platform external power sources are highlighted in yellow.
2.5.11 Extension Connectors Table 2-14 presents the extension connectors. Connector Comment JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M031SD. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-M031SD. Table 2-14 Extension Connectors Feb.
Table 2-15 Push-Buttons 2.5.13 LEDs Table 2-16 presents the LEDs. Component Comment Power LED The power LED indicates that the NuMaker-M031SD is powered. PB14 LED The LED is connected to the target chip PB.14. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3...
NuMaker-M031SD PCB Placement Figure 2-9 and Figure 2-10 show the front and rear placement of NuMaker-M031SD. Figure 2-9 Front Placement Figure 2-10 Rear Placement Feb. 20, 2019 Page 22 of 37 Rev 1.00...
KEIL MDK Nuvoton edition M0/M23 IAR EWARM NuEclipse (GCC)(Windows) NuEclipse (GCC)(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.
2. Connect the ICE USB connector shown in Figure 3-4 to the PC USB port through USB cable. Figure 3-4 ICE USB Connector 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 3-5. Feb. 20, 2019 Page 25 of 37 Rev 1.00...
NuMaker-M031SD Figure 3-5 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 3-6 presents the PuTTY session setting. Figure 3-6 PuTTY Session Setting Feb. 20, 2019 Page 26 of 37...
NuMaker-M031SD Find the Example Project Use the “Template” project as an example. The project can be found under the BSP folder as shown in Figure 3-7. M031_Series_BSP_CMSIS_V3.XX.XXX SampleCode Template Keil Figure 3-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
Figure 3-9 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 3-10 and Figure 3-11. Note: If the dropdown menu in Figure 3-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 3.2.
NuMaker-M031SD source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc. 3 1 2 1. Run 2. Stop 3. Reset Figure 3-13 Keil MDK Debug Mode Figure 3-14 Debug Message on Serial Port Terminal Windows Feb.
NuMaker-M031SD 3.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 3-15.
NuMaker-M031SD 4. Figure 3-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 3-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-M031SD NUMAKER-M031SD SCHEMATICS Nu-Link2-Me Figure 4-1 shows the Nu-Link2-Me circuit. The Nu-Link2-Me is a debugger and programmer that supports on-line programming and debugging through SWD interface. 3.3V ICER1 Off-page Connector 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE...
Page 36
NuMaker-M031SD REVISION HISTORY Date Revision Description 2019.02.20 1.00 Initially issued. Feb. 20, 2019 Page 36 of 37 Rev 1.00...
Page 37
NuMaker-M031SD 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”.