background image

NuMaker-M031TC

 

 

Feb. 

20, 2019 

Page 

25

 of 36 

Rev 1.00 

N

UMA

K

E

R

-M0
31
T

C

 U

S

E

R

 MA

N

UA
L

 

Ma
k

er Nu

-m

be
d

 NUC

47

Us
er Man

ua

 

 

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 

 

 

Содержание NuMaker-M031TC

Страница 1: ...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 s...

Страница 2: ...es 14 2 5 3 3 3 V Power Sources 14 2 5 4 1 8V Power Sources 15 2 5 5 Power Connectors 15 2 5 6 USB Connectors 15 2 5 7 Power Switches 15 2 5 8 Power Supply Models 16 2 5 9 Ammeter Connector 19 2 5 10...

Страница 3: ...NuMaker M031TC Feb 20 2019 Page 3 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U Nu Link2 Me 32 4 1 M031 Platform 33 4 2 Extension Connector 34 4 3 5 REVISION HISTORY 35...

Страница 4: ...llation Setup 22 Figure 3 2 Nu Link USB Driver Installation 23 Figure 3 3 Open VCOM Function 24 Figure 3 4 ICE USB Connector 24 Figure 3 5 Device Manger 25 Figure 3 6 PuTTY Session Setting 25 Figure 3...

Страница 5: ...Power Source 14 Table 2 4 5V Power Sources 14 Table 2 5 3 3 V Power Sources 14 Table 2 6 1 8V Power Sources 15 Table 2 7 Power Connectors 15 Table 2 8 USB Connectors 15 Table 2 9 Power Switches 15 Ta...

Страница 6: ...or the microcontroller s power consumption during development The Nu Link2 Me is a debugger and programmer that supports on line programming and debugging through SWD interface The on board 16 Mbit SP...

Страница 7: ...2019 Page 7 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U ICE USB connector on Nu Link2 Me On board Nu Link2 Me debugger and programmer Debug through SWD interface On line off line programming Virt...

Страница 8: ...1 Platform Figure 2 1 Front View of NuMaker M031TC Figure 2 1 shows the main components and connectors from the front side of NuMaker M031TC The following lists components and connectors from the fron...

Страница 9: ...gure 2 2 shows the main components and connectors from the rear side of NuMaker M031TC The following lists components and connectors from the rear view Nu Link2 Me MCUVCC Power Switch ICEJPR1 ICEVCC P...

Страница 10: ...OSI PWM0_CH5 PA 0 D11 SPI0_MISO PWM0_CH4 PA 1 D12 SPI0_CLK PWM0_CH3 PA 2 D13 VSS VSS AVDD VREF I2C0_SCL PC 0 SDA I2C0_SDA PC 1 SCL UART1_RXD PWM0_CH2 PB 2 D0 UART1_TXD PWM0_CH3 PB 3 D1 PA 12 D2 PA 13...

Страница 11: ...A4 PB 0 NU3 3 D2 PA 12 NU2 4 A3 PB 4 NU3 4 D3 PA 13 NU2 3 A2 PB 5 NU3 5 D4 PA 14 NU2 2 A1 PB 14 NU3 6 D5 PA 15 NU2 1 A0 PB 15 NU3 7 D6 NC N U 1 NU1 8 VIN NU3 8 D7 NC NU1 7 VSS N U 3 NU4 1 D8 NC NU1 6...

Страница 12: ...ssignment for Extension Connectors 2 4 The NuMaker M031TC provides the M031TC1AE target chip onboard and full pins extension connectors JP3 JP4 JP5 and JP6 The Figure 2 4 shows the M031TC1AE extension...

Страница 13: ...0_CH2 CLKO JP5 7 JP5 8 12 PA 2 SPI0_CLK UART1_RXD I2C1_SDA PWM0_CH3 JP5 9 JP5 10 13 PA 1 SPI0_MISO UART0_TXD UART1_nCTS PWM0_CH4 JP5 11 JP5 12 14 PA 0 SPI0_MOSI UART0_RXD UART1_nRTS PWM0_CH5 JP5 13 JP...

Страница 14: ...J2 USB_VBUS USB connector on NuMaker M031TC supplies 5 V power from PC to M031 platform and Nu Link2 Me NU1 pin5 NU1_5VCC ICEJ3 J2 or NU1 pin8 supplies 5 V power to NU1 pin5 NU1 pin5 supplies 5 V pow...

Страница 15: ...e NuMaker M031TC JP2 VSS connector on the NuMaker M031TC Table 2 7 Power Connectors 2 5 6 USB Connectors Table 2 8 presents the USB connectors Connector Comment ICEJ3 ICE USB connector on Nu Link2 Me...

