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 6
NuMaker-M2L31KI List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M2L31KIDAE Full-pin Extension Connectors and GPIO Function List ......16 Table 3-3 Arduino UNO Extension Connectors and M2L31KIDAE Mapping GPIO List....18 Table 3-4 Vin Power Source ......................19 Table 3-5 5 V Power Sources ......................
The NuMaker-M2L31KI evaluation board supports USB PD 3.0 sink mode power delivery protocol, including different voltage levels such as 5 V, 9 V, 15 V, and 20 V, capable of receiving up to 100W of power.
PD3.0 Select Connector M2L31KIDAE M2L31KIDAE Extension Connectors Figure 3-1 Front View of NuMaker-M2L31KI Figure 3-1 shows the main components and connectors from the front side of NuMaker-M2L31KI. The following lists components and connectors from the front view: ⚫ Target chip: M2L31KIDAE (U1) ⚫...
NuMaker-M2L31KI Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M2L31KI. The following lists components and connectors from the rear view: ⚫ Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – ICEVCC Power Switch...
Arduino UNO compatible pins on the NuMaker-M2L31KI. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M2L31KI provides the M2L31KIDAE onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M2L31KIDAE extension connectors. Pin33 ~ Pin64...
NuMaker-M2L31KI Power Supply Configuration The NuMaker-M2L31KI is able to adopt multiple power supplies. External power sources include NU1 Vin (7 V to 48 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-M2L31KI.
1.8 V to M2L31 target board or ICE chip. Table 3-7 1.8 V Power Sources 3.4.5 Power Connectors Table 3-8 presents the power connectors. Connector Description connector on the NuMaker-M2L31KI. connector on the NuMaker-M2L31KI. Table 3-8 Power Connectors Jun. 20, 2024 Page 20 of 50 Rev 1.00...
ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ2 programming from PC. USB PWR connector on NuMaker-M2L31KI is for USB PD3.0 power supply or general 5 V V power supply. If it connects with USB PD adapter or USB PD port, the V voltage can be required from 3.3 V to...
NuMaker-M2L31KI ICE USB Connector (ICEJ4) Nu-Link2-Me Figure 3-5 External Power Supply Sources on Nu-Link2-Me To use ICEJ4 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.
NuMaker-M2L31KI External V Connector (JP1) USB Power Connector (J2) External V Connector (JP2) NU1 pin8 (Vin) Figure 3-6 External Power Supply Sources on M2L31 Target Board To use Vin or J2 as external power supply source, please follow the steps below: Switch the SW2 depending on the target chip operating voltage.
NuMaker-M2L31KI External V Connector (JP1) USB Power Connector (J2) " External V Connector (JP2) Detach Nu-Link2-Me NU1 pin8 (Vin) Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M2L31KI Jun. 20, 2024 Page 24 of 50 Rev 1.00...
NuMaker-M2L31KI Table 3-12 presents all power models when supplies external power through M2L31 target board. The M2L31 target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ2 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection...
NuMaker-M2L31KI LEDs Table 3-15 presents the LEDs. Component Description LEDG1 The power LED indicates that the NuMaker-M2L31KI is powered. LEDR1 The LED is connected to the target chip PC.14. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3 Table 3-15 LEDs Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer.
NuMaker-M2L31KI 3.8.2 Status LEDs Table 3-15 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...
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-M2L31KI 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 ON. Figure 4-3 Open VCOM Function Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through a USB cable.
NuMaker-M2L31KI Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 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-M2L31KI 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. M2L31xxxAE_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.
Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-10 and Figure 4-11. Figure 4-10 Debugger Setting in Options Window Note: If the dropdown menu in Figure 4-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2. Jun. 20, 2024 Page 34 of 50 Rev 1.00...
NuMaker-M2L31KI Figure 4-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 4-12 Compile and Download the Project Jun.
NuMaker-M2L31KI 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-M2L31KI 4.6.2 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 4-15.
NuMaker-M2L31KI 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-M2L31KI 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. Double-click “NuEclipse.exe" to open the toolchain. Import the “Template” project by following the steps presented in Figure 4-19 and Figure 4-20.
NuMaker-M2L31KI 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 Jun. 20, 2024 Page 40 of 50 Rev 1.00...
NuMaker-M2L31KI Click the “Template” project and build the project. Figure 4-23 Build Project 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-M2L31KI 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 4-25 Main Tab Configuration Figure 4-26 Debugger Tab Configuration Jun.
NuMaker-M2L31KI Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration Jun. 20, 2024 Page 43 of 50 Rev 1.00...
NuMaker-M2L31KI 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-M2L31KI PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M2L31KI. Figure 5-4 Front Placement Figure 5-5 Rear Placement Jun. 20, 2024 Page 48 of 50 Rev 1.00...
Page 49
NuMaker-M2L31KI REVISION HISTORY Date Revision Description 2024.06.20 1.00 Initial version. Jun. 20, 2024 Page 49 of 50 Rev 1.00...
Page 50
NuMaker-M2L31KI 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-M2L31KI and is the answer not in the manual?
Questions and answers