Nuvoton NuMicro M23 Series User Manual

Nuvoton NuMicro M23 Series User Manual

Arm cortex-m 32-bit
Table of Contents

Advertisement

Quick Links

NuMaker-M2351SF
®
®
ARM
Cortex
-M
32-bit Microcontroller
NuMaker-M2351SF
User Manual
®
NuMicro
M23 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
Sep.
24, 2019
Page 1 of 35
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Nuvoton NuMicro M23 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

    2.5.13 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 ..................... 27 3.6.1...
  • Page 3 NuMaker-M2351SF M2351SF platform ................32 Extension Connector ................33 REVISION HISTORY ..............34 Sep. 24, 2019 Page 3 of 35 Rev 1.00...
  • Page 4 NuMaker-M2351SF List of Figures Figure 1-1 NuMaker-M2351SF Board ....................6 Figure 2-1 Front View of NuMaker-M2351SF .................. 8 Figure 2-2 Rear View of NuMaker-M2351SF ................... 9 Figure 2-3 Arduino UNO Compatible Extension Connectors ............10 Figure 2-4 M2351SFSIAAP Extension Connectors ............... 12 Figure 2-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-M2351SF List of Tables Table 2-1 Arduino UNO Extension Connectors and M2351SFSIAAP Mapping GPIO List ... 11 Table 2-2 M2351SFSIAAP 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-M2351SF OVERVIEW This user manual is aimed to give users a fast introduction to the use of NuMaker-M2351SF board. The NuMaker-M2351SF consists of two parts, a M2351SF platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M2351SF allows users to quickly develop and easily program and debug application.
  • Page 7 NuMaker-M2351SF  Debug through SWD interface  On-line/off-line programming  Virtual COM port function Sep. 24, 2019 Page 7 of 35 Rev 1.00...
  • Page 8: Numaker-M2351Sf Overview

    NuMaker-M2351SF NUMAKER-M2351SF OVERVIEW Front View Figure 2-1 Front View of NuMaker-M2351SF Figure 2-1 shows the main components and connectors from the front side of NuMaker-M2351SF. The following lists components and connectors from the front view:  Target Chip: M2351SFSIAAP(U1)  USB FS Connector(J2) ...
  • Page 9: Rear View

    NuMaker-M2351SF Rear View Figure 2-2 shows the main components and connectors from the rear side of NuMaker-M2351SF. The following lists components and connectors from the rear view:  Nu-Link2-Me  MCUVCC Power Switch (ICEJPR1)  ICEVCC Power Switch (ICEJPR2) Figure 2-2 Rear View of NuMaker-M2351SF Sep.
  • Page 10: Arduino Uno Compatible Extension Connectors

    NuMaker-M2351SF Arduino UNO Compatible Extension Connectors Figure 2-3 shows the Arduino UNO compatible extension connectors. Figure 2-3 Arduino UNO Compatible Extension Connectors Sep. 24, 2019 Page 10 of 35 Rev 1.00...
  • Page 11: Table 2-1 Arduino Uno Extension Connectors And M2351Sfsiaap Mapping Gpio List

    NuMaker-M2351SF NuMaker-M2351SFSIAAP NuMaker-M2351SFSIAAP Header Header Compatible to Compatible to GPIO Pin of M2351SF GPIO Pin of M2351SF 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-M2351SF Pin Assignment for Extension Connectors The NuMaker-M2351SF provides the M2351SFSIAAP target chip onboard and full pins extension connectors (JP3, JP4, JP5 and JP6). The Figure 2-4 shows the M2351SFSIAAP extension connectors. Figure 2-4 M2351SFSIAAP Extension Connectors Sep. 24, 2019 Page 12 of 35 Rev 1.00...
  • Page 13 NuMaker-M2351SF M2351SFSIAAP Header Pin No. Function PB.6/EADC0_CH6/EBI_nWRH/USCI1_DAT1/UART1_RXD/EBI_nCS1/BPWM1_CH5/EP JP3.1 JP3.2 WM1_BRAKE1/EPWM1_CH5/INT4/USB_VBUS_EN/ACMP1_O PB.5/EADC0_CH5/ACMP1_N/EBI_ADR0/SD0_DAT3/SPI1_MISO/I2C0_SCL/UART5_TX JP3.3 JP3.4 D/USCI1_CTL0/SC0_CLK/I2S0_BCLK/EPWM0_CH0/TM0/INT0 PB.4/EADC0_CH4/ACMP1_P1/EBI_ADR1/SD0_DAT2/SPI1_MOSI/I2C0_SDA/UART5_R JP3.5 JP3.6 XD/USCI1_CTL1/SC0_DAT/I2S0_MCLK/EPWM0_CH1/TM1/INT1 PB.3/EADC0_CH3/ACMP0_N/EBI_ADR2/SD0_DAT1/SPI1_CLK/UART1_TXD/UART5_n JP3.7 JP3.8 RTS/USCI1_DAT1/SC0_RST/I2S0_DI/EPWM0_CH2/TM2/INT2 PB.2/EADC0_CH2/ACMP0_P1/EBI_ADR3/SD0_DAT0/SPI1_SS/UART1_RXD/UART5_n JP3.9 JP3.10 CTS/USCI1_DAT0/SC0_PWR/I2S0_DO/EPWM0_CH3/TM3/INT3 PB.1/EADC0_CH1/EBI_ADR8/SD0_CLK/SPI1_I2SMCLK/SPI3_I2SMCLK/UART2_TXD/ JP3.11 JP3.12 USCI1_CLK/I2C1_SCL/I2S0_LRCK/EPWM0_CH4/EPWM1_CH4/EPWM0_BRAKE0 PB.0/EADC0_CH0/EBI_ADR9/SD0_CMD/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/EPW JP3.13 JP3.14 M0_CH5/EPWM1_CH5/EPWM0_BRAKE1 PA.11/ACMP0_P0/EBI_nRD/SC2_PWR/SPI2_SS/USCI0_CLK/I2C2_SCL/BPWM0_CH0/ JP3.15 JP3.16 EPWM0_SYNC_OUT/TM0_EXT/DAC1_ST PA.10/ACMP1_P0/EBI_nWR/SC2_RST/SPI2_CLK/USCI0_DAT0/I2C2_SDA/BPWM0_C JP3.17 JP3.18 H1/QEI1_INDEX/ECAP0_IC0/TM1_EXT/DAC0_ST PA.9/EBI_MCLK/SC2_DAT/SPI2_MISO/USCI0_DAT1/UART1_TXD/BPWM0_CH2/QEI1_...
  • Page 14: Table 2-2 M2351Sfsiaap Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M2351SF JP4.3 JP4.4 PF.1/ICE_CLK PC.5/EBI_AD5/QSPI0_MISO1/UART2_TXD/I2C1_SCL/CAN0_TXD/UART4_TXD/EPWM JP4.5 JP4.6 1_CH0 PC.4/EBI_AD4/QSPI0_MOSI1/SC1_nCD/I2S0_BCLK/SPI1_I2SMCLK/UART2_RXD/I2C1 JP4.7 JP4.8 _SDA/CAN0_RXD/UART4_RXD/EPWM1_CH1 PC.3/EBI_AD3/QSPI0_SS/SC1_PWR/I2S0_MCLK/SPI1_MISO/UART2_nRTS/I2C0_SM JP4.9 JP4.10 BAL/UART3_TXD/EPWM1_CH2 PC.2/EBI_AD2/QSPI0_CLK/SC1_RST/I2S0_DI/SPI1_MOSI/UART2_nCTS/I2C0_SMBSU JP4.11 JP4.12 S/UART3_RXD/EPWM1_CH3 PC.1/EBI_AD1/QSPI0_MISO0/SC1_DAT/I2S0_DO/SPI1_CLK/UART2_TXD/I2C0_SCL/E JP4.13 JP4.14 PWM1_CH4/ACMP0_O PC.0/EBI_AD0/QSPI0_MOSI0/SC1_CLK/I2S0_LRCK/SPI1_SS/UART2_RXD/I2C0_SDA/ JP4.15 JP4.16 EPWM1_CH5/ACMP1_O PD.3/EBI_AD10/USCI0_CTL1/SPI0_SS/UART3_nRTS/USCI1_CTL0/SC2_PWR/SC1_nC JP4.17 JP4.18 D/UART0_TXD JP4.19 JP4.20 PD.2/EBI_AD11/USCI0_DAT1/SPI0_CLK/UART3_nCTS/SC2_RST/UART0_RXD JP4.21 JP4.22 PD.1/EBI_AD12/USCI0_DAT0/SPI0_MISO/UART3_TXD/I2C2_SCL/SC2_DAT JP4.23 JP4.24 PD.0/EBI_AD13/USCI0_CLK/SPI0_MOSI/UART3_RXD/I2C2_SDA/SC2_CLK/TM2 JP4.25 JP4.26...
  • Page 15: System Configuration

    NuMaker-M2351SF 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-M2351SF 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 M2351SF platform or ICE chip. UP3 converts NU1_5VCC to 1.8V and supplies 1.8V to NU1_5VCC internal SPI flash.
  • Page 17: Power Supply Models

    NuMaker-M2351SF 2.5.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 2-5. 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 M2351Sf Platform

    NuMaker-M2351SF External Power Supply through M2351SF platform to Target Chip The external power supply sources on M2351SF platform are shown in Figure 2-6. Figure 2-6 External Power Supply Sources on M2351SF 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-M2351Sf

    NuMaker-M2351SF Figure 2-7 Separate the Nu-Link2-Me from NuMaker-M2351SF Table 2-11 presents all power models when supplies external power through M2351SF platform. The M2351SF platform external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection...
  • Page 20: External Reference Voltage Connector

    NuMaker-M2351SF 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-M2351SF 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-M2351SF is powered.
  • Page 22: Pcb Placement

    NuMaker-M2351SF PCB Placement Figure 2-9 and Figure 2-10 show the front and rear placement of NuMaker-M2351SF. Figure 2-9 Front Placement Figure 2-10 Rear Placement Sep. 24, 2019 Page 22 of 35 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-M2351SF Figure 3-2 Nu-Link USB Driver Installation Sep. 24, 2019 Page 24 of 35 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. Sep. 24, 2019 Page 25 of 35 Rev 1.00...
  • Page 26: Figure 3-5 Device Manger

    NuMaker-M2351SF 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 Sep. 24, 2019 Page 26 of 35 Rev 1.00...
  • Page 27: Find The Example Project

    NuMaker-M2351SF 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.  M2351_Series_BSP_CMSIS_V3.XX.XXX  SampleCode  NuMaker_M2353  SecureFlashDemo  Keil Figure 3-7 SecureFlashDemo 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-M2351SF 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. Sep. 24, 2019 Page 29 of 35 Rev 1.00...
  • Page 30: Figure 3-12 Compile And Download The Project

    NuMaker-M2351SF Figure 3-12 Compile and Download the Project 4. Figure 3-13 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 3-14. User can debug the project under debug mode by checking source code, assembly language, peripherals’...
  • Page 31: Numaker-M2351Sf Schematics

    NuMaker-M2351SF NUMAKER-M2351SF 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 32: Figure 4-2 M2351 Platform Circuit

    NuMaker-M2351SF M2351SF platform Figure 4-2 shows the M2351SF 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 PD3_NU4_D10/SS PA9_NU5_MISO PD2_NU4_D13/CLK PA8_NU5_SS PD1_NU4_D12/MISO PD0_NU4_D11/MOSI VBAT USB_VBUS...
  • Page 33: Figure 4-3 Extension Connectors Circuit

    NuMaker-M2351SF Extension Connector Figure 4-3 shows extension connectors of NuMaker-M2351SF. P1 - P32 P65 - P96 PB6_NU2_A1 TICEDAT PC1_NU4_SCL I2C_SCL PB5_NU2_A2 TICECLK PC0_NU4_SDA I2C_SDA PB4_NU2_A3 PC5_NU3_D3 VREF VREF PB3_NU3_D1/TX PC4_NU3_D2 MCUVCC_DIODE PB2_NU3_D0/RX PC3_NU3_D4 TICERST PD2_NU4_D13/CLK MCU_RESET PB1_NU2_A5/SCL/TX PC2_NU3_D5 NU1_3VCC PD1_NU4_D12/MISO 3VCC PB0_NU2_A4/SDA/RX PC1_NU4_SCL...
  • Page 34: Revision History

    NuMaker-M2351SF REVISION HISTORY Date Revision Description 2019.10.07 1.00 Initially issued. Sep. 24, 2019 Page 34 of 35 Rev 1.00...
  • Page 35 NuMaker-M2351SF 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:

Numaker-m2351sf

Table of Contents