Nuvoton NuMicro M032 Series User Manual

Arm cortex-m32-bit microcontroller
Hide thumbs Also See for NuMicro M032 Series:
Table of Contents

Advertisement

NuMaker-M032SE
®
®
ARM
Cortex
-M
32-bit Microcontroller
NuMaker-M032SE
User Manual
®
NuMicro
M032 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 37
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMicro M032 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuMicro M032 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 2: Table Of Contents

    Nu-Link2-Me ................... 21 PCB Placement ..................22 Quick Start ..................23 Toolchains Supporting ................23 Nuvoton Nu-Link Driver Installation ..............23 BSP Firmware Download ................25 Hardware Setup ..................25 Find the Example Project ................27 Execute the Project under Toolchains ............. 27 Keil MDK .......................
  • Page 3 NuMaker-M032SE NuMaker-M032SE Schematics ..............33 Nu-Link2-Me ................... 33 M032 platform ..................34 Extension Connector ................. 35 REVISION HISTORY ................36 Feb. 20, 2019 Page 3 of 37 Rev 1.00...
  • Page 4 NuMaker-M032SE List of Figures Figure 1-1 NuMaker-M032SE Board ....................6 Figure 2-1 Front View of NuMaker-M032SE ..................8 Figure 2-2 Rear View of NuMaker-M032SE ..................9 Figure 2-3 Arduino UNO Compatible Extension Connectors ............10 Figure 2-4 M032SE3AE Extension Connectors ................12 Figure 2-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-M032SE List of Tables Table 2-1 Arduino UNO Extension Connectors and M032SE3AE Mapping GPIO List ....11 Table 2-2 M032SE3AE Full-pin Extension Connectors and GPIO Function List ......14 Table 2-3 Vin Power Source ......................15 Table 2-4 5V Power Sources ......................15 Table 2-5 3.3 V Power Sources .....................
  • Page 6: Overview

    NuMaker-M032SE OVERVIEW This user manual is aimed to give users a fast introduction to the use of NuMaker-M032SE board. The NuMaker-M032SE consists of two parts, a M032 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M032SE allows users to quickly develop and easily program and debug application.
  • Page 7 NuMaker-M032SE  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 37 Rev 1.00...
  • Page 8: Numaker-M032Se Overview

    NuMaker-M032SE NUMAKER-M032SE OVERVIEW Front View Arduino UNO Compatible Extension Connector Switch 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 M032 Platform...
  • Page 9: Rear View

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

    NuMaker-M032SE Arduino UNO Compatible Extension Connectors Figure 2-3 shows the Arduino UNO compatible extension connectors. MOSI PA.10 PB.15 USCI0_DAT0 MISO RESET PA.9 PA.11 nRESET PA.8 USCI0_DAT1 USCI0_CLK UART1_RXD PWM0_CH3 PB.2 PB.1 ADC0_CH1 I2C1_SCL UART2_TXD UART1_TXD PWM0_CH2 PB.3 PB.0 ADC0_CH0 I2C1_SDA UART2_RXD I2C1_SDA PWM1_CH1...
  • Page 11: Table 2-1 Arduino Uno Extension Connectors And M032Se3Ae Mapping Gpio List

    NuMaker-M032SE NuMaker-M032SE NuMaker-M032SE 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 PC.4 NU2.4 PB.4 NU3.4 PC.5 NU2.3 PB.5 NU3.5 PC.3 NU2.2 PB.6 NU3.6 PC.2...
  • Page 12: Pin Assignment For Extension Connectors

    NuMaker-M032SE Pin Assignment for Extension Connectors The NuMaker-M032SE provides the M032SE3AE target chip onboard and full pins extension connectors (JP3, JP4, JP5 and JP6). The Figure 2-4 shows the M032SE3AE extension connectors. Pin17 ~ Pin32 Pin1 ~ Pin16 Pin33 ~ Pin48 Pin49 ~ Pin64 Figure 2-4 M032SE3AE Extension Connectors Feb.
  • Page 13 NuMaker-M032SE M032SE3AE Header Pin No. Function PB.6/ADC0_CH6/EBI_nWRH/UART1_RXD/EBI_nCS1/PWM1_BRAKE1/PWM1_CH5/INT JP3.1 JP3.2 4/ACMP1_O JP3.3 JP3.4 PB.5/ADC0_CH5/ACMP1_N/I2C0_SCL/PWM0_CH0/UART2_TXD/TM0/INT0 JP3.5 JP3.6 PB.4/ADC0_CH4/ACMP1_P1/I2C0_SDA/PWM0_CH1/UART2_RXD/TM1/INT1 PB.3/ADC0_CH3/ACMP0_N/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE0/TM2 JP3.7 JP3.8 /INT2 JP3.9 JP3.10 PB.2/ADC0_CH2/ACMP0_P1/I2C1_SDA/UART1_RXD/PWM0_CH3/TM3/INT3 JP3.11 JP3.12 PB.1/ADC0_CH1/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM1_CH4/PWM0_BRAKE0 PB.0/ADC0_CH0/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/PWM0_CH5/PWM1_CH5/PW JP3.13 JP3.14 M0_BRAKE1 JP3.15 JP3.16 PA.11/ACMP0_P0/EBI_nRD/USCI0_CLK/TM0_EXT JP3.17 JP3.18 PA.10/ACMP1_P0/EBI_nWR/USCI0_DAT0/TM1_EXT JP3.19 JP3.20 PA.9/EBI_MCLK/USCI0_DAT1/UART1_TXD/TM2_EXT JP3.21 JP3.22 PA.8/EBI_ALE/USCI0_CTL1/UART1_RXD/TM3_EXT/INT4 JP3.23...
  • Page 14: Table 2-2 M032Se3Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M032SE JP4.7 JP4.8 PC.4/EBI_AD4/UART2_RXD/I2C1_SDA/PWM1_CH1 JP4.9 JP4.10 PC.3/EBI_AD3/UART2_nRTS/PWM1_CH2 JP4.11 JP4.12 PC.2/EBI_AD2/UART2_nCTS/PWM1_CH3 JP4.13 JP4.14 PC.1/EBI_AD1/UART2_TXD/I2C0_SCL/PWM1_CH4/ACMP0_O JP4.15 JP4.16 PC.0/EBI_AD0/UART2_RXD/I2C0_SDA/PWM1_CH5/ACMP1_O JP4.17 JP4.18 PD.3/EBI_AD10/USCI0_CTL1/SPI0_SS/UART0_TXD JP4.19 JP4.20 PD.2/EBI_AD11/USCI0_DAT1/SPI0_CLK/UART0_RXD JP4.21 JP4.22 PD.1/EBI_AD12/USCI0_DAT0/SPI0_MISO JP4.23 JP4.24 PD.0/EBI_AD13/USCI0_CLK/SPI0_MOSI/TM2 JP4.25 JP4.26 USB_VBUS JP4.27 JP4.28 USB_D- JP4.29 JP4.30 USB_D+ JP4.15 JP4.32 USB_VDD33_CAP JP6.1 JP6.2 JP6.3...
  • Page 15: System Configuration

    NuMaker-M032SE System Configuration 2.5.1 VIN Power Source Table 2-3 presents the Vin power source. Net Name in Connector Comment Schematic Board external power source, with voltage range from 7 V to 12 V. The voltage regulator UP2 converts the NU1 NU1 pin8 NU1_VIN pin8 input voltage to 5 V and supplies it to NuMaker-...
  • Page 16: Power Sources

    NuMaker-M032SE 2.5.4 1.8V Power Sources Table 2-6 presents the 1.8 V power source. Voltage Regular 5V Source Comment ICEUP2 converts USB_HS_VBUS to 1.8V and supplies ICEUP2 USB_HS_VBUS 1.8V to M032 platform or ICE chip. Table 2-6 1.8V Power Sources 2.5.5 Power Connectors Table 2-7 presents the power connectors.
  • Page 17: Power Supply Models

    NuMaker-M032SE 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 18: Figure 2-6 External Power Supply Sources On M032 Platform

    NuMaker-M032SE 2.5.8.2 External Power Supply through M032 platform to Target Chip The external power supply sources on M032 platform are shown in Figure 2-6. External V Connector (JP1) USB Power Connector (J2) External V Connector (JP2) NU1 pin8 (Vin) Figure 2-6 External Power Supply Sources on M032 platform To use Vin or J2 as external power supply source, please follow the below steps: 1.
  • Page 19: Figure 2-7 Separate The Nu-Link2-Me From Numaker-M032Se

    NuMaker-M032SE External V Connector (JP1) USB Power Connector (J2) " External V Connector (JP2) Separate Nu-Link2-Me NU1 pin8 (Vin) Figure 2-7 Separate the Nu-Link2-Me from NuMaker-M032SE Table 2-11 presents all power models when supplies external power through M032 platform. The M032 platform external power sources are highlighted in yellow.
  • Page 20: External Reference Voltage Connector

    NuMaker-M032SE 2.5.9 External Reference Voltage Connector Table 2-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 2-12 External Reference Voltage Connector 2.5.10 Ammeter Connector Table 2-13 presents the ammeter connector.
  • Page 21: 2.5.12 Push-Buttons

    NuMaker-M032SE 2.5.12 Push-Buttons Table 2-15 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 2-15 Push-Buttons 2.5.13 LEDs Table 2-16 presents the LEDs. Component Comment Power LED The power LED indicates that the NuMaker-M032SE is powered.
  • Page 22: Pcb Placement

    NuMaker-M032SE PCB Placement Figure 2-9 and Figure 2-10 show the front and rear placement of NuMaker-M032SE. Figure 2-9 Front Placement Figure 2-10 Rear Placement Feb. 20, 2019 Page 22 of 37 Rev 1.00...
  • Page 23: 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 24: Figure 3-2 Nu-Link Usb Driver Installation

    NuMaker-M032SE Figure 3-2 Nu-Link USB Driver Installation Feb. 20, 2019 Page 24 of 37 Rev 1.00...
  • Page 25: 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 25 of 37 Rev 1.00...
  • Page 26: Figure 3-5 Device Manger

    NuMaker-M032SE 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 26 of 37 Rev 1.00...
  • Page 27: Find The Example Project

    NuMaker-M032SE 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 28: 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 29: Figure 3-11 Programming Setting In Options Window

    NuMaker-M032SE 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 30: Figure 3-13 Keil Mdk Debug Mode

    NuMaker-M032SE 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. 20, 2019 Page 30 of 37 Rev 1.00...
  • Page 31: Iar Ewarm

    NuMaker-M032SE 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. Note: If the toolbar does not contain “Nu-Link”...
  • Page 32: Nueclipse

    NuMaker-M032SE 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 33: Figure 4-1 Nu-Link2-Me Circuit

    NuMaker-M032SE NUMAKER-M032SE 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 C0603 C0603 MCUVCC_DIODE...
  • Page 34: Figure 4-2 M032 Platform Circuit

    NuMaker-M032SE M032 platform Figure 4-2 shows the M032 platform circuit. P1 - P16 P33 - P48 PF0_ICE_DAT PB6_NU2_A1 TICEDAT PF1_ICE_CLK PB5_NU2_A2 TICECLK PB4_NU2_A3 PC5_NU3_D3 PB3_NU3_D1/TX PC4_NU3_D2 PB2_NU3_D0/RX PC3_NU3_D4 PB1_NU2_A5/SCL/TX PC2_NU3_D5 PB0_NU2_A4/SDA/RX PC1_NU4_SCL PA11_NU5_CLK PC0_NU4_SDA PA10_NU5_MOSI PA9_NU5_MISO PA8_NU5_SS PF14 USB_VBUS nRESET PF5_X32_IN PF5_X32_IN USB_D-...
  • Page 35: Figure 4-3 Extension Connectors Circuit

    NuMaker-M032SE Extension Connector Figure 4-3 shows extension connectors of NuMaker-M032SE. P1 - P16 P33 - P48 PB6_NU2_A1 TICEDAT PB5_NU2_A2 TICECLK PC1_NU4_SCL I2C_SCL PB4_NU2_A3 PC5_NU3_D3 PC0_NU4_SDA I2C_SDA PB3_NU3_D1/TX PC4_NU3_D2 VREF VREF PB2_NU3_D0/RX PC3_NU3_D4 PB1_NU2_A5/SCL/TX PC2_NU3_D5 TICERST PA2_NU3_D13/CLK MCU_RESET PB0_NU2_A4/SDA/RX PC1_NU4_SCL NU1_3VCC PA1_NU3_D12/MISO 3VCC PA11_NU5_CLK...
  • Page 36 NuMaker-M032SE REVISION HISTORY Date Revision Description 2019.02.20 1.00 Initially issued. Feb. 20, 2019 Page 36 of 37 Rev 1.00...
  • Page 37 NuMaker-M032SE 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 m032se3aeNumicro m032le3aeNumaker-m032se

Table of Contents