Nuvoton NuMicro NuMaker-M031BTYE User Manual

Nuvoton NuMicro NuMaker-M031BTYE User Manual

Arm cortex-m0-based microcontroller evaluation board for numicro m253 series
Table of Contents

Advertisement

Quick Links

NuMaker-M031BTYE
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-M031BTYE
User Manual
Evaluation Board for NuMicro
®
M031BT 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
Apr. 19, 2022
Page 1 of 43
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuMicro NuMaker-M031BTYE

  • 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 ........................24 4 QUICK START ....................25 4.1 Toolchain 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-M031BTYE 5.3 Extension Connectors ....................40 5.4 PCB Placement......................41 6 REVISION HISTORY ..................42 Apr. 19, 2022 Page 3 of 43 Rev 1.00...
  • Page 4 NuMaker-M031BTYE List of Figure Figure 1-1 NuMaker-M031BTYE Evaluation Board ..............7 Figure 3-1 Front View of NuMaker-M031BTYE ................9 Figure 3-2 Rear View of NuMaker-M031BTYE ................10 Figure 3-3 M031BTYE3AN Extension Connectors ..............11 Figure 3-4 Arduino UNO Compatible Extension Connectors ............14 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-M031BTYE Figure 5-5 Rear Placement ....................... 41 Apr. 19, 2022 Page 5 of 43 Rev 1.00...
  • Page 6 NuMaker-M031BTYE List of Table Table 3-1 Extension Connectors ....................11 Table 3-2 M031BTYE3AN Full-pin Extension Connectors and GPIO Function List..... 13 Table 3-3 Arduino UNO Extension Connectors and M031BTYE3AN Mapping GPIO List ... 15 Table 3-4 Vin Power Source ...................... 16 Table 3-5 5V Power Sources .....................
  • Page 7: Overview

    NuMaker-M031BTYE OVERVIEW The NuMaker-M031BTYE is an evaluation board for Nuvoton NuMicro M031BT series microcontrollers. The M031BT series BLE MCU is compliant with the BLE 5.0 standard supporting data rates up to 2 Mbps, offering 2.4 GHz proprietary stacks to achieve more possibility for wireless connectivity and Over- the-Air (OTA) for firmware upgrade.
  • Page 8: Features

    NuMaker-M031BTYE FEATURES  NuMicro M031BTYE3AN used as main microcontroller with function compatible with: M031BTYE3AN – M031BTYD2AN –  M031BTYE3AN extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  PCB antenna  Microwave coaxial connector with switch for characteristics measurement ...
  • Page 9: Hardware Configuration

    NuMaker-M031BTYE HARDWARE CONFIGURATION 3.1 Front View Arduino UNO Compatible Extension Connectors Switch External V Connector Ammeter Nu-Link2-Me Microwave Coaxial Connectors VCOM Switch PCB Antenna ICE USB Connector ICE Chip: M48SSIDAE M031BTYE3AN PF15 LED ICE Status LED Power LED Off-line Program Button M031BTYE3AN Extension Connectors M031BTYE Target Board External V...
  • Page 10: Rear View

    NuMaker-M031BTYE 3.2 Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M031BTYE. 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 3-2 Rear View of NuMaker-M031BTYE...
  • Page 11: Extension Connectors

    NuMaker-M031BTYE 3.3 Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M031BTYE. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-M031BTYE. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M031BTYE provides the M031BTYE3AN onboard and extension connectors (JP3, JP4,...
  • Page 12 NuMaker-M031BTYE M031BTYE3AN Header Pin No. Function JP3.1 PB.3/ADC0_CH3/ACMP0_N/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE0/TM2/INT2 JP3.2 PB.2/ADC0_CH2/ACMP0_P1/I2C1_SDA/UART1_RXD/PWM0_CH3/TM3/INT3 JP3.3 PB.1/ADC0_CH1/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM1_CH4/PWM0_BRAKE0 JP3.4 PB.0/ADC0_CH0/UART2_RXD/I2C1_SDA/PWM0_CH5/PWM1_CH5/PWM0_BRAKE1 JP3.5 RF_AVDD1V2 JP3.6 JP3.7 RF_I/O JP3.8 JP3.9 RF_VDDPA JP3.10 PF.5/UART2_RXD/UART2_nCTS/PWM0_CH0/X32_IN/ADC0_ST JP3.11 PF.4/UART2_TXD/UART2_nRTS/PWM0_CH1/X32_OUT JP3.12 PF.3/UART0_TXD/I2C0_SCL/XT1_IN JP5.1 PF.2/UART0_RXD/I2C0_SDA/XT1_OUT JP5.2 RF_XTAL_IN JP5.3 RF_XTAL_OUT JP5.4 RF_AVDD1V2 JP5.5 RF_BUCK_FB JP5.6 RF_BUCK_OUT JP5.7 PA.3/UART1_TXD/I2C1_SCL/PWM0_CH2/CLKO/PWM1_BRAKE1 JP5.8...
  • Page 13: Table 3-2 M031Btye3An Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M031BTYE M031BTYE3AN Header Pin No. Function JP4.8 JP4.9 LDO_CAP JP4.10 JP4.11 PB.15/ADC0_CH15/USCI0_CTL1/UART0_nCTS/PWM1_CH0/TM0_EXT/PWM0_BRAKE1 JP4.12 PB.14/ADC0_CH14/USCI0_DAT1/UART0_nRTS/PWM1_CH1/TM1_EXT/CLKO JP6.1 PB.13/ADC0_CH13/ACMP0_P3/ACMP1_P3/USCI0_DAT0/UART0_TXD/PWM1_CH2/TM2_EXT JP6.2 PB.12/ADC0_CH12/ACMP0_P2/ACMP1_P2/USCI0_CLK/UART0_RXD/PWM1_CH3/TM3_EXT JP6.3 JP6.4 JP6.5 PB.11/ADC0_CH11/UART0_nCTS/I2C1_SCL JP6.6 PB.10/ADC0_CH10/UART0_nRTS/I2C1_SDA JP6.7 PB.9/ADC0_CH9/UART0_TXD/UART1_nCTS JP6.8 PB.8/ADC0_CH8/UART0_RXD/UART1_nRTS JP6.9 PB.7/ADC0_CH7/UART1_TXD/PWM1_BRAKE0/PWM1_CH4/INT5/ACMP0_O JP6.10 PB.6/ADC0_CH6/UART1_RXD/PWM1_BRAKE1/PWM1_CH5/INT4/ACMP1_O JP6.11 PB.5/ADC0_CH5/ACMP1_N/I2C0_SCL/PWM0_CH0/UART2_TXD/TM0/INT0 JP6.12 PB.4/ADC0_CH4/ACMP1_P1/I2C0_SDA/PWM0_CH1/UART2_RXD/TM1/INT1 Table 3-2 M031BTYE3AN Full-pin Extension Connectors and GPIO Function List Apr.
  • Page 14: Arduino Uno Compatible Extension Connectors

    NuMaker-M031BTYE 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART1_RXD PB.2 UART1_TXD PB.3 PF.2* PF.3* PWM0_CH2 PA.3 PWM0_CH3 PA.2 PWM1_CH5 PB.6 PWM1_CH4 PB.7 PWM0_CH1 PB.4 PWM0_CH0 PB.5 PB.15(CS) PWM1_CH0 PB.15 USCI0_DAT0(MOSI) PWM1_CH2 PB.13 USCI0_DAT1(MISO) PWM1_CH1 PB.14...
  • Page 15: Table 3-3 Arduino Uno Extension Connectors And M031Btye3An Mapping Gpio List

    NuMaker-M031BTYE NuMaker-M031BTYE NuMaker-M031BTYE Header Header Compatible to GPIO Pin of Compatible to GPIO Pin of Arduino UNO M031BTYE Arduino UNO M031BTYE NU3.1 PB.2 NU2.6 PB.1 NU3.2 PB.3 NU2.5 PB.0 NU3.3 PF.2 NU2.4 PB.11 NU3.4 PF.3 NU2.3 PB.10 NU3.5 PA.3 NU2.2 PB.9 NU3.6 PA.2...
  • Page 16: Power Supply Configuration

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

    NuMaker-M031BTYE 3.4.3 3.3 V Power Sources Table 3-6 presents the 3.3 V power sources. Voltage Regulator 5 V Source Description ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies ICEUP1 USB_HS_VBUS 3.3 V to M031BTYE target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M031BTYE target board.
  • Page 18: Usb Connectors

    NuMaker-M031BTYE 3.4.6 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-M031BTYE for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches.
  • Page 19: Figure 3-6 External Power Supply Sources On M031Btye Target Board

    NuMaker-M031BTYE To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the steps below: 1. Solder the resistor on ICEJPR1 (MCUVCC) depending on the target chip operating voltage. 2. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 3.
  • Page 20: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M031Btye

    NuMaker-M031BTYE To use JP1 as external power supply source, please follow the steps below: Switch the SW2 to OFF. 2. Remove the resistor on ICEJPR1 (MCUVCC). 3. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 4.
  • Page 21: Table 3-12 Supply External Power For M031Btye Target Board

    NuMaker-M031BTYE Table 3-12 presents all power models when supplies external power through M031BTYE target board. The M031BTYE target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 Selectio (MCUVCC) (ICEVCC) Voltage Voltage Selection Selection 7 V ~ 12 V Remove...
  • Page 22: Ammeter Connector

    NuMaker-M031BTYE 3.5 Ammeter Connector Table 3-13 presents the ammeter connector. Connector Description Connector for user to measure the target chip power consumption easily. AMMETER User needs to remove the R16 resistor. Table 3-13 Ammeter Connector Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter Apr.
  • Page 23: Push Buttons

    NuMaker-M031BTYE 3.6 Push Buttons Table 3-14 presents the push buttons. Component Description ICESW1 Offline program button to start offline ICP programming the target chip. Reset button to reset the target chip. Table 3-14 Push Buttons 3.7 LEDs Table 3-15 presents the LEDs. Component Description Power LED...
  • Page 24: Vcom Switches

    NuMaker-M031BTYE 3.9.1 VCOM Switches Table 3-17 presents how to set the VCOM function by ICESW2. ICESW2 Function Description On: Connect target chip PA.1 (UART0_TXD) to Nu-Link2-Me. Off: Disconnect target chip PA.0 (UART0_TXD) to Nu-Link2-Me. On: Connect target chip PA.1 (UART0_RXD) to Nu-Link2-Me. Off: Disconnect target chip PA.0 (UART0_RXD) to Nu-Link2-Me.
  • Page 25: Quick Start

    Install the preferred toolchain. Please make sure at least one of the toolchain has been installed.  KEIL MDK Nuvoton edition M0/M23 4.2 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.
  • Page 26: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M031BTYE Figure 4-2 Nu-Link USB Driver Installation Apr. 19, 2022 Page 26 of 43 Rev 1.00...
  • Page 27: Bsp Firmware Download

    NuMaker-M031BTYE 4.3 BSP Firmware Download Download and unzip the Board Support Package (BSP). 4.4 Hardware Setup 1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to ON. Figure 4-3 Open VCOM Function 2. 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-M031BTYE 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 4. 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-M031BTYE 4.5 Find the Example Project Use the “TRSP_UART_Peripheral ” project as an example. The project can be found under the BSP folder as shown in Figure 4-7.  M031BSP-master  SampleCode  NuMaker-M03xBT   Demo  Peripheral  TRSP_UART_Peripheral ...
  • Page 30: Figure 4-9 Project File Migrate To Version 5 Format

    NuMaker-M031BTYE Figure 4-9 Project File Migrate to Version 5 Format 2. 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.
  • Page 31: Figure 4-11 Programming Setting In Options Window

    NuMaker-M031BTYE Figure 4-11 Programming Setting in Options Window 3. 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.
  • Page 32: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M031BTYE 4. 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: Figure 4-14 Debug Message On Serial Port Terminal Windows

    NuMaker-M031BTYE Figure 4-14 Debug Message on Serial Port Terminal Windows Apr. 19, 2022 Page 33 of 43 Rev 1.00...
  • Page 34: Figure 4-15 Search For Nuvotonble On Google Play Store Or App Store

    NuMaker-M031BTYE 5. User can download and install NuvotonBLE from Google Play Store (Android devices) or App Store (Apple devices). Figure 4-15 Search for NuvotonBLE on Google Play Store or App Store 6. Open the NuvotonBLE and turn on Bluetooth in settings of the mobile phone. Android Figure 4-16 NuvotonBLE Icon Andriod...
  • Page 35: Figure 4-18 Connect To Nuvoton_Trsp_Uart On Android Phone

    NuMaker-M031BTYE Figure 4-18 Connect to Nuvoton_TRSP_UART on Android Phone Figure 4-19 Connect to Nuvoton_TRSP_UART on iPhone 8. User can type a string in the NuvotonBLE text input field and click the SEND button, then the data can be transmitted from the mobile phone to M031BT through BLE, and finally sent to the PC Apr.
  • Page 36: Figure 4-20 Transfer String From Android Phone To M031Bt

    NuMaker-M031BTYE through the M031BT UART and displayed on the terminal window. Figure 4-20 Transfer String from Android Phone to M031BT Figure 4-21 Transfer String from iPhone to M031BT Apr. 19, 2022 Page 36 of 43 Rev 1.00...
  • Page 37: Figure 4-22 Transfer String From M031Bt To Andriod Phone

    NuMaker-M031BTYE 9. User can type a string in the terminal window and press enter “↵”, then the data can be transmitted from M031BT to the mobile phone through BLE, and finally displayed on the NuvotonBLE main screen. Type a string and press enter “↵”...
  • Page 38: Numaker-M031Btye Schematics

    NuMaker-M031BTYE NUMAKER-M031BTYE SCHEMATICS 5.1 Nu-Link2-Me Figure 5-1 shows the Nu-Link2-Me circuit. 3.3V ICER1 Off-page Connector 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 MCU_TX ICE_TX_S MCU_RX ICE_RST nRESET ICEVDD VDDIO ETMCK_MOSI...
  • Page 39: M031Btye Target Board

    NuMaker-M031BTYE 5.2 M031BTYE Target Board Figure 5-2 shows the M031BTYE target board circuit. P1 - P10 P25 - P34 nRESET PB3_NU3_D1/TX TICERST PF0_ICE_DAT PB2_NU3_D0/RX TICEDAT PF1_ICE_CLK PB1_NU2_A5/SCL/TX TICECLK PB0_NU2_A4/SDA/RX PC1_NU4_SCL RF_AVDD1V2_1 PC0_NU4_SDA RF_VDD RF_VDD RF_IO RF_CLKO RF_CLKO RF_VDDPA LDO_CAP RF_VDD LDO_CAP PF5_X32_IN VDD_1...
  • Page 40: Figure 5-3 Extension Connectors Circuit

    NuMaker-M031BTYE 5.3 Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M031BTYE. P1 - P12 PC1_NU4_SCL I2C_SCL PC0_NU4_SDA I2C_SDA PB3_NU3_D1/TX PB2_NU3_D0/RX AVDD VREF PB1_NU2_A5/SCL/TX PB0_NU2_A4/SDA/RX TICERST PB12_NU4_D13/CLK MCU_RESET NU1_3VCC PB14_NU4_D12/MISO 3VCC RF_VDD PF5_X32_IN NU1_5VCC PB13_NU4_D11/MOSI 5VCC PF4_X32_OUT PF3_0R_NU3_D3 PB15_NU4_D10/SS PB5_NU4_D9 NU1_VIN PB4_NU4_D8 HEADER 6X2(NC) HEADER 2.54 8X1 f emale...
  • Page 41: Figure 5-4 Front Placement

    NuMaker-M031BTYE 5.4 PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M031BTYE. Figure 5-4 Front Placement Figure 5-5 Rear Placement Apr. 19, 2022 Page 41 of 43 Rev 1.00...
  • Page 42 NuMaker-M031BTYE REVISION HISTORY Date Revision Description  2022.04.19 1.00 Initial version Apr. 19, 2022 Page 42 of 43 Rev 1.00...
  • Page 43 NuMaker-M031BTYE 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