Nuvoton NuMaker-M031TC User Manual

Nuvoton NuMaker-M031TC User Manual

Arm cortex-m 32-bit microcontroller
Table of Contents

Advertisement

Quick Links

NuMaker-M031TC
®
®
ARM
Cortex
-M
32-bit Microcontroller
NuMaker-M031TC
User Manual
®
NuMicro
M031 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
Feb.
20, 2019
Page 1 of 36
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Nuvoton NuMaker-M031TC

  • 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

    Nu-Link2-Me ................... 20 PCB Placement ..................21 Quick Start ..................22 Toolchains Supporting ................22 Nuvoton Nu-Link Driver Installation ..............22 BSP Firmware Download ................24 Hardware Setup ..................24 Find the Example Project ................26 Execute the Project under Toolchains ............. 26 Keil MDK .......................
  • Page 3 NuMaker-M031TC Nu-Link2-Me ................... 32 M031 Platform ..................33 Extension Connector ................. 34 REVISION HISTORY ................35 Feb. 20, 2019 Page 3 of 36 Rev 1.00...
  • Page 4 Figure 2-5 External Power Supply Sources on Nu-Link2-Me ............16 Figure 2-6 External Power Supply Sources on M031 Platform ............. 17 Figure 2-6 Separate the Nu-Link2-Me from NuMaker-M031TC ............ 18 Figure 2-7 Wiring between Ammeter Connector and Ammeter ............. 19 Figure 2-8 Front Placement ......................
  • Page 5 NuMaker-M031TC List of Tables Table 2-1 Arduino UNO Extension Connectors and M031TC1AE Mapping GPIO List ....11 Table 2-2 M031TC1AE Full-pin Extension Connectors and GPIO Function List ......13 Table 2-3 Vin Power Source ......................14 Table 2-4 5V Power Sources ......................14 Table 2-5 3.3 V Power Sources .....................
  • Page 6: Overview

    NuMaker-M031TC OVERVIEW This user manual is aimed to give users a fast introduction to the use of NuMaker-M031TC board. The NuMaker-M031TC consists of two parts, a M031 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M031TC allows users to quickly develop and easily program and debug application.
  • Page 7 NuMaker-M031TC  ICE USB connector on Nu-Link2-Me  On-board Nu-Link2-Me debugger and programmer:  Debug through SWD interface  On-line/off-line programming  Virtual COM port function Feb. 20, 2019 Page 7 of 36 Rev 1.00...
  • Page 8: Numaker-M031Tc Overview

    Target Chip: M031TC1AE Target Chip Extension Connector Figure 2-1 Front View of NuMaker-M031TC Figure 2-1 shows the main components and connectors from the front side of NuMaker-M031TC. The following lists components and connectors from the front view:  Target Chip: M031TC1AE(U1) ...
  • Page 9: Rear View

    NuMaker-M031TC Rear View Figure 2-2 shows the main components and connectors from the rear side of NuMaker-M031TC. 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 10: Arduino Uno Compatible Extension Connectors

    NuMaker-M031TC Arduino UNO Compatible Extension Connectors Figure 2-3 shows the Arduino UNO compatible extension connectors. UART1_RXD PWM0_CH2 PB.2 PB.1 ADC0_CH1 I2C1_SCL UART2_TXD UART1_TXD PWM0_CH3 PB.3 PB.0 ADC0_CH0 I2C1_SDA UART2_RXD PA.12 PB.4 ADC0_CH4 PA.13 PB.5 ADC0_CH5 PA.14 PB.14 ADC0_CH14 PA.15 PB.15...
  • Page 11: Table 2-1 Arduino Uno Extension Connectors And M031Tc1Ae Mapping Gpio List

    NuMaker-M031TC NuMaker-M031TC NuMaker-M031TC Header Header Compatible to Compatible to GPIO Pin of M031 GPIO Pin of M031 Arduino UNO Arduino UNO NU3.1 PB.2 NU2.6 PB.1 NU3.2 PB.3 NU2.5 PB.0 NU3.3 PA.12 NU2.4 PB.4 NU3.4 PA.13 NU2.3 PB.5 NU3.5 PA.14 NU2.2 PB.14...
  • Page 12: Pin Assignment For Extension Connectors

    NuMaker-M031TC Pin Assignment for Extension Connectors The NuMaker-M031TC provides the M031TC1AE target chip onboard and full pins extension connectors (JP3, JP4, JP5 and JP6). The Figure 2-4 shows the M031TC1AE extension connectors. Pin9 ~ Pin18 Pin1 ~ Pin8 Pin19 ~ Pin24...
  • Page 13: Table 2-2 M031Tc1Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M031TC M031TC1AE Header Pin No. Function JP3.1 JP3.2 PB.5/ADC0_CH5/I2C0_SCL/PWM0_CH0/UART2_TXD/TM0/INT0 JP3.3 JP3.4 PB.4/ADC0_CH4/I2C0_SDA/PWM0_CH1/UART2_RXD/TM1/INT1 JP3.5 JP3.6 PB.3/ADC0_CH3/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE0/TM2/INT2 JP3.7 JP3.8 PB.2/ADC0_CH2/I2C1_SDA/UART1_RXD/PWM0_CH3/TM3/INT3 JP3.9 JP3.10 PB.1/ADC0_CH1/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM0_BRAKE0 JP3.11 JP3.12 PB.0/ADC0_CH0/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/PWM0_CH5/PWM0_BRAKE1 JP3.13 JP3.14 PF.5/UART2_RXD/UART2_nCTS/PWM0_CH0/X32_IN/ADC0_ST JP3.15 JP3.16 PF.4/UART2_TXD/UART2_nRTS/PWM0_CH1/X32_OUT JP5.1 JP5.2 PF.3/UART0_TXD/I2C0_SCL/XT1_IN JP5.3 JP5.4 PF.2/UART0_RXD/I2C0_SDA/XT1_OUT JP5.5 JP5.6 PA.3/SPI0_SS/UART1_TXD/I2C1_SCL/PWM0_CH2/CLKO JP5.7 JP5.8...
  • Page 14: System Configuration

    ICE USB connector supplies 5 V power from PC to ICEJ3 USB_HS_VBUS M031 platform and Nu-Link2-Me. USB connector on NuMaker-M031TC supplies 5 V USB_VBUS power from PC to M031 platform and Nu-Link2-Me. ICEJ3, J2 or NU1 pin8 supplies 5 V power to NU1 pin5.
  • Page 15: Power Sources

    Table 2-6 1.8V Power Sources 2.5.5 Power Connectors Table 2-7 presents the power connectors. Connector Comment (1.8 V ~ 3.6 V) connector on the NuMaker-M031TC. connector on the NuMaker-M031TC. Table 2-7 Power Connectors 2.5.6 USB Connectors Table 2-8 presents the USB connectors.
  • Page 16: Power Supply Models

    NuMaker-M031TC 2.5.8 Power Supply Models 2.5.8.1 External Power Supply through Nu-Link2-Me to Target Chip The external power supply source on Nu-Link2-Me is shown in Figure 2-5. ICE USB Connector (ICEJ3) Nu-Link2-Me Figure 2-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.
  • Page 17: Figure 2-6 External Power Supply Sources On M031 Platform

    2. Separate the Nu-Link2-Me from NuMaker- M031TC. 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-M031TC, please follow the below steps: 1. Switch the SW2 to OFF.
  • Page 18: Figure 2-6 Separate The Nu-Link2-Me From Numaker-M031Tc

    External V Connector (JP2) Separate Nu-Link2-Me NU1 pin8 (Vin) Figure 2-7 Separate the Nu-Link2-Me from NuMaker-M031TC Table 2-11 presents all power models when supplies external power through M031 platform. The M031 platform external power sources are highlighted in yellow. ICEJPR1...
  • Page 19: Ammeter Connector

    2.5.10 Extension Connectors Table 2-13 presents the extension connectors. Connector Comment JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M031TC. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-M031TC. Table 2-13 Extension Connectors 2.5.11 Push-Buttons Table 2-14 presents the push-buttons.
  • Page 20: 2.5.12 Leds

    NuMaker-M031TC 2.5.12 LEDs Table 2-15 presents the LEDs. Component Comment Power LED The power LED indicates that the NuMaker-M031TC is powered. PB14 LED The LED is connected to the target chip PB.14. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3...
  • Page 21: Pcb Placement

    NuMaker-M031TC PCB Placement Figure 2-9 and Figure 2-10 show the front and rear placement of NuMaker-M031TC. Figure 2-9 Front Placement Figure 2-10 Rear Placement Feb. 20, 2019 Page 21 of 36 Rev 1.00...
  • Page 22: Quick Start

    KEIL MDK Nuvoton edition M0/M23  IAR EWARM  NuEclipse (GCC)(Windows)  NuEclipse (GCC)(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 23: Figure 3-2 Nu-Link Usb Driver Installation

    NuMaker-M031TC Figure 3-2 Nu-Link USB Driver Installation Feb. 20, 2019 Page 23 of 36 Rev 1.00...
  • Page 24: Bsp Firmware Download

    2. Connect the ICE USB connector shown in Figure 3-4 to the PC USB port through USB cable. Figure 3-4 ICE USB Connector 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 3-5. Feb. 20, 2019 Page 24 of 36 Rev 1.00...
  • Page 25: Figure 3-5 Device Manger

    NuMaker-M031TC Figure 3-5 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 3-6 presents the PuTTY session setting. Figure 3-6 PuTTY Session Setting Feb. 20, 2019 Page 25 of 36...
  • Page 26: Find The Example Project

    NuMaker-M031TC 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-7.  M031_Series_BSP_CMSIS_V3.XX.XXX  SampleCode  Template   Keil  Figure 3-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 27: Figure 3-9 Project File Migrate To Version 5 Format

    Figure 3-9 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 3-10 and Figure 3-11. Note: If the dropdown menu in Figure 3-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 3.2.
  • Page 28: Figure 3-11 Programming Setting In Options Window

    NuMaker-M031TC Figure 3-11 Programming Setting in Options Window 3. Rebuild all target files. After successfully compile the project, download code to the flash memory. Click “Start/Stop Debug Section” button can enter debug mode. 1. Rebuild 2. Successfully compile 3. Download 4.
  • Page 29: Figure 3-13 Keil Mdk Debug Mode

    NuMaker-M031TC 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-13 Keil MDK Debug Mode Figure 3-14 Debug Message on Serial Port Terminal Windows Feb.
  • Page 30: Iar Ewarm

    NuMaker-M031TC 3.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 3-15.
  • Page 31: Nueclipse

    NuMaker-M031TC 4. Figure 3-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 3-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 32: Numaker-M031Tc Schematics

    NuMaker-M031TC NUMAKER-M031TC 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 Off-page Connector 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE...
  • Page 33: Figure 4-2 M031 Platform Circuit

    NuMaker-M031TC M031 Platform Figure 4-2 shows the M031 platform circuit. P1 - P8 P17 - P24 PF0_ICE_DAT TICEDAT PF1_ICE_CLK PB5_NU2_A2 TICECLK PB4_NU2_A3 PC1_NU4_SCL PB3_NU3_D1/TX PC0_NU4_SDA PB2_NU3_D0/RX PA12_NU3_D2 PB1_NU2_A5/SCL/TX PA13_NU3_D3 PB0_NU2_A4/SDA/RX PA14_NU3_D4 PF5_X32_IN PF5_X32_IN PA15_NU3_D5 PF4_X32_OUT PF4_X32_OUT P9 - P16 P25 - P32 nRESET PF.15/PWM0_BRAKE0/PWM0_CH1/TM2/CLKO/INT4...
  • Page 34: Figure 4-3 Extension Connectors Circuit

    NuMaker-M031TC Extension Connector Figure 4-3 shows extension connectors of NuMaker-M031TC. P1 - P8 P17 - P24 PB5_NU2_A2 TICEDAT PB4_NU2_A3 TICECLK PC1_NU4_SCL I2C_SCL PB3_NU3_D1/TX PC1_NU4_SCL PC0_NU4_SDA I2C_SDA PB2_NU3_D0/RX PC0_NU4_SDA AVDD VREF PB1_NU2_A5/SCL/TX PA12_NU3_D2 PB0_NU2_A4/SDA/RX PA13_NU3_D3 TICERST PA2_NU3_D13/CLK MCU_RESET PF5_X32_IN PA14_NU3_D4 NU1_3VCC...
  • Page 35: Revision History

    NuMaker-M031TC REVISION HISTORY Date Revision Description 2019.02.20 1.00 Initially issued. Feb. 20, 2019 Page 35 of 36 Rev 1.00...
  • Page 36 NuMaker-M031TC 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”.

This manual is also suitable for:

Numicro m031 series

Table of Contents