Summary of Contents for Nuvoton NuMicro M252 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-M252KG List of Figures Figure 1-1 NuMaker-M252KG Board ....................7 Figure 3-1 Front View of NuMaker-M252KG ................... 9 Figure 3-2 Rear View of NuMaker-M252KG .................. 10 Figure 3-3 M252KG6AE Extension Connectors ................11 Figure 3-4 Arduino UNO Compatible Extension Connectors ............17 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
Page 5
NuMaker-M252KG Figure 4-28 NuEclipse Debug Mode ....................43 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 43 Figure 5-1 Nu-Link2-Me Circuit ...................... 44 Figure 5-2 M252 platform Circuit....................45 Figure 5-3 Extension Connectors Circuit ..................46 Figure 5-4 Front Placement ......................47 Figure 5-5 Rear Placement ......................
Page 6
NuMaker-M252KG List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M252KG6AE Full-pin Extension Connectors and GPIO Function List ......16 Table 3-3 Arduino UNO Extension Connectors and M252KG6AE Mapping GPIO List ....18 Table 3-4 Vin Power Source ......................19 Table 3-5 5V Power Sources ......................
M252KG6AE. For the development flexibility, the M252 platform provides the extension connectors of M252KG6AE, 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-M252KG FEATURES ® NuMicro M252KG6AE microcontroller with function compatible with: M252SG6AE M252LG6AE M252KG6AE extension connectors Arduino UNO compatible extension connectors Ammeter connector for measuring the microcontroller’s power consumption Fixable board power supply: External V power connector ...
NuMaker-M252KG HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Switch Connector 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 M252 Platform...
NuMaker-M252KG Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M252KG. 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-M252KG...
NuMaker-M252KG Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M252KG. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-M252KG. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M252KG provides the M252KG6AE target chip onboard and full pins extension connectors (JP3, JP4, JP5 and JP6).
Page 14
NuMaker-M252KG M252KG6AE Header Pin No. Function BPWM0_CH0/PWM0_CH5/DAC0_ST JP5.29 DDIO PE.14/EBI_AD8/UART2_TXD/PSIO0_CH0 JP5.30 PE.15/EBI_AD9/UART2_RXD/PSIO0_CH1 JP5.31 nRESET JP5.32 Note: It is recommended to use 10 kΩ pull-up resistor and 10 uF capacitor on nRESET pin. PF.0/UART1_TXD/I2C1_SCL/UART0_TXD/BPWM1_CH0/ICE_DAT JP4.1 Note: It is recommended to use 100 kΩ pull-up resistor on ICE_DAT pin. PF.1/UART1_RXD/I2C1_SDA/UART0_RXD/BPWM1_CH1/ICE_CLK JP4.2 Note: It is recommended to use 100 kΩ...
NuMaker-M252KG Power Supply Configuration The NuMaker-M252KG is able to adopt multiple power supply. External power source includes 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- M252KG.
NuMaker-M252KG 3.4.2 5 V Power Sources Table 3-5 presents the 5 V power sources. Net Name in Connector Comment Schematic ICE USB connector supplies 5 V power from PC to ICEJ3 USB_HS_VBUS M252 platform and Nu-Link2-Me. USB connector on NuMaker-M252KG supplies 5 V USB_VBUS power from PC to M252 platform and Nu-Link2-Me.
NuMaker-M252KG 3.4.5 Power Connectors Table 3-8 presents the power connectors. Connector Comment connector on the NuMaker-M252KG connector on the NuMaker-M252KG. Table 3-8 Power Connectors 3.4.6 USB Connectors Table 3-9 presents the USB connectors. Connector Comment ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ3 programming from PC.
NuMaker-M252KG 3.4.8 Power Supply Models External Power Supply through Nu-Link2-Me to Target Chip The external power supply source on Nu-Link2-Me is shown in Figure 3-5. ICE USB Connector (ICEJ3) Nu-Link2-Me NuMaker-RoLaD-M252 V1.1 Figure 3-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.
NuMaker-M252KG External Power Supply through M252 platform to Target Chip The external power supply sources on M252 platform are shown in Figure 3-6. External V Connector (JP1) USB Power Connector (J2) External V Connector (JP2) NU1 pin8 (Vin) Figure 3-6 External Power Supply Sources on M252 platform To use Vin or J2 as external power supply source, please follow the below steps: 1.
NuMaker-M252KG External V Connector (JP1) USB Power Connector (J2) External V Connector " (JP2) Separate Nu-Link2-Me NU1 pin8 (Vin) Figure 3-7 Separate the Nu-Link2-Me from NuMaker-M252KG Table 3-12 presents all power models when supplies external power through M252 platform. The M252 platform external power sources are highlighted in yellow.
NuMaker-M252KG External Reference Voltage Connector Table 3-13 presents the external reference voltage connector. Connector Comment Connector for user to easily connect to the external reference voltage pin VREF1 of the target chip. User needs to remove the L5 ferrite bead. Table 3-13 External Reference Voltage Connector Voltage Adjustable Interface(VAI) Connector Table 3-14 presents the voltage adjustable interface connector.
NuMaker-M252KG Push-Buttons Table 3-17 presents the push-buttons. Component Comment ICESW1 Off-line program button to start off-line programming the target chip. Reset button to reset the target chip. Table 3-17 Push-Buttons LEDs Table 3-18 presents the LEDs. Component Comment Power LED The power LED indicates that the NuMaker-M252KG is powered.
NuMaker-M252KG 3.11.2 Status LEDs Table 3-20 presents the status LEDs patterns for different operation on Nu-Link2-Me. Status LED Operation Status ICES0 ICES1 ICES2 ICES3 Power on Flash x 3 Flash x 3 Flash x 3 Flash x 3 Connected to IDE/NuTool 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.
2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through USB cable. NuMaker-RoLaD-M252 V1.0 Figure 4-4 ICE USB Connector 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. July. 08, 2020 Page 30 of 49 Rev 1.00...
NuMaker-M252KG 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. Figure 4-6 PuTTY Session Setting July. 08, 2020 Page 31 of 49 Rev 1.00...
NuMaker-M252KG 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. M251_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,...
NuMaker-M252KG 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-M252KG 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-M252KG Figure 4-19 Import the Project in NuEclipse M251_252_Series_BSP_CMSIS_V3.XX.XXX\SampleCod e\Templ M251_252__Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Te mplate\G Figure 4-20 Import Projects Windows 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. July.
NuMaker-M252KG 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. Figure 4-24 Open Debug Configuration July.
NuMaker-M252KG 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 July.
NuMaker-M252KG 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 July. 08, 2020 Page 42 of 49 Rev 1.00...
NuMaker-M252KG 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-M252KG NUMAKER-M252KG SCHEMATICS Nu-Link2-Me Figure 5-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 O f f - page C onnect or 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2...
NuMaker-M252KG PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M252KG. Figure 5-4 Front Placement Figure 5-5 Rear Placement July. 08, 2020 Page 47 of 49 Rev 1.00...
NuMaker-M252KG REVISION HISTORY Date Revision Description 2019.07.02 1.00 Initially issued. July. 08, 2020 Page 48 of 49 Rev 1.00...
Page 49
NuMaker-M252KG 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 M252 Series and is the answer not in the manual?
Questions and answers