Summary of Contents for Nuvoton NuMicro NuTiny-SDK-M031TC
Page 1
NuTiny-SDK-M031TC User Manual 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.
How to Start NuTiny-SDK-M031TC on the Keil μVision IDE Software Download and Install ..........12 ® Keil uVision Nuvoton Nu-Link Driver Download and Install ........... 12 Hardware Setup ..................12 Example Program ..................13 How to Start NuTiny -SDK-M031 on the IAR Embedded Workbench ....14 IAR Embedded Workbench Software Download and Install ........
Page 3
M031/M032 NuTiny-SDK-M031TC Schematic ..............22 GPIO for 33 pin Schematic ................23 Nu-Link2-Me V3.0 Schematic ......Error! Bookmark not defined. REVISION HISTORY ................25 Jan 28, 2019 Page 3 of 26 Rev 1.00...
Thus, user does not need other additional ICE or debug equipment. ® ® ® ® The Nuvoton Cortex -M0 NuMicro M031/M032 series MCU features 1.8 ~ 3.6V operating voltage, running up to 48 MHz, and provides a good solution for the applications that need low- voltage interface connection operation.
® ® Keil, please refer to “Nuvoton NuMicro IAR ICE driver user manual “or Nuvoton NuMicro Keil ICE driver user manual” in detail. These two documents will be stored in the local hard disk when the user installs each driver. To use Nu-Link2-Me VCOM function, please refer to Chapter 5.
M031 series is 1.8V~3.3V. 2.1.2 Debug Connector J1: Connector in target board (NuTiny-SD K-M031TC) for connecting with Nuvoton ICE adaptor (Nu-Link2-Me) ICEJ4: Connector in ICE adaptor (Nu-Link2-Me) for connecting with a target board (for example NuTiny-SDK-M031TC) 2.1.3...
ICESW2: VCOM function enable for NuTiny-SDK-M031TC. Switch ICESW2 on before power on to enable VCOM function. ICESW2 connects pin 31(PB.12/RXD) and pin 30(PB.13/TXD) in NuTiny-SDK-M031TC with pin 22(PB.1/TXD) and pin 21(PB.0/RXD) in Nuvoton ICE adaptor (Nu-Link2-Me). Jan 28, 2019 Page 7 of 26...
Page 8
M031/M032 Switch Pin Function Name UART0 Mode VCOM Mode ICESW2 Number ICE_TX/MCU_RX ICE_RX/MCU_TX X: Unused. Jan 28, 2019 Page 8 of 26 Rev 1.00...
M031/M032 Pin Assignment for Extended Connector NuTiny-SDK-M031TC provides M031TC1AE on board and the extended connector (JP3, JP4, JP5 and JP6) for QFN-33 pin. Table 2-1 is the pin assignment for M031TC1AE. Pin No Pin Function PB.5/ADC0_CH5/I2C0_SCL/PWM0_CH0/UART2_TXD/TM0/INT0 PB.4/ADC0_CH4/I2C0_SDA/PWM0_CH1/UART2_RXD/TM1/INT1 PB.3/ADC0_CH3/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE0/TM2/INT2 PB.2/ADC0_CH2/I2C1_SDA/UART1_RXD/PWM0_CH3/TM3/INT3 PB.1/ADC0_CH1/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM0_BRAKE0 PB.0/ADC0_CH0/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/PWM0_CH5/PWM0_BRAKE1 PF.5/UART2_RXD/UART2_nCTS/PWM0_CH0/X32_IN/ADC0_ST PF.4/UART2_TXD/UART2_nRTS/PWM0_CH1/X32_OUT...
Page 10
M031/M032 PB.13/ADC0_CH13/SPI0_MISO/UART0_TXD/TM2_EXT PB.12/ADC0_CH12/SPI0_MOSI/UART0_RXD/TM3_EXT AVDD Table 2-1 Pin Assignment for M031TC1AE Jan 28, 2019 Page 10 of 26 Rev 1.00...
M031/M032 NuTiny-SDK-M031TC PCB Placement Users can refer to Figure 2-2 for the NuTiny-SDK-M031TC PCB placements. Figure 2-2 NuTiny-SDK-M031TC PCB Placement Jan 28, 2019 Page 11 of 26 Rev 1.00...
IDE Software Download and Install ® μ Please visit the Keil company website (http://www.keil.com) to download the Keil Vision and install the RVMDK Nuvoton Nu-Link Driver Download and Install ® Please visit the Nuvoton company NuMicro website (http://www.nuvoton.com/NuMicro) to ® ®...
M031/M032 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-M031TC board. It can be found on Figure 3-2 list directory and downloaded from Nuvoton ® NuMicro website. The example file can be found in the directory list shown in Figure 3-2.
The hardware setup is shown as Figure 4-1. Figure 4-1 NuTiny-SDK-M031TC Hardware Setup Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-M031TC board. It can be found on Figure 4-2 list directory and downloaded from Nuvoton ® NuMicro website.
Page 15
M031/M032 C:\Nuvoton\BSP Directory Library\M031_Series_BSP_CMSIS_V3.00.000\SampleCode\Template\IAR Project File Figure 4-2 Example Directory This sample code will show some functions about system manager controller and clock controller. Project – Download and Debug Start IAR Embedded Workbench Program the application code into on-chip Flash ROM ...
M031/M032 STARTING TO USE NU-LINK2-ME VCOM FUNCTION Downloading and Installing VCOM Driver ® Please connect to Nuvoton NuMicro website (http://www.nuvoton.com/NuMicro) to download the ® “NuMicro ICP Programming Tool” file. After the ICP Programming Tool driver is downloaded, please unzip the file and execute the “ICP Programming Tool.exe”. Simply follow the installation and optional steps to install ICP Programming Tool and Nu-Link USB Driver, which included VCOM driver.
M031/M032 Figure 5-3 Install Nuvoton COM&LPT Driver Figure 5-4 Install Nuvoton Nu-Link2DeviceClass VCOM Mode Setting on NuTiny-SDK-M031TC Before the NuTiny-SDK-M031TC is connected to the PC, please enable ICESW2 VCOM function by switching on ICESW2. The NuTiny-SDK-M031TC transmits through UART0 to VCOM to send out data.
M031/M032 ® Figure 5-5 The Using UART on Keil μVision 5.3.2 Check the Target Device and Debug Setting The target device has to be the same as the setting in Debug. Please click “Target Option” to open the Option windows, and find the setting in “Device”, “Debug”, and “Utilities” page. Please follow the steps below to check the setting.
Page 19
M031/M032 Step 2 Step 3 Jan 28, 2019 Page 19 of 26 Rev 1.00...
M031/M032 5.3.3 Build and Download Code to NuTiny-SDK-M031TC Please build the project and download code to NuTiny-SDK-M031TC. 5.3.4 Open the Serial Port Terminal User can use serial port terminal, PuTTY for example, to print out debug message. Figure 5-6 Set Baud Rate 5.3.5 Reset Chip After pushing the reset button and enable ICESW2 VCOM function, the chip will reprogram...
Page 21
M031/M032 Figure 5-7 Serial Port Terminal Windows Notice: Please switch ICESW2 on before the NuTiny-SDK-M031TC connects to the PC. When the NuTiny-SDK-M031TC connects to the PC with ICESW2 switch on, PC will detect VCOM as a USB device and the detection will only be processed once. Jan 28, 2019 Page 21 of 26 Rev 1.00...
M031/M032 REVISION HISTORY Date Revision Description 2019.01.28 1.00 Initially issued. Jan 28, 2019 Page 25 of 26 Rev 1.00...
Page 26
M031/M032 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”.
Need help?
Do you have a question about the NuMicro NuTiny-SDK-M031TC and is the answer not in the manual?
Questions and answers