Nuvoton NuMaker-M071R1E User Manual

Nuvoton NuMaker-M071R1E User Manual

Numicro family arm cortex-m0-based microcontroller, evaluation board for numicro m071 series
Table of Contents

Advertisement

Quick Links

NuMaker-M071R1E
®
NuMicro
Family
®
®
Arm
Cortex
-M0-based Microcontroller
NuMaker-M071R1E
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 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. 14, 2020
Page 1 of 46
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuMaker-M071R1E

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

    3.9.2 Status LEDs ........................24 4 QUICK START ....................25 4.1 Toolchains Supporting ....................25 4.2 Nuvoton Nu-Link Driver Installation ................25 4.3 BSP Firmware Download ................... 27 4.4 Hardware Setup ......................27 4.5 Find the Example Project ................... 29 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M071R1E 5.2 M071 Target Board ...................... 42 5.3 Extension Connectors ....................43 5.4 PCB Placement ......................44 6 REVISION HISTORY ..................45 Dec. 14, 2020 Page 3 of 46 Rev 1.00...
  • Page 4 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............18 Figure 3-6 External Power Supply Sources on M071 Target Board ..........19 Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M071R1E ............. 20 Figure 3-8 Wiring between Ammeter Connector and Ammeter ............. 22 Figure 4-1 Nu-Link USB Driver Installation Setup ................
  • Page 5 NuMaker-M071R1E Figure 4-28 NuEclipse Debug Mode ....................40 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 40 Figure 5-1 Nu-Link2-Me Circuit ...................... 41 Figure 5-2 M071 Target Board Circuit ................... 42 Figure 5-3 Extension Connectors Circuit ..................43 Figure 5-4 Front Placement ......................
  • Page 6 NuMaker-M071R1E List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M071R1E3AE Full-pin Extension Connectors and GPIO Function List ......13 Table 3-3 Arduino UNO Extension Connectors and M071R1E3AE Mapping GPIO List....15 Table 3-4 Vin Power Source ......................16 Table 3-5 5 V Power Sources ......................
  • Page 7: Overview

    OVERVIEW The NuMaker-M071R1E is an evaluation board for Nuvoton NuMicro M071R1E and M071SE microcontrollers. The NuMaker-M071R1E consists of two parts: an M071R1E target board and an on- board Nu-Link2-Me debugger and programmer. The NuMaker-M071R1E is designed for project evaluation, prototype development and validation with power consumption monitoring function.
  • Page 8: Features

    NuMaker-M071R1E FEATURES  NuMicro M071R1E3AE microcontroller with function compatible with: M071R1E3AE – M071R1D3AE – M071SE3AE – M071SD3AE –  M071R1E3AE extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  Flexible board power supply:...
  • Page 9: Hardware Configuration

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

    NuMaker-M071R1E Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M071R1E. 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-M071R1E. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M071R1E provides the M071R1E3AE onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M071R1E3AE extension connectors. Pin17 ~ Pin32...
  • Page 12 NuMaker-M071R1E M071R1E3AE Header Pin No. Function PB.14/NT0/AD0 JP3.1 JP3.2 PB.13/AD1 JP3.3 JP3.4 X32_OUT JP3.5 X32_IN JP3.6 PA.11/I2C1_SCL/nRD JP3.7 PA.10/I2C1_SDA/nWR JP3.8 PA.9/I2C0_SCL JP3.9 PA.8/I2C0_SDA JP3.10 PB.4/UART1_RXD JP3.11 PB.5/UART1_TXD JP3.12 PB.6/UART1_nRTS/ALE JP3.13 PB.7/UART1_nCTS/nCS JP3.14 LDO_CAP JP3.15 JP3.16 JP5.1 USB_VBUS JP5.2 USB_V 33_CAP JP5.3...
  • Page 13: Table 3-2 M071R1E3Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M071R1E M071R1E3AE Header Pin No. Function JP4.2 PC.10/SPI1_MISO0 JP4.3 PC.9/SPI1_CLK JP4.4 PC.8/SPI1_SS0/MCLK JP4.5 PA.15/PWM3 JP4.6 PA.14/PWM2/AD15 JP4.7 PA.13/PWM1/AD14 JP4.8 PA.12/PWM0/AD13 JP4.9 ICE_DAT JP4.10 ICE_CLK JP4.11 JP4.12 PA.0/ADC0 JP4.13 PA.1/ADC1/AD12 JP4.14 PA.2/ADC2/AD11 JP4.15 PA.3/ADC3/AD10 JP4.16 PA.4/ADC4/AD9 JP6.1 PA.5/ADC5/AD8 JP6.2 PA.6/ADC6/AD7 JP6.3 JP6.4...
  • Page 14: 3.3.2 Arduino Uno Compatible Extension Connectors

    NuMaker-M071R1E 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. MISO RESET PC.10 PC.9 nRESET PC.8 SPI1_MISO0 SPI1_CLK SPI1_SS0 UART1_RXD PB.4 UART1_TXD PB.5 PWM5 PE.5 PWM4 PB.11 PWM3 PA.15 PWM2 PA.14 PWM1 PA.13 PWM0 PA.12...
  • Page 15: Table 3-3 Arduino Uno Extension Connectors And M071R1E3Ae Mapping Gpio List

    NuMaker-M071R1E NuMaker-M071R1E NuMaker-M071R1E Header Header Compatible to Compatible to GPIO Pin of M071 GPIO Pin of M071 Arduino UNO Arduino UNO NU3.1 PB.4 NU2.6 PA.6 NU3.2 PB.5 NU2.5 PC.7 NU3.3 PE.5 NU2.4 PC.6 NU3.4 PB.11 NU2.3 PC.15 NU3.5 PA.14 NU2.2 PC.14...
  • Page 16: Power Supply Configuration

    NuMaker-M071R1E Power Supply Configuration The NuMaker-M071R1E 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- M071R1E.
  • Page 17: Power Sources

    3.4.5 Power Connectors Table 3-8 presents the power connectors. Connector Description connector on the NuMaker-M071R1E. Note: M071 operating voltage range is from 2.5 V to 5.5 V. connector on the NuMaker-M071R1E. Table 3-8 Power Connectors Dec. 14, 2020 Page 17 of 46...
  • Page 18: Usb Connectors

    Table 3-9 presents the USB connectors. Connector Description ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ3 programming from PC. USB FS connector on NuMaker-M071R1E for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches. Switch Description Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V.
  • Page 19: Figure 3-6 External Power Supply Sources On M071 Target Board

    NuMaker-M071R1E To use ICEJ3 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. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage.
  • Page 20: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M071R1E

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

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

    NuMaker-M071R1E 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 23: Leds

    NuMaker-M071R1E LEDs Table 3-16 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M071R1E 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 24: Status Leds

    NuMaker-M071R1E 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 25: 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 26: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M071R1E Figure 4-2 Nu-Link USB Driver Installation Dec. 14, 2020 Page 26 of 46 Rev 1.00...
  • Page 27: Bsp Firmware Download

    NuMaker-M071R1E 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 28: Figure 4-5 Device Manger

    NuMaker-M071R1E 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 29: Find The Example Project

    NuMaker-M071R1E 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.  M071R_M071S_BSP-master  SampleCode  Template   Keil  Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 30: 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. 14, 2020 Page 30 of 46 Rev 1.00...
  • Page 31: Figure 4-11 Programming Setting In Options Window

    NuMaker-M071R1E 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 32: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M071R1E 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 33: Iar Ewarm

    NuMaker-M071R1E 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 34: Figure 4-17 Iar Ewarm Debug Mode

    NuMaker-M071R1E 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 35: Nueclipse

    NuMaker-M071R1E 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 36: Figure 4-21 Open Project Properties Window

    NuMaker-M071R1E 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. 14, 2020 Page 36 of 46 Rev 1.00...
  • Page 37: Figure 4-23 Build Project

    NuMaker-M071R1E 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 38: Figure 4-25 Main Tab Configuration

    NuMaker-M071R1E 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 39: Figure 4-27 Startup Tab Configuration

    NuMaker-M071R1E 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. 14, 2020 Page 39 of 46 Rev 1.00...
  • Page 40: Figure 4-28 Nueclipse Debug Mode

    NuMaker-M071R1E 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 41: Numaker-M071R1E Schematics

    NuMaker-M071R1E NUMAKER-M071R1E 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 42: M071 Target Board

    NuMaker-M071R1E M071 Target Board Figure 5-2 shows the M071 target board circuit. P1 - P16 P33 - P48 PB14_LED_R PB14_LED_R PC11_NU5_MOSI PB13 PC10_NU5_MISO VBAT PC9_NU5_CLK X32_OUT PC8_NU5_SS X32_OUT X32_IN X32_IN PA15_NU3_D4 PA11 PA14_NU3_D5 PA10 PA13_NU3_D6 PA9_NU4_SCL PA12_NU3_D7 ICE_DAT PA8_NU4_SDA TICEDAT...
  • Page 43: Extension Connectors

    NuMaker-M071R1E Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M071R1E. P1 - P16 P33 - P48 PB14_LED_R PC11_NU5_MOSI PB13 PC10_NU5_MISO PA9_NU4_SCL I2C_SCL VBAT PC9_NU5_CLK PA8_NU4_SDA I2C_SDA X32_OUT PC8_NU5_SS VREF VREF PA15_NU3_D4 X32_IN PA14_NU3_D5 TICERST PC1_NU4_CLK PA11 MCU_RESET PA13_NU3_D6 NU1_3VCC PC2_NU4_MISO...
  • Page 44: Pcb Placement

    NuMaker-M071R1E PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M071R1E. Figure 5-4 Front Placement Figure 5-5 Rear Placement Dec. 14, 2020 Page 44 of 46 Rev 1.00...
  • Page 45: Revision History

    NuMaker-M071R1E REVISION HISTORY Date Revision Description  2020.12.14 1.00 Initial version Dec. 14, 2020 Page 45 of 46 Rev 1.00...
  • Page 46 NuMaker-M071R1E 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