Nuvoton NuMaker-M258KG User Manual

Nuvoton NuMaker-M258KG User Manual

For numicro m254/256/258
Table of Contents

Advertisement

Quick Links

NuMaker-M258KG
NuMicro
®
Family
Arm
®
Cortex
®
-M23-based Microcontroller
NuMaker-M258KG
User Manual
Evaluation Board for NuMicro
®
M254/256/258 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
Jan. 15, 2022
Page 1 of 54
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuMaker-M258KG

  • 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.12.2 Status LEDs ........................31 4 QUICK START ....................32 4.1 Toolchains Supporting ....................32 4.2 Nuvoton Nu-Link Driver Installation ................32 4.3 BSP Firmware Download ................... 34 4.4 Hardware Setup ......................34 4.5 Find the Example Project ................... 36 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M258KG 4.6.1 Keil MDK .......................... 36 4.6.2 IAR EWARM ........................40 4.6.3 NuEclipse ......................... 41 5 NUMAKER-M258KG SCHEMATICS ............. 48 5.1 Nu-Link2-Me ......................... 48 5.2 M258KG Target Board ....................49 5.3 Extension Connectors ....................50 5.4 Touch Key ........................51 5.5 PCB Placement ......................
  • Page 4 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............22 Figure 3-6 External Power Supply Sources on M258KG Target Board......... 23 Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M258KG ............24 Figure 3-8 Wiring between Ammeter Connector and Ammeter ............. 26 Figure 3-9 LCD Digit Mapping Table .....................
  • Page 5 NuMaker-M258KG Figure 4-27 Startup Tab Configuration ..................46 Figure 4-28 NuEclipse Debug Mode ....................47 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 47 Figure 5-1 Nu-Link2-Me Circuit ...................... 48 Figure 5-2 M258KG Target Board Circuit ..................49 Figure 5-3 Extension Connectors Circuit ..................
  • Page 6 NuMaker-M258KG List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M258KG6AE Full-pin Extension Connectors and GPIO Function List ......15 Table 3-3 NuMaker-TNLCDSub_M258K Extension Connectors and M258KG6AE Mapping GPIO List ............................17 Table 3-4 Arduino UNO Extension Connectors and M258KG6AE Mapping GPIO List ....19 Table 3-5 Vin Power Source ......................
  • Page 7: Overview

    COM/SEG LCD driver, USB 2.0 FS device and capacitive touch key sensing function. The NuMaker-M258KG consists of two parts: an M258KG target board and an on-board Nu- Link2-Me debugger and programmer. The NuMaker-M258KG is designed for project evaluation, prototype development and validation with power consumption monitoring function.
  • Page 8: Features

    NuMaker-M258KG FEATURES  NuMicro M258KG6AE used as main microcontroller with function compatible with: M258KG6AE – M258SG6AE – M258QG6AE –  M258KG6AE full pins extension connectors HTN-LCD panel board can be plugged into extension connectors –  Arduino UNO compatible extension connectors ...
  • Page 9: Hardware Configuration

    Connector M258KG6AE M258KG6AE Extension Connectors Figure 3-1 Front View of NuMaker-M258KG Figure 3-1 shows the main components and connectors from the front side of NuMaker-M258KG. The following lists components and connectors from the front view:  Target chip: M258KG6AE (U1) ...
  • Page 10: Rear View

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

    Arduino UNO compatible pins on the NuMaker-M258KG. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M258KG provides the M258KG6AE onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M258KG6AE extension connectors. Pin33 ~ Pin64...
  • Page 12 NuMaker-M258KG M258KG6AE Header Pin No. Function PB.5/EADC0_CH5/ACMP1_N/LCD_COM0/I2C0_SCL/SPI1_MISO/USCI1_CTL0/SC0_CLK/UART2 JP3.1 _TXD/TM0/INT0 PB.4/EADC0_CH4/ACMP1_P1/LCD_COM1/I2C0_SDA/SPI1_MOSI/USCI1_CTL1/SC0_DAT/UART JP3.2 2_RXD/TM1/INT1 PB.3/EADC0_CH3/ACMP0_N/I2C1_SCL/LCD_COM2/UART1_TXD/SPI1_CLK/USCI1_DAT1/SC0_ JP3.3 RST/TM2/INT2 PB.2/EADC0_CH2/ACMP0_P1/I2C1_SDA/LCD_COM3/UART1_RXD/SPI1_SS/USCI1_DAT0/SC0_ JP3.4 PWR/TM3/INT3 JP3.5 PC.12/UART0_TXD/I2C0_SCL/SC0_nCD/ACMP0_O JP3.6 PC.11/UART0_RXD/I2C0_SDA/ACMP1_O JP3.7 PC.10/LCD_SEG3/UART3_TXD JP3.8 PC.9/LCD_SEG2/UART3_RXD JP3.9 PB.1/EADC0_CH1/LCD_SEG1/SPI1_I2SMCLK/UART2_TXD/I2C1_SCL JP3.10 PB.0/EADC0_CH0/LCD_SEG0/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA JP3.11 JP3.12 JP3.13 PA.11/ACMP0_P0/USCI0_CLK/BPWM0_CH0/TM0_EXT/DAC1_ST JP3.14 PA.10/ACMP1_P0/USCI0_DAT0/BPWM0_CH1/TM1_EXT/DAC0_ST JP3.15 PA.9/USCI0_DAT1/UART1_TXD/BPWM0_CH2/TM2_EXT JP3.16 PA.8/USCI0_CTL1/UART1_RXD/BPWM0_CH3/TM3_EXT/INT4 JP3.17...
  • Page 13 NuMaker-M258KG M258KG6AE Header Pin No. Function JP5.1 JP5.2 JP5.3 JP5.4 JP5.5 PF.3/UART0_TXD/I2C0_SCL/XT1_IN/BPWM1_CH0 JP5.6 PF.2/UART0_RXD/I2C0_SDA/XT1_OUT/BPWM1_CH1 JP5.7 JP5.8 JP5.9 PE.8/LCD_SEG20/LCD_COM0/USCI1_CTL1 JP5.10 PE.9/LCD_SEG19/LCD_COM1/USCI1_CTL0/UART2_RXD JP5.11 PE.10/LCD_SEG18/LCD_COM2/USCI1_DAT0/UART3_TXD JP5.12 PE.11/LCD_SEG17/LCD_COM3/USCI1_DAT1/UART3_RXD/UART1_nCTS JP5.13 PE.12/USCI1_CLK/UART1_nRTS JP5.14 PE.13/I2C0_SCL/LCD_SEG41/LCD_COM6/UART1_TXD/BPWM1_CH5 JP5.15 PC.8/I2C0_SDA/LCD_SEG40/LCD_COM7/UART1_RXD/BPWM1_CH4 JP5.16 PC.7/SPI1_MISO/LCD_SEG39/TK_TK17/UART0_nCTS/I2C1_SMBAL/BPWM1_CH0/TM0/INT3 JP5.17 PC.6/SPI1_MOSI/LCD_SEG38/TK_TK18/UART0_nRTS/I2C1_SMBSUS/BPWM1_CH1/TM1/INT2 PA.7/SPI1_CLK/LCD_SEG37/TK_TK19/UART0_TXD/I2C1_SCL/BPWM1_CH2/ACMP0_WLAT/TM JP5.18 2/INT1 PA.6/SPI1_SS/LCD_SEG36/TK_TK20/UART0_RXD/I2C1_SDA/BPWM1_CH3/ACMP1_WLAT/TM3/ JP5.19 INT0 JP5.20...
  • Page 14 NuMaker-M258KG M258KG6AE Header Pin No. Function JP4.3 PD.9/UART2_nCTS/LCD_SEG33/TK_TK22 JP4.4 PD.8/UART2_nRTS/LCD_SEG32/TK_TK23 JP4.5 PC.5/LCD_SEG31/LCD_COM4/TK_TK9/UART2_TXD/I2C1_SCL JP4.6 PC.4/LCD_SEG30/LCD_COM5/TK_TK10/SPI1_I2SMCLK/UART2_RXD/I2C1_SDA JP4.7 PC.3/LCD_SEG29/LCD_COM6/TK_TK11/SPI1_MISO/UART2_nRTS/I2C0_SMBAL/UART3_TXD JP4.8 PC.2/LCD_SEG28/LCD_COM7/TK_TK12/SPI1_MOSI/UART2_nCTS/I2C0_SMBSUS/UART3_RXD JP4.9 PC.1/LCD_SEG27/LCD_COM2/TK_TK24/SPI1_CLK/UART2_TXD/I2C0_SCL/ACMP0_O JP4.10 PC.0/LCD_SEG26/LCD_COM3/TK_TK25/SPI1_SS/UART2_RXD/I2C0_SDA/ACMP1_O JP4.11 JP4.12 JP4.13 JP4.14 JP4.15 JP4.16 JP4.17 JP4.18 JP4.19 JP4.20 PD.7/UART1_TXD/I2C0_SCL/USCI1_CLK/TK_TK13/SPI1_MISO JP4.21 PD.6/UART1_RXD/I2C0_SDA/USCI1_DAT1/TK_TK14/SPI1_MOSI JP4.22 PD.5/I2C1_SCL/USCI1_DAT0/TK_TK15/SPI1_CLK JP4.23 PD.4/USCI0_CTL0/I2C1_SDA/USCI1_CTL1/TK_TK16/SPI1_SS JP4.24 PD.3/USCI0_CTL1/SPI0_SS/LCD_SEG25/USCI1_CTL0/TK_TK13/UART0_TXD/UART3_nRTS...
  • Page 15: Table 3-2 M258Kg6Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M258KG M258KG6AE Header Pin No. Function JP6.6 PE.2/SC0_CLK/USCI0_CLK/BPWM0_CH0 JP6.7 JP6.8 JP6.9 PE.1/SPI0_MISO0/UART3_TXD/I2C1_SCL JP6.10 PE.0/SPI1_MOSI/UART3_RXD/I2C1_SDA JP6.11 JP6.12 JP6.13 JP6.14 JP6.15 JP6.16 JP6.17 LDO_CAP JP6.18 JP6.19 PC.14/SPI0_I2SMCLK/USCI0_CTL0/LCD_SEG14/LCD_COM0/TM1 PB.15/EADC0_CH15/SPI0_SS/USCI0_CTL1/UART0_nCTS/UART3_TXD/LCD_SEG13/LCD_COM JP6.20 1/TM0_EXT PB.14/EADC0_CH14/SPI0_CLK/USCI0_DAT1/UART0_nRTS/UART3_RXD/LCD_SEG12/TM1_EXT JP6.21 /CLKO/TK_SE PB.13/EADC0_CH13/DAC1_OUT/ACMP0_P3/ACMP1_P3/SPI0_MISO/USCI0_DAT0/UART0_TXD/ JP6.22 UART3_nRTS/LCD_SEG11/TM2_EXT PB.12/EADC0_CH12/DAC0_OUT/ACMP0_P2/ACMP1_P2/SPI0_MOSI/USCI0_CLK/UART0_RXD/ JP6.23 UART3_nCTS/LCD_SEG10/TM3_EXT JP6.24 JP6.25 JP6.26 JP6.27...
  • Page 16: 3.3.2 Numaker-Tnlcdsub_M258K Compatible Extension Connectors

    NuMaker-M258KG 3.3.2 NuMaker-TNLCDSub_M258K Compatible Extension Connectors Table 3-3 shows the NuMaker-TNLCDSub_M258K compatible extension connectors. NuMaker-M258KG NuMaker-TNLCDSUB_M258K Header Pin No. Function Function JP3.1 LCD_COM0 LCD_COM0 JP3.2 LCD_COM1 LCD_COM1 JP3.3 LCD_COM2 LCD_COM2 JP3.4 LCD_COM3 LCD_COM3 JP3.7 LCD_SEG3 LCD_SEG3 JP3.8 LCD_SEG2 LCD_SEG2 JP3.9...
  • Page 17: Table 3-3 Numaker-Tnlcdsub_M258K Extension Connectors And M258Kg6Ae Mapping Gpio List

    NuMaker-M258KG JP4.9 LCD_SEG27 LCD_SEG27 JP4.10 LCD_SEG26 LCD_SEG26 JP4.24 LCD_SEG25 LCD_SEG25 JP4.25 LCD_SEG24 LCD_SEG24 JP4.26 LCD_SEG23 LCD_SEG23 JP4.27 LCD_SEG22 LCD_SEG22 JP4.28 LCD_SEG21 LCD_SEG21 JP6.1 LCD_SEG16 LCD_SEG16 JP6.2 LCD_SEG15 LCD_SEG15 JP6.19 LCD_SEG14 LCD_SEG14 JP6.20 LCD_SEG13 LCD_SEG13 JP6.21 LCD_SEG12 LCD_SEG12 JP6.22 LCD_SEG11 LCD_SEG11 JP6.23...
  • Page 18: 3.3.3 Arduino Uno Compatible Extension Connectors

    NuMaker-M258KG 3.3.3 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. MISO RESET PA.9 PA.11 nRESET PA.8 USCI0_DAT1 USCI0_CLK UART1_RXD PB.2 UART1_TXD PB.3 I2C1_SDA PC.4 I2C1_SCL PC.5 PC.3 PC.2 PA.7 PA.6 BPWM0_CH5 PA.5 BPWM0_CH4 PA.4...
  • Page 19: Table 3-4 Arduino Uno Extension Connectors And M258Kg6Ae Mapping Gpio List

    NuMaker-M258KG NuMaker-M258KG NuMaker-M258KG Header Header Compatible to Compatible to GPIO Pin of M258 GPIO Pin of M258 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...
  • Page 20: Power Supply Configuration

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

    3.4.5 Power Connectors Table 3-9 presents the power connectors. Connector Description connector on the NuMaker-M258KG. Note: M258 operating voltage range is from 1.75 V to 5.5 V. connector on the NuMaker-M258KG. Table 3-9 Power Connectors Jan. 15, 2022 Page 21 of 54...
  • Page 22: Usb Connectors

    Table 3-10 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-M258KG for power supply. Table 3-10 USB Connectors 3.4.7 Power Switches Table 3-11 presents the power switches. Switch...
  • Page 23: Figure 3-6 External Power Supply Sources On M258Kg Target Board

    NuMaker-M258KG Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. Switch the SW2 to OFF. Connect the external power supply to ICEJ3. Table 3-12 presents all power models when supplying external power through Nu-Link2-Me. The Nu- Link2-Me external power sources are highlighted in yellow.
  • Page 24: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M258Kg

    Switch the SW2 depending on the target chip operating voltage. Detach the Nu-Link2-Me from NuMaker-M258KG. Connect the external power supply to Vin or J2. To use JP1 as external power supply source with Nu-Link2-Me detached from NuMaker-M258KG, please follow the steps below: Switch the SW2 to OFF.
  • Page 25: Table 3-13 Supply External Power For M258Kg Target Board

    NuMaker-M258KG Table 3-13 presents all power models when supplies external power through M258KG target board. The M258KG target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection...
  • Page 26: External Reference Voltage Connector

    NuMaker-M258KG 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-14 External Reference Voltage Connector...
  • Page 27: Push Buttons

    NuMaker-M258KG Connector Description TK14 Touch key. TK16 Shielding electrode. TK13 Reference pad. Table 3-17 Touch Key Push Buttons Table 3-18 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.
  • Page 28: 3.10 Leds

    Table 3-19 LEDs 3.11 LCD Panel The LCD on the NuMaker-M258KG with 8 x 40 COM/SEG can be used to show some information such as time, battery status, temperature, and humidity. The part number of LCD panel is RHE6616TP01 made by TRICOMTEK. Figure 3-9 shows the LCD digit segment mapping table. Table 3-21 shows the pin map for the LCD.
  • Page 29: Table 3-20 Lcd Specifications

    NuMaker-M258KG 100 ± 0.2 mm x 64 ± 0.2 mm Dimension Connectors Table 3-20 LCD Specifications COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8 COM1 COM1 COM2 COM2 COM3 COM3 COM4 COM4 COM5 COM5 COM6 COM6 COM7 COM7 COM8 COM8...
  • Page 30: 3.12 Nu-Link2-Me

    NuMaker-M258KG COM2 COM3 COM4 COM5 COM6 COM7 COM8 Table 3-21 LCD Pin Mapping Table 3.12 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.
  • Page 31: Status Leds

    NuMaker-M258KG 3.12.2 Status LEDs Table 3-23 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 32: 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 33: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M258KG Figure 4-2 Nu-Link USB Driver Installation Jan. 15, 2022 Page 33 of 54 Rev 1.00...
  • Page 34: Bsp Firmware Download

    NuMaker-M258KG 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 35: Figure 4-5 Device Manger

    NuMaker-M258KG 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 36: Find The Example Project

    NuMaker-M258KG 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.  M251_M252_M254_M256_M258_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 37: 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. Jan. 15, 2022 Page 37 of 54 Rev 1.00...
  • Page 38: Figure 4-11 Programming Setting In Options Window

    NuMaker-M258KG 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 Jan.
  • Page 39: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M258KG 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 40: Iar Ewarm

    NuMaker-M258KG 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 41: Nueclipse

    NuMaker-M258KG 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 42: Figure 4-19 Import The Project In Nueclipse

    NuMaker-M258KG Figure 4-19 Import the Project in NuEclipse M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template\GCC) Figure 4-20 Import Projects Windows 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.
  • Page 43: Figure 4-21 Open Project Properties Window

    NuMaker-M258KG Figure 4-21 Open Project Properties Window Figure 4-22 Project Properties Settings Click the “Template” project and build the project. Jan. 15, 2022 Page 43 of 54 Rev 1.00...
  • Page 44: Figure 4-23 Build Project

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

    NuMaker-M258KG 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 Jan.
  • Page 46: Figure 4-27 Startup Tab Configuration

    NuMaker-M258KG Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration Jan. 15, 2022 Page 46 of 54 Rev 1.00...
  • Page 47: Figure 4-28 Nueclipse Debug Mode

    NuMaker-M258KG 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 48: Numaker-M258Kg Schematics

    NuMaker-M258KG NUMAKER-M258KG 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 TICEDAT SWDH_CLK TICECLK SWDH_RST# TICERST ICE_RX_S...
  • Page 49: M258Kg Target Board

    NuMaker-M258KG M258KG Target Board Figure 5-2 shows the M258KG target board circuit. P1 - P32 P65 - P96 PF0_ICE_DAT PB5_NU2_A2 TICEDAT PF1_ICE_CLK PB4_NU2_A3 TICECLK PB3_NU3_D1/TX PB2_NU3_D0/RX PC12 PC5_NU3_D3 PC11 PC4_NU3_D2 PC10 PC3_NU3_D4 PC2_NU3_D5 nRESET PB1_NU2_A5/TX PC1_NU4_SCL PE.15/UART2_RXD/TK_TK21 PB0_NU2_A4/RX PC0_NU4_SDA PE.14/UART2_TXD/LCD_SEG34/TK_TK8...
  • Page 50: Extension Connectors

    NuMaker-M258KG Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M258KG. P1 - P32 P65 - P96 PB5_NU2_A2 PB4_NU2_A3 TICEDAT TICECLK PB3_NU3_D1/TX PB2_NU3_D0/RX PC12 PC11 PC5_NU3_D3 PC4_NU3_D2 PC10 PC3_NU3_D4 PC2_NU3_D5 PC1_NU4_SCL I2C_SCL PB1_NU2_A5/TX PB0_NU2_A4/RX PC1_NU4_SCL PC0_NU4_SDA PC0_NU4_SDA I2C_SDA VDD_MCU VDD_MCU VREF...
  • Page 51: Touch Key

    NuMaker-M258KG Touch Key Figure 5-4 shows touch key of NuMaker-M258KG. TK13 PD7_TK13 TK14 PD6_TK14 TK16 PD4_TK16 Touch Keys offpage TK13 TK13 CTKey 0.8x08 (NC) REF (NC) TK14 Touch Key reference PCB Touch Keys TOP SHILED TK16 SHILEDING1 Top Layer Shielding...
  • Page 52: Pcb Placement

    NuMaker-M258KG PCB Placement Figure 5-5 and Figure 5-6 show the front and rear placement of NuMaker-M258KG. Figure 5-5 Front Placement Figure 5-6 Rear Placement Jan. 15, 2022 Page 52 of 54 Rev 1.00...
  • Page 53: Revision History

    NuMaker-M258KG REVISION HISTORY Date Revision Description  2022.1.15 1.00 Initial version Jan. 15, 2022 Page 53 of 54 Rev 1.00...
  • Page 54 NuMaker-M258KG 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