Nuvoton NuMaker-M071VG User Manual

Nuvoton NuMaker-M071VG User Manual

Evaluation board for numicro m071 series
Table of Contents

Advertisement

Quick Links

NuMaker-M071VG
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-M071VG
User Manual
Evaluation Board for NuMicro
®
M071 Series
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.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
Dec. 21, 2022
Page 1 of 48
Rev 1.01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMaker-M071VG and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton NuMaker-M071VG

  • 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 2: Table Of Contents

    3.9.2 Status LEDs ........................26 4 QUICK START ....................27 4.1 Toolchains Supporting ....................27 4.2 Nuvoton Nu-Link Driver Installation ................27 4.3 BSP Firmware Download ................... 29 4.4 Hardware Setup ......................29 4.5 Find the Example Project ................... 31 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M071VG 5.2 M071 Target Board ...................... 44 5.3 Extension Connectors ....................45 5.4 PCB Placement ......................46 6 REVISION HISTORY ..................47 Dec. 21, 2022 Page 3 of 48 Rev 1.01...
  • Page 4 Figure 3-4 Arduino UNO Compatible Extension Connectors ............16 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............20 Figure 3-6 External Power Supply Sources on NuMaker-M071VG Target Board ......21 Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M071VG ............22 Figure 3-8 Wiring between Ammeter Connector and Ammeter .............
  • Page 5 Figure 4-28 NuEclipse Debug Mode ....................42 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 42 Figure 5-1 Nu-Link2-Me Circuit ...................... 43 Figure 5-2 NuMaker-M071VG Target Board Circuit ..............44 Figure 5-3 Extension Connectors Circuit ..................45 Figure 5-4 Front Placement ......................46 Figure 5-5 Rear Placement ......................
  • Page 6 Table 3-10 Power Switches ......................20 Table 3-11 Supply External Power through Nu-Link2-Me ............. 21 Table 3-12 Supply External Power for NuMaker-M071VG Target Board ........23 Table 3-13 External Reference Voltage Connector ............... 24 Table 3-14 Ammeter Connector ..................... 24 Table 3-15 Push-Buttons .......................
  • Page 7: Overview

    The In-System Programmer (ISP) with 8 KB Loader ROM (LDROM) supports firmware updates through the Firmware Over-The-Air (FOTA) process. The NuMaker-M071VG consists of two parts: an NuMaker-M071VG target board and an on- board Nu-Link2-Me debugger and programmer. The NuMaker-M071VG is designed for project evaluation, prototype development and validation with power consumption monitoring function.
  • Page 8: Features

    NuMaker-M071VG FEATURES  NuMicro M071VG4AE used as main microcontroller.  M071VG4AE full pin extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  Flexible board power supply: External V power connector –...
  • Page 9: Hardware Configuration

    NuMaker-M071VG Target Board M071VG4AE M071VG4AE Extension Connectors Figure 3-1 Front View of NuMaker-M071VG Figure 3-1 shows the main components and connectors from the front side of NuMaker-M071VG. The following lists components and connectors from the front view:  Target chip: M071VG4AE (U1) ...
  • Page 10: Rear View

    NuMaker-M071VG Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M071VG. The following lists components and connectors from the rear view:  Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – ICEVCC Power Switch...
  • Page 11: Extension Connectors

    Arduino UNO compatible pins on the NuMaker-M071VG. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M071VG provides the M071VG4AE onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M071VG4AE extension connectors. Pin17 ~ Pin32...
  • Page 12 NuMaker-M071VG M071VG4AE Header Pin No. Function PB.13 / ADC0_CH10 JP3.1 JP3.2 PB.14 / ADC0_CH11 JP3.3 PB.15 / ADC0_CH12 / ACMP0_P3 / EBI_nCS1 PB.5 /ADC0_CH13 / SPI0_MOSI / SPI1_MOSI / ACMP0_P2 / SC1_RST /EBI_AD6 / JP3.4 UART2_RXD JP3.5 PB.6 / ADC0_CH14 / SPI0_MISO / SPI1_MISO / ACMP0_P1 / SC1_PWR / EBI_AD5 PB.7 / ADC0_CH15 / SPI0_CLK / SPI1_CLK / USCI2_CTL1 / ACMP0_P0 / SC1_DAT /...
  • Page 13 NuMaker-M071VG M071VG4AE Header Pin No. Function JP5.8 PD.7/USCI1_CTL1/SPI0_I2SMCLK/PWM0_SYNC_IN/TM1/ACMP0_O/PWM0_CH5/EBI_nRD JP5.7 PF.3/XT1_OUT/I2C1_SCL JP5.10 PF.4/XT1_IN/I2C1_SDA JP5.9 JP5.12 JP5.11 LDO_CAP JP5.14 PC.9/SPI0_I2SMCLK/I2C1_SCL/USCI2_CTL1/PWM1_CH0 JP5.13 PC.10/SPI0_MOSI/I2C1_SDA/USCI2_DAT1/PWM1_CH1 JP5.16 PC.11/SPI0_MISO/USCI2_CLK/PWM1_CH2 JP5.15 PC.12/SPI0_CLK/USCI2_CTL0/PWM1_CH3 JP5.18 PC.13/SPI0_SS/USCI2_DAT0/PWM1_CH4 JP5.17 PC.14/PWM1_CH5 JP5.20 PC.0/SC0_DAT/SPI0_CLK/UART2_nCTS/USCI0_DAT0/ACMP0_WLAT/PWM0_CH0/EBI_AD8/INT2 JP5.19 PC.1/CLKO/SC0_CLK/UART2_nRTS/USCI0_DAT1/ACMP1_WLAT/PWM0_CH1/EBI_AD9 JP5.22 PC.2/SC0_RST/SPI0_SS/UART2_TXD/USCI0_CTL1/ACMP1_O/PWM0_CH2/EBI_AD10 JP5.21 C.3/SC0_PWR/SPI0_MOSI/UART2_RXD/USCI0_CTL0/PWM0_CH3/EBI_AD11 JP5.24 PC.4/SC0_nCD/SPI0_MISO/I2C1_SCL/USCI0_CLK/PWM0_CH4/EBI_AD12 JP5.23 PE.0/SPI0_CLK/I2C1_SDA/TM2_EXT/SC0_nCD/PWM0_CH0/EBI_nCS1/INT4 JP5.26...
  • Page 14 NuMaker-M071VG M071VG4AE Header Pin No. Function JP4.15 PA.4 / SPI1_SS / TM3_EXT / EBI_AD4 JP4.16 JP4.17 PE.1 / TM3_EXT / SC0_nCD / PWM0_CH1 JP4.18 JP4.19 PE.8 / UART1_TXD / TM0 / I2C1_SCL / SC0_PWR JP4.20 PE.9 / UART1_RXD / TM1 / I2C1_SDA / SC0_RST PE.10 / SPI1_MISO / SPI0_MISO / UART1_nCTS / SC0_DAT / SPI1_CLK / EBI_AD7 /...
  • Page 15: Table 3-2 M071Vg4Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M071VG M071VG4AE Header Pin No. Function PB.9 / ADC0_CH6 / USCI0_CLK JP6.22 JP6.23 PB.10 / ADC0_CH7 PB.11 / ADC0_CH8 JP6.24 PE.2 / UART1_nRTS / TM_BRAKE3 / PWM0_CH2 / USCI0_CTL0 JP6.26 Table 3-2 M071VG4AE Full-pin Extension Connectors and GPIO Function List Dec.
  • Page 16: 3.3.2 Arduino Uno Compatible Extension Connectors

    NuMaker-M071VG 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART2_RXD PWM0_CH3 PC.3 UART2_TXD PWM0_CH2 PC.2 PWM1_CH0 PC.9 PWM1_CH1 PC.10 PWM1_CH2 PC.11 PWM1_CH3 PC.12 PWM1_CH4 PC.13 PWM1_CH5 PC.14 PWM0_CH0 PE.0 PWM0_CH5 PC.5 SPI0_SS PE.12 SPI0_MOSI PE.11...
  • Page 17: Table 3-3 Arduino Uno Extension Connectors And M071Vg4Ae Mapping Gpio List

    NuMaker-M071VG NuMaker-M071VG NuMaker-M071VG Header Header Compatible to GPIO Pin of Compatible to GPIO Pin of Arduino UNO NuMaker-M071VG Arduino UNO NuMaker-M071VG NU3.1 PC.3 NU2.6 PB.1 NU3.2 PC.2 NU2.5 PB.0 NU3.3 PC.9 NU2.4 PB.7 NU3.4 PC.10 NU2.3 PB.6 NU3.5 PC.11 NU2.2 PB.5...
  • Page 18: Power Supply Configuration

    NuMaker-M071VG Power Supply Configuration The NuMaker-M071VG is able to adopt multiple power supplies. External power sources include NU1 Vin (7 V to 12 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-M071VG.
  • Page 19: Power Sources

    Description ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies ICEUP1 USB_HS_VBUS 3.3 V to NuMaker-M071VG target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to NuMaker-M071VG target board. USB_VBUS Note: SW2.2 (NU1 3VCC) should be switched to ON.
  • Page 20: Usb Connectors

    Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V. ICEJPR1 Note: NuMaker-M071VG operating voltage range is from 2.5 V to 5.5 V. Do not change ICEVCC(ICEJPR2) resistor to 1.8 V. Configures the ICE chip operating voltage at 1.8 V / 3.3 V.
  • Page 21: Figure 3-6 External Power Supply Sources On Numaker-M071Vg Target Board

    2. 0 Ω should be soldered between ICEJPR2’s ICEVCC and 1.8 V / 3.3 V. 3. -: Unused. External Power Supply through NuMaker-M071VG Target Board to Target Chip The external power supply sources on NuMaker-M071VG target board are shown in Figure 3-6. External V Connector (JP1)
  • Page 22: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M071Vg

    Switch the SW2 depending on the target chip operating voltage. Detach the Nu-Link2-Me from NuMaker-M071VG. Connect the external power supply to Vin or J2. To use JP1 as external power supply source with Nu-Link2-Me detached from NuMaker-M071VG, please follow the steps below: Switch the SW2 to OFF.
  • Page 23: Table 3-12 Supply External Power For Numaker-M071Vg Target Board

    NuMaker-M071VG Table 3-12 presents all power models when supplies external power through NuMaker-M071VG target board. The NuMaker-M071VG target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection...
  • Page 24: External Reference Voltage Connector

    NuMaker-M071VG External Reference Voltage Connector Table 3-14 presents the external reference voltage connector. Connector Description Connector for user to connect to the external reference voltage pin of the VREF1 target chip. User needs to remove the L5 ferrite bead. Table 3-13 External Reference Voltage Connector Ammeter Connector Table 3-14 presents the ammeter connector.
  • Page 25: Leds

    NuMaker-M071VG LEDs Table 3-16 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M071VG 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-16 LEDs Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer.
  • Page 26: Status Leds

    NuMaker-M071VG 3.9.2 Status LEDs Table 3-16 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...
  • Page 27: Quick Start

    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.
  • Page 28: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M071VG Figure 4-2 Nu-Link USB Driver Installation Dec. 21, 2022 Page 28 of 48 Rev 1.01...
  • Page 29: Bsp Firmware Download

    NuMaker-M071VG 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 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.
  • Page 30: Figure 4-5 Device Manger

    NuMaker-M071VG 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.
  • Page 31: Find The Example Project

    NuMaker-M071VG 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.  M071Q_M071V_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.
  • Page 32: Figure 4-9 Project File Migrate To Version 5 Format

    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. Dec. 21, 2022 Page 32 of 48 Rev 1.01...
  • Page 33: Figure 4-11 Programming Setting In Options Window

    NuMaker-M071VG 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 Dec.
  • Page 34: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M071VG 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.
  • Page 35: Iar Ewarm

    NuMaker-M071VG 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.
  • Page 36: Figure 4-17 Iar Ewarm Debug Mode

    NuMaker-M071VG 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.
  • Page 37: Nueclipse

    NuMaker-M071VG 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.
  • Page 38: Figure 4-21 Open Project Properties Window

    NuMaker-M071VG 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 Dec. 21, 2022 Page 38 of 48 Rev 1.01...
  • Page 39: Figure 4-23 Build Project

    NuMaker-M071VG 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.
  • Page 40: Figure 4-25 Main Tab Configuration

    NuMaker-M071VG 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 Dec.
  • Page 41: Figure 4-27 Startup Tab Configuration

    NuMaker-M071VG Note 1: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration Dec. 21, 2022 Page 41 of 48 Rev 1.01...
  • Page 42: Figure 4-28 Nueclipse Debug Mode

    NuMaker-M071VG 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.
  • Page 43: Numaker-M071Vg Schematics

    NuMaker-M071VG NUMAKER-M071VG SCHEMATICS Nu-Link2-Me Figure 5-1 shows the Nu-Link2-Me circuit. 3.3V ICER1 O f f - page C onnect or 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE C0603 C0603 MCUVCC_DIODE SWDH_DAT TICEDAT SWDH_CLK TICECLK SWDH_RST# TICERST ICE_RX_S...
  • Page 44: Figure 5-2 Numaker-M071Vg Target Board Circuit

    NuMaker-M071VG Target Board NuMaker-M071VG Figure 5-2 shows the NuMaker-M071VG target board circuit. P1 - P25 P51 - P75 PB13 PB14_LED_R PB14_LED_R PB15_NU2_A0 PE4_NU4_SCL PB5_NU2_A1 PE5_NU4_SDA PE6_ICE_CLK PB6_NU2_A2 TICECLK PE7_ICE_DAT PB7_NU2_A3 TICEDAT nRESET TICERST AVSS PA10 VDD_1 VDD_MCU PA11 PD9_RXD0 MCU_RX...
  • Page 45: Figure 5-3 Extension Connectors Circuit

    NuMaker-M071VG Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M071VG. P1 - P26 P51 - P75 PB13 PB14_LED_R PE4_NU4_SCL I2C_SCL PB15_NU2_A0 PB5_NU2_A1 PE4_NU4_SCL PE5_NU4_SDA PE5_NU4_SDA I2C_SDA PB6_NU2_A2 PB7_NU2_A3 TICECLK TICEDAT VREF VREF TICERST MCUVCC_DIODE AVSS VDD_MCU PA10 PA11 TICERST PE13_NU4_D13/SCLK...
  • Page 46: Figure 5-4 Front Placement

    NuMaker-M071VG PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M071VG. Figure 5-4 Front Placement Figure 5-5 Rear Placement Dec. 21, 2022 Page 46 of 48 Rev 1.01...
  • Page 47 NuMaker-M071VG REVISION HISTORY Date Revision Description 2021.01.05 1.00 Initial version. 2022.12.21 1.01 Added the description of IC features in chapter 1. Dec. 21, 2022 Page 47 of 48 Rev 1.01...
  • Page 48 NuMaker-M071VG 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”.

Table of Contents