Nuvoton NuMaker-M029GGC User Manual

Nuvoton NuMaker-M029GGC User Manual

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

Advertisement

Quick Links

NuMaker-M029GGC
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-M029GGC
User Manual
Evaluation Board for NuMicro
®
M029G 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
Nov. 17, 2022
Page 1 of 45
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Nuvoton NuMaker-M029GGC

  • 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 ........................23 4 QUICK START ....................24 4.1 Toolchains Supporting ....................24 4.2 Nuvoton Nu-Link Driver Installation ................24 4.3 BSP Firmware Download ................... 26 4.4 Hardware Setup ......................26 4.5 Find the Example Project ................... 28 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M029GGC 5.2 M029GGC Target Board ..................... 41 5.3 Extension Connectors ....................42 5.4 PCB Placement ......................43 6 REVISION HISTORY ..................44 Nov. 17, 2022 Page 3 of 45 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 M029GGC Target Board ........19 Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M029GGC ............ 20 Figure 3-8 Wiring between Ammeter Connector and Ammeter ............. 21 Figure 4-1 Nu-Link USB Driver Installation Setup ................
  • Page 5 NuMaker-M029GGC Figure 4-28 NuEclipse Debug Mode ....................39 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 39 Figure 5-1 Nu-Link2-Me Circuit ...................... 40 Figure 5-2 M029GGC Target Board Circuit ................... 41 Figure 5-3 Extension Connectors Circuit ..................42 Figure 5-4 Front Placement ......................
  • Page 6 NuMaker-M029GGC List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M029GCC0AE Full-pin Extension Connectors and GPIO Function List ....... 12 Table 3-3 Arduino UNO Extension Connectors and M029GGC0AE Mapping GPIO List ..... 14 Table 3-4 Vin Power Source ......................15 Table 3-5 5 V Power Sources ......................
  • Page 7: Overview

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

    NuMaker-M029GGC FEATURES  NuMicro M029GGC0AE used as main microcontroller with function compatible with: M029GGC0AE –  M029GGC0AE full pins extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  Flexible board power supply:...
  • Page 9: Hardware Configuration

    NuMaker-M029GGC HARDWARE CONFIGURATION Front View Figure 3-1 Front View of NuMaker-M029GGC Figure 3-1 shows the main components and connectors from the front side of NuMaker-M029GGC. The following lists components and connectors from the front view:  Target chip: M029GGC0AE (U1) ...
  • Page 10: Rear View

    NuMaker-M029GGC Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M029GGC. The following lists components and connectors from the rear view:  Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – Figure 3-2 Rear View of NuMaker-M029GGC Nov.
  • Page 11: Extension Connectors

    Arduino UNO compatible pins on the NuMaker-M029GGC. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M029GGC provides the M029GGC0AE onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M029GGC0AE extension connectors. Figure 3-3 M029GGC0AE Extension Connectors Nov.
  • Page 12: 3.3.2 Arduino Uno Compatible Extension Connectors

    NuMaker-M029GGC M029GGC0AE Header Pin No. Function JP3.1 PB.0 / ADC0_CH0 / I C1_SDA JP3.2 JP3.3 JP3.4 JP3.5 nRESET/ICE_CLK JP3.6 PF.0 / ICE_DAT JP3.7 PA.3 / DAC3_OUT / SPI0_SS / I C0_SMBAL / I C1_SCL / BPWM1_CH3 / CLKO / BPWM1_CH5 JP3.8...
  • Page 13: Figure 3-4 Arduino Uno Compatible Extension Connectors

    NuMaker-M029GGC Figure 3-4 Arduino UNO Compatible Extension Connectors Nov. 17, 2022 Page 13 of 45 Rev 1.00...
  • Page 14: Table 3-3 Arduino Uno Extension Connectors And M029Ggc0Ae Mapping Gpio List

    NuMaker-M029GGC NuMaker-M029GGC NuMaker-M029GGC Header Header Compatible to Compatible to GPIO Pin of M029 GPIO Pin of M029 Arduino UNO Arduino UNO NU3.1 PF.2 NU2.6 PB.0 NU3.2 PF.3 NU2.5 PB.1 NU3.3 PB.6 NU2.4 PB.2 NU3.4 PB.7 NU2.3 PB.3 NU3.5 PC.1 NU2.2 NU3.6...
  • Page 15: Power Supply Configuration

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

    3.4.5 Power Connectors Table 3-8 presents the power connectors. Connector Description connector on the NuMaker-M029GGC. Note: M029 operating voltage range is from 2.5 V to 3.6 V. connector on the NuMaker-M029GGC. Table 3-8 Power Connectors Nov. 17, 2022 Page 16 of 45...
  • Page 17: 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-M029GGC 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 18: Power Supply Models

    NuMaker-M029GGC 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. 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: Solder the resistor on ICEJPR1 (MCUVCC) depending on the target chip operating voltage.
  • Page 19: Figure 3-6 External Power Supply Sources On M029Ggc Target Board

    Switch the SW2 depending on the target chip operating voltage. Detach the Nu-Link2-Me from NuMaker-M029GGC. Connect the external power supply to Vin or J2. To use JP1 as external power supply source with Nu-Link2-Me detached from NuMaker-M029GGC, please follow the steps below: Switch the SW2 to OFF.
  • Page 20: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M029Ggc

    NuMaker-M029GGC Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M029GGC Table 3-12 presents all power models when supplies external power through M029GGC target board. The M029GGC target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model...
  • Page 21: External Reference Voltage Connector

    NuMaker-M029GGC 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 22: Leds

    NuMaker-M029GGC LEDs Table 3-16 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M029GGC is powered. PC1 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 23: Status Leds

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

    NuMaker-M029GGC Figure 4-2 Nu-Link USB Driver Installation Nov. 17, 2022 Page 25 of 45 Rev 1.00...
  • Page 26: Bsp Firmware Download

    NuMaker-M029GGC 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 27: Figure 4-5 Device Manger

    NuMaker-M029GGC 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 28: Find The Example Project

    NuMaker-M029GGC 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.  M029G_M030G_M031G _Series_BSP_CMSIS_V3.XX.XXX  SampleCode  Template   Keil  Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 29: 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. Nov. 17, 2022 Page 29 of 45 Rev 1.00...
  • Page 30: Figure 4-11 Programming Setting In Options Window

    NuMaker-M029GGC 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 Nov.
  • Page 31: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M029GGC 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 32: Iar Ewarm

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

    NuMaker-M029GGC 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 34: Nueclipse

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

    NuMaker-M029GGC 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 Nov. 17, 2022 Page 35 of 45 Rev 1.00...
  • Page 36: Figure 4-23 Build Project

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

    NuMaker-M029GGC 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 Nov.
  • Page 38: Figure 4-27 Startup Tab Configuration

    NuMaker-M029GGC Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration Nov. 17, 2022 Page 38 of 45 Rev 1.00...
  • Page 39: Figure 4-28 Nueclipse Debug Mode

    NuMaker-M029GGC 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 40: Numaker-M029Ggc Schematics

    NuMaker-M029GGC NUMAKER-M029GGC 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 PF0/ICE_DAT SWDH_CLK nRESET/ICE_CLK ICE_RX_S MCU_TX ICE_TX_S...
  • Page 41: M029Ggc Target Board

    NuMaker-M029GGC M029GGC Target Board Figure 5-2 shows the M029GGC target board circuit. P1 - P12 P13 - P24 HEADER 2.54 5X2 (NC) 100KR 100KR HEADER5X2 PB0_NU2_A5 PF3_NU3_D1 R0603 R0603 VREF VREF PF2_NU3_D0 PF0/ICE_DAT nRESET/ICE_CLK VDD_MCU PB8_NU3_D5 PB11_TXD0 nRESET/ICE_CLK nRESET/ICE_CLK PB7_NU3_D3...
  • Page 42: Extension Connectors

    NuMaker-M029GGC Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M029GGC. P1 - P12 PB5_NU4_SCL0 I2C_SCL PB4_NU4_SDA0 I2C_SDA VDD_MCU VREF nRESET/ICE_CLK PA2_NU4_D13 MCU_RESET HEADER12x2/2.54 (NC) NU1_3VCC PA1_NU4_D12 3VCC HEADER12x2 NU1_5VCC PA0_NU4_D11 5VCC PB0_NU2_A5 PA3_NU4_D10 VREF NU1_VIN PF0/ICE_DAT VDD_MCU HEADER 2.54 8X1 f emale HEADER 2.54 10X1 f emale...
  • Page 43: Pcb Placement

    NuMaker-M029GGC PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M029GGC. Figure 5-4 Front Placement Figure 5-5 Rear Placement Nov. 17, 2022 Page 43 of 45 Rev 1.00...
  • Page 44: Revision History

    NuMaker-M029GGC REVISION HISTORY Date Revision Description  Initial version 2022.11.17 1.00 Nov. 17, 2022 Page 44 of 45 Rev 1.00...
  • Page 45 NuMaker-M029GGC 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