Table of Contents

Advertisement

Quick Links

NuMaker-M032BTAI
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-M032BTAI
User Manual
Evaluation Board for NuMicro
®
M032BT 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 46
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Nuvoton NuMaker M032BTAI

  • 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 ........................27 4 QUICK START ....................28 4.1 Toolchain Supporting ....................28 4.2 Nuvoton Nu-Link Driver Installation ................28 4.3 BSP Firmware Download ................... 30 4.4 Hardware Setup ......................30 4.5 Find the Example Project ................... 32 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M032BTAI 5.3 Extension Connectors ....................43 5.4 PCB Placement......................44 6 REVISION HISTORY ..................45 Apr. 19, 2022 Page 3 of 46 Rev 1.00...
  • Page 4 NuMaker-M032BTAI List of Figure Figure 1-1 NuMaker-M032BTAI Evaluation Board ................7 Figure 3-1 Front View of NuMaker-M032BTAI ................. 9 Figure 3-2 Rear View of NuMaker-M032BTAI ................10 Figure 3-3 M032BTAIAAN Extension Connectors ................. 11 Figure 3-4 Arduino UNO Compatible Extension Connectors ............15 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-M032BTAI Figure 5-5 Rear Placement ......................44 Apr. 19, 2022 Page 5 of 46 Rev 1.00...
  • Page 6 NuMaker-M032BTAI List of Table Table 3-1 Extension Connectors ....................11 Table 3-2 M032BTAIAAN Full-pin Extension Connectors and GPIO Function List ....... 14 Table 3-3 Arduino UNO Extension Connectors and M032BTAIAAN Mapping GPIO List ..... 16 Table 3-4 Vin Power Source ......................17 Table 3-5 5V Power Sources ......................
  • Page 7: Overview

    NuMaker-M032BTAI OVERVIEW The NuMaker-M032BTAI is an evaluation board for Nuvoton NuMicro M032BT series microcontrollers. The M032BT 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-M032BTAI FEATURES  NuMicro M032BTAIAAN used as main microcontroller with function compatible with: M032BTAIAAN – M032BTAG8AN –  M032BTAIAAN full pins extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  PCB antenna ...
  • Page 9: Hardware Configuration

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

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

    NuMaker-M032BTAI 3.3 Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4 Full pins extension connectors on the NuMaker-M032BTAI. NU1, NU2, NU3, NU4 and Arduino UNO compatible pins on the NuMaker-M032BTAI. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M032BTAI provides the M032BTAIAAN onboard and extension connectors (JP3, JP4).
  • Page 12 NuMaker-M032BTAI M032BTAIAAN Header Pin No. Function JP3.1 RF_BUCK_OUT JP3.2 JP3.3 JP3.4 LDO_CAP JP3.5 PB.15 / ADC0_CH15 / USCI0_CTL1 / UART0_nCTS / UART3_TXD / PWM1_CH0 / TM0_EXT / JP3.6 PWM0_BRAKE1 JP3.7 PB.14 / ADC0_CH14 / USCI0_DAT1 / UART0_nRTS / UART3_RXD / PWM1_CH1 / TM1_EXT / CLKO PB.13 / ADC0_CH13 / ACMP0_P3 / ACMP1_P3 / USCI0_DAT0 / UART0_TXD / UART3_nRTS / JP3.8 PWM1_CH2 / TM2_EXT...
  • Page 13 NuMaker-M032BTAI M032BTAIAAN Header Pin No. Function JP3.27 RF_VDD JP3.28 RF_CLKO JP3.29 PA.8 / USCI0_CTL1 / UART1_RXD / BPWM0_CH3 / TM3_EXT / INT4 JP3.30 PC.13 / USCI0_CTL0 / UART2_TXD / BPWM0_CH4 / CLKO / ADC0_ST JP3.31 PF.14 / PWM1_BRAKE0 / PWM0_BRAKE0 / PWM0_CH4 / CLKO / TM3 JP3.32 PF.5 / UART2_RXD / UART2_nCTS / PWM0_CH0 / BPWM0_CH4 / X32_IN / ADC0_ST JP3.33...
  • Page 14: Table 3-2 M032Btaiaan Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M032BTAI M032BTAIAAN Header Pin No. Function JP4.24 RF_I/O JP4.25 JP4.26 RF_VDD JP4.27 RF_XTAL_IN JP4.28 RF_XTAL_OUT JP4.29 USB_VBUS JP4.30 USB_D- JP4.31 USB_D+ JP4.32 USB_VDD33_CAP JP4.33 RF_AVDD JP4.34 RF_BUCK_FB EPAD(V Table 3-2 M032BTAIAAN Full-pin Extension Connectors and GPIO Function List Apr. 19, 2022 Page 14 of 46 Rev 1.00...
  • Page 15: Arduino Uno Compatible Extension Connectors

    NuMaker-M032BTAI 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. MISO RESET PB.6 PB.8 nRESET PB.5 USCI1_DAT1 USCI1_CLK USCI1_CTL0 UART1_RXD PB.2 PB.1 ADC0_CH1 I2C1_SCL UART2_TXD UART1_TXD PB.3 PB.0 ADC0_CH0 I2C1_SDA UART2_RXD PWM0_CH0 PA.5 PB.11 ADC0_CH11 PWM0_CH1 PA.4...
  • Page 16: Table 3-3 Arduino Uno Extension Connectors And M032Btaiaan Mapping Gpio List

    NuMaker-M032BTAI NuMaker-M032BTAI NuMaker-M032BTAI Header Header Compatible to Compatible to GPIO Pin of M032BT GPIO Pin of M032BT Arduino UNO Arduino UNO NU5.1 MISO PB.6 NU5.2 NU5.3 PB.8 NU5.4 MOSI PB.7 NU5.5 RESET nRESET NU5.6 NU5.7 PB.5 NU5.8 PE.8 NU3.1 PB.2 NU2.6 PB.1 NU3.2...
  • Page 17: Power Supply Configuration

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

    NuMaker-M032BTAI 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 M032BTAI target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M032BTAI target board.
  • Page 19: Usb Connectors

    NuMaker-M032BTAI 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-M032BTAI for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches.
  • Page 20: Power Supply Models

    NuMaker-M032BTAI 3.4.8 Power Supply Models External Power Supply through Nu-Link2-Me to Target Chip The external power supply source on Nu-Link2-Me is shown in Figure 3-5. ICE USB Connector (ICEJ3) Nu-Link2-Me Figure 3-5 External Power Supply Sources on Nu-Link2-Me To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the steps below: 1.
  • Page 21: Figure 3-6 External Power Supply Sources On M032Btai Target Board

    NuMaker-M032BTAI External Power Supply through M032BTAI Target Board to Target Chip The external power supply sources on M032BTAI target board are shown in Figure 3-6. External V Connector (JP1) External V Connector (JP2) USB Power Connector (J2) NU1 pin8 (Vin) Figure 3-6 External Power Supply Sources on M032BTAI Target Board To use Vin or J2 as external power supply source, please follow the steps below: 1.
  • Page 22: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M032Btai

    NuMaker-M032BTAI External V Connector (JP1) " Detach Nu-Link2-Me External V Connector (JP2) USB Power Connector (J2) NU1 pin8 (Vin) Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M032BTAI Apr. 19, 2022 Page 22 of 46 Rev 1.00...
  • Page 23: Table 3-12 Supply External Power For M032Btai Target Board

    NuMaker-M032BTAI Table 3-12 presents all power models when supplies external power through M032BTAI target board. The M032BTAI 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 24: Ammeter Connector

    NuMaker-M032BTAI 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 3.6 Push Buttons Table 3-14 presents the push buttons.
  • Page 25: Leds

    NuMaker-M032BTAI 3.7 LEDs Table 3-15 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M032BTAI is powered. PF15 LED The LED is connected to the target chip PF.15. ICES0, ICES1, ICES2 and Nu-Link2-Me status LED. ICES3 Table 3-15 LEDs 3.8 HXT Clock Source Selection If PF.2 and PF.3 are configured as external clock pins or external crystal pins, user needs to switch the...
  • Page 26: Nu-Link2-Me

    NuMaker-M032BTAI 3.9 Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer. The Nu-Link2-Me supports on- chip debugging, online and offline ICP programming through SWD interface. The Nu-Link2-Me also supports virtual COM port (VCOM) for printing debug messages on PC. Besides, the programming status could be shown on the built-in LEDs.
  • Page 27: Status Leds

    NuMaker-M032BTAI 3.9.2 Status LEDs Table 3-15 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 Flash x 3 Flash x 3 Flash x 3...
  • Page 28: 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 29: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M032BTAI Figure 4-2 Nu-Link USB Driver Installation Apr. 19, 2022 Page 29 of 46 Rev 1.00...
  • Page 30: Bsp Firmware Download

    NuMaker-M032BTAI 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 31: Figure 4-5 Device Manger

    NuMaker-M032BTAI 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 32: Find The Example Project

    NuMaker-M032BTAI 4.5 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.  M031BSP-master  SampleCode  NuMaker-M03xBT   Demo  Peripheral  TRSP_UART_Peripheral ...
  • Page 33: Figure 4-9 Project File Migrate To Version 5 Format

    NuMaker-M032BTAI 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 34: Figure 4-11 Programming Setting In Options Window

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

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

    NuMaker-M032BTAI Figure 4-14 Debug Message on Serial Port Terminal Windows 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.
  • Page 37: Figure 4-16 Nuvotonble Icon

    NuMaker-M032BTAI Figure 4-16 NuvotonBLE Icon Andriod Figure 4-17 Turn on Bluetooth on Mobile Phone 7. After clicking "Scan", users can see many Bluetooth devices. Please click Nuvoton_TRSP_UART to connect. Figure 4-18 Connect to Nuvoton_TRSP_UART on Android Phone Apr. 19, 2022 Page 37 of 46 Rev 1.00...
  • Page 38: Figure 4-19 Connect To Nuvoton_Trsp_Uart On Iphone

    NuMaker-M032BTAI 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 M032BT through BLE, and finally sent to the PC through the M032BT UART and displayed on the terminal window.
  • Page 39: Figure 4-21 Transfer String From Iphone To M032Bt

    NuMaker-M032BTAI Figure 4-21 Transfer String from iPhone to M032BT 9. User can type a string in the terminal window and press enter “↵”, then the data can be transmitted from M032BT to the mobile phone through BLE, and finally displayed on the NuvotonBLE main screen.
  • Page 40: Figure 4-23 Transfer String From M032Bt To Iphone

    NuMaker-M032BTAI Type a string and press Enter “↵” Figure 4-23 Transfer String from M032BT to iPhone Apr. 19, 2022 Page 40 of 46 Rev 1.00...
  • Page 41: Numaker-M032Btai Schematics

    NuMaker-M032BTAI NUMAKER-M032BTAI 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 42: M032Btai Target Board

    NuMaker-M032BTAI 5.2 M032BTAI Target Board Figure 5-2 shows the M032BTAI target board circuit. P1 - P17 P35 - P51 RF_BUCK_OUT PF2_XT1_OUT PF2_XT1_OUT PE8_NU5_GPIO LDO_CAP LDO_CAP PC7_NU3_D6 VDD_1 VDD_MCU PC6_NU3_D7 PB15_NU4_D10/SS(GPIO) PA7_NU4_D8 PF.3/UART0_TXD/I2C0_SCL/XT1_IN/BPWM1_CH0 PF.4/UART2_TXD/UART2_nRTS/PWM0_CH1/BPWM0_CH5/X32_OUT PB14_NU4_D12/MISO PA6_NU4_D9 PB13_NU4_D11/MOSI PF.5/UART2_RXD/UART2_nCTS/PWM0_CH0/BPWM0_CH4/X32_IN/ADC0_ST VDD_2 PF.14/PWM1_BRAKE0/PWM0_BRAKE0/PWM0_CH4/CLKO/TM3 PB12_NU4_D13/CLK VDD_MCU PA5_NU3_D2 PC.13/USCI0_CTL0/UART2_TXD/BPWM0_CH4/CLKO/ADC0_ST...
  • Page 43: Figure 5-3 Extension Connectors Circuit

    NuMaker-M032BTAI 5.3 Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M032BTAI. P1 - P34 PC1_NU4_SCL I2C_SCL PC0_NU4_SDA I2C_SDA AVDD VREF TICERST PB12_NU4_D13/CLK MCU_RESET NU1_3VCC PB14_NU4_D12/MISO 3VCC LDO_CAP NU1_5VCC PB13_NU4_D11/MOSI 5VCC VDD_MCU PB15_NU4_D10/SS(GPIO) PB15_NU4_D10/SS(GPIO) PB14_NU4_D12/MISO PB13_NU4_D11/MOSI PA6_NU4_D9 PB12_NU4_D13/CLK NU1_VIN PA7_NU4_D8 AVDD AVSS PB11_NU2_A3 HEADER 2.54 8X1 f emale...
  • Page 44: Figure 5-4 Front Placement

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