Evaluation board for numicro 1t 8051 series (41 pages)
Summary of Contents for Nuvoton NuMaker-M251SD
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.
VCOM Switches ....................23 3.11.1 Status LEDs ....................23 3.11.2 Toolchains Supporting ................24 Nuvoton Nu-Link Driver Installation ..............24 BSP Firmware Download ................26 Hardware Setup ..................26 Find the Example Project ................28 Execute the Project under Toolchains ............. 28 Keil MDK .......................
Page 3
NuMaker-M251SD IAR EWARM ....................32 3.17.2 NuEclipse ...................... 33 3.17.3 NuMaker-M251SD Schematics ..............40 Nu-Link2-Me ................... 40 M251 platform ..................41 Extension Connector ................. 42 PCB Placement ..................43 REVISION HISTORY ................44 Aug. 18, 2020 Page 3 of 45...
Page 4
Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............18 Figure 3-6 External Power Supply Sources on M251 platform ............19 Figure 3-7 Separate the Nu-Link2-Me from NuMaker-M251SD ............ 20 Figure 3-8 Wiring between Ammeter Connector and Ammeter ............. 21 Figure 3-9 Nu-Link USB Driver Installation Setup ................
Page 5
NuMaker-M251SD Figure 3-36 NuEclipse Debug Mode ....................39 Figure 3-37 Debug Message on Serial Port Terminal Windows ............ 39 Figure 4-1 Nu-Link2-Me Circuit ...................... 40 Figure 4-2 M251 platform Circuit....................41 Figure 4-3 Extension Connectors Circuit ..................42 Figure 4-4 Front Placement ......................43 Figure 4-5 Rear Placement ......................
Page 6
NuMaker-M251SD List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M251SD2AE Full-pin Extension Connectors and GPIO Function List ......13 Table 3-3 Arduino UNO Extension Connectors and M251SD2AE Mapping GPIO List ....15 Table 3-4 Vin Power Source ......................16 Table 3-5 5V Power Sources ......................
The NuMaker-M251SD is a development board for Nuvoton NuMicro ® M251 microcontrollers. The NuMaker-M251SD consists of two parts: a M251 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M251SD is designed for project evaluation, prototype development and validation with power consumption monitoring function.
NuMaker-M251SD NUMAKER-M251SD OVERVIEW Front View Figure 3-1 Front View of NuMaker-M251SD Figure 3-1 shows the main components and connectors from the front side of NuMaker-M251SD. The following lists components and connectors from the front view: Target Chip: M251SD2AE(U1) ...
NuMaker-M251SD Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M251SD. The following lists components and connectors from the rear view: Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) ICEVCC Power Switch (ICEJPR2) ICEVCC Power Switch...
NuMaker-M251SD System Configuration The NuMaker-M251SD 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- M251KG.
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. USB PWR connector on NuMaker-M251SD for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches. Switch...
NuMaker-M251SD 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. 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.
2. Separate the Nu-Link2-Me from NuMaker-M251SD. 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-M251SD, please follow the below steps: 1. Switch the SW2 to OFF.
Connector " (JP2) Separate Nu-Link2-Me NU1 pin8 (Vin) Figure 3-7 Separate the Nu-Link2-Me from NuMaker-M251SD Table 3-12 presents all power models when supplies external power through M251 platform. The M251 platform external power sources are highlighted in yellow. ICEJPR1 ICEJPR2...
NuMaker-M251SD 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-17 Push-Buttons LEDs Table 3-18 presents the LEDs. Component Comment Power LED The power LED indicates that the NuMaker-M251SD is powered. PB14 LED The LED is connected to the target chip PB.14. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3 Table 3-18 LEDs Aug.
NuMaker-M251SD Nu-Link2-Me The Nu-Link2-Me is a debugger and programmer that supports on-line programming and debugging through SWD interface. The on-board 16 Mbit SPI Flash allows it to off-line program the target microcontroller. Additionally, the Nu-Link2-Me provides virtual COM port (VCOM) function to print out messages on PC.
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 3-12 to the PC USB port through USB cable. Figure 3-12 ICE USB Connector 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 3-13. Aug. 18, 2020 Page 26 of 45 Rev 1.00...
NuMaker-M251SD Figure 3-13 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 3-14 presents the PuTTY session setting. Figure 3-14 PuTTY Session Setting Aug. 18, 2020 Page 27 of 45...
NuMaker-M251SD 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-15. M251_Series_BSP_CMSIS_V3.XX.XXX SampleCode Template Keil Figure 3-15 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
Figure 3-17 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 3-18 and Figure 3-19. Note: If the dropdown menu in Figure 3-18 does not contain “Nuvoton Nu-Link Debugger” item,...
NuMaker-M251SD 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-21 Keil MDK Debug Mode Figure 3-22 Debug Message on Serial Port Terminal Windows Aug.
NuMaker-M251SD 3.17.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-23.
NuMaker-M251SD 4. Figure 3-25 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 3-26. 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-M251SD Figure 3-27 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 3-28 Import Projects Windows 3. Click the “Template” project and find the project properties as shown in Figure 3-29. Make sure the settings are the same as settings in Figure 3-30.
NuMaker-M251SD Figure 3-29 Open Project Properties Window Figure 3-30 Project Properties Settings 4. Click the “Template” project and build the project. Aug. 18, 2020 Page 35 of 45 Rev 1.00...
NuMaker-M251SD Figure 3-31 Build Project 5. After the project is built, click the “Template” project and set the “Debug Configuration” as shown in Figure 3-32. Follow the settings presented in Figure 3-33, Figure 3-34 and Figure 3-35 to enter debug mode.
NuMaker-M251SD 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 3-33 Main Tab Configuration Figure 3-34 Debugger Tab Configuration Aug.
NuMaker-M251SD Note 1: User must follow those settings highlighted in green, and can configure other settings depend on the needs. Figure 3-35 Startup Tab Configuration Aug. 18, 2020 Page 38 of 45 Rev 1.00...
NuMaker-M251SD 6. Figure 3-36 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 3-37. 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-M251SD NUMAKER-M251SD 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 O f f - page C onnect or 200 1% USB_HS_CAP R0603...
NuMaker-M251SD PCB Placement Figure 4-4 and Figure 4-5 show the front and rear placement of NuMaker-M251SD. Figure 4-4 Front Placement Figure 4-5 Rear Placement Aug. 18, 2020 Page 43 of 45 Rev 1.00...
NuMaker-M251SD REVISION HISTORY Date Revision Description 2020.08.18 1.00 Initially issued. Aug. 18, 2020 Page 44 of 45 Rev 1.00...
Page 45
NuMaker-M251SD 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-M251SD and is the answer not in the manual?
Questions and answers