Страница 16: ...chip operating voltage 3 Switch the SW2 to OFF 4 Connect the external power supply to JP1 Table 2 10 presents all power models when supplies external power through Nu Link2 Me The Nu Link2 Me externa...

Страница 17: ...t the external power supply to Vin or J2 To use JP1 as external power supply source please follow the below steps 1 Switch the SW2 to OFF 2 Remove the resistor on ICEJPR1 MCUVCC 3 Solder the resistor...

Страница 18: ...VCC 3 3 V output Remove resistor 3 3 V 3 3 V 6 5 V 7 V 12 V Input X Ignore NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V 7 5 V X Connect to PC Ignore NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V...

Страница 19: ...al VSS Connector JP2 Separate Nu Link2 Me Figure 2 8 Wiring between Ammeter Connector and Ammeter 2 5 10 Extension Connectors Table 2 13 presents the extension connectors Connector Comment JP3 JP4 JP5...

Страница 20: ...s on line programming and debugging through SWD interface The on board 16 Mbit SPI Flash allows it to off line program the target microcontroller Additionally the Nu Link2 Me provides virtual COM port...

Страница 21: ...b 20 2019 Page 21 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U PCB Placement 2 7 Figure 2 9 and Figure 2 10 show the front and rear placement of NuMaker M031TC Figure 2 9 Front Placement Figure 2 1...

Страница 22: ...EWARM NuEclipse GCC Windows NuEclipse GCC Linux Nuvoton Nu Link Driver Installation 3 2 Download and install the latest Nuvoton Nu Link Driver Download and install Nu Link_Keil_Driver when using Keil...

Страница 23: ...NuMaker M031TC Feb 20 2019 Page 23 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U Figure 3 2 Nu Link USB Driver Installation...

Страница 24: ...he Board Support Package BSP Hardware Setup 3 4 1 Open the virtual COM VCOM function by changing Nu Link2 Me VCOM Switch No 1 and 2 to ON Figure 3 3 Open VCOM Function 2 Connect the ICE USB connector...

Страница 25: ...v 1 00 NUMAKER M031TC USER MANUAL M m U 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 sessio...

Страница 26: ...he Project under Toolchains 3 6 Open and execute the project under the toolchain The section 3 6 1 3 6 2 and 3 6 3 describe the steps of executing project in Keil MDK IAR EWARM and NuEclipse respectiv...

Страница 27: ...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...

Страница 28: ...compile the project download code to the flash memory Click Start Stop Debug Section button can enter debug mode 1 3 2 4 1 Rebuild 3 Download 4 Start Stop Debug 2 Successfully compile Figure 3 12 Com...

Страница 29: ...UMAKER M031TC USER MANUAL M m U source code assembly language peripherals registers and setting breakpoint step run value monitor etc 2 Stop 3 1 2 1 Run 3 Reset Figure 3 13 Keil MDK Debug Mode Figure...

Страница 30: ...ww to open the project 2 Make sure the toolbar contain Nu Link item as shown in Figure 3 15 Note If the toolbar does not contain Nu Link item please rework section 3 2 Figure 3 15 IAR EWARM Window 3 M...

Страница 31: ...n Figure 3 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 1 2 3 1 Go 3 Reset 2 Break F...

Страница 32: ...B_VDD33 HXT_O HXT_I ICEC10 20p C0603 ICEC11 20p C0603 12M Crystal ICEX1 12MHz SMD X3225B 1 XIN 2 GND 4 GND 3 XOUT 3 3V SPIM_MISO0 ICEU2 W25Q16JVSSIQ SOP8 5 23 1 27MM CS 1 DO 2 WP 3 GND 4 DI 5 CLK 6 HO...

Страница 33: ...JP2 NC 1 2 3 4 JP1 NC 1 2 3 4 C12 0 1u VDD AVDD C11 0 1u CT2 10uF 10V 1 2 CT3 10uF 10V 1 2 L2 FERRITE BEAD L4 FERRITE BEAD Power C13 0 01u LED U2 M031TC1AE PB 5 ADC0_CH5 I2C0_SCL PWM0_CH0 UART2_TXD T...

Страница 34: ...NU2_A2 PB0_NU2_A4 SDA RX PB1_NU2_A5 SCL TX PB2_NU3_D0 RX P24 P32 LDO_CAP GND AVDD VDD_MCU MCU_TX MCU_RX PB15_NU2_A0 PB14_NU2_A1 External Connector UNO Interface P1 P8 P9 P18 P2 P4 P3 P1 P8 P7 P6 P5 Ti...

Страница 35: ...NuMaker M031TC Feb 20 2019 Page 35 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U 5 REVISION HISTORY Date Revision Description 2019 02 20 1 00 1 Initially issued...

Страница 36: ...sage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safety system...

Отзывы: