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.
How to Start NuTiny-SDK-M4521 on the Keil μVision IDE Software Download and Install ..........17 ® Keil uVision Nuvoton Nu-Link Driver Download and Install ........... 17 Hardware Setup ..................17 Example Program ..................18 How to Start NuTiny-SDK-M4521 on the IAR Embedded Workbench ....19 IAR Embedded Workbench Software Download and Install ........
Page 3
M4521 Nu-Link-Me V3.0 Schematic ................ 28 REVISION HISTORY ................29 Nov 28, 2018 Page 3 of 30 Rev 1.00...
M4521 OVERVIEW ® NuTiny-SDK-M4521 is the specific development tool for NuMicro M4521 series. Users can use NuTiny-SDK-M4521 to develop and verify the application program easily. NuTiny-SDK-M4521 includes two portions. One is NuTiny-EVB-M4521 and the other is Nu-Link- Me. NuTiny-EVB-M4521 is the evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, users do not need other additional ICE or debug equipments.
® ® 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-Link-Me 3.0 VCOM function, please refer to Chapter 5.
X: Unused. Note*: Need to separate NuTiny-EVB-M4521 and Nu-Link-Me. 2.1.2 Debug Connector JP2: Connector in target board (NuTiny-EVB-M4521) for connecting with Nuvoton ICE adaptor (Nu-Link-Me) JP11: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (NuTiny- EVB-M4521) 2.1.3...
Page 7
M4521 connects pin 30(VCOM) in Nuvoton ICE adaptor (Nu-Link-Me V3.0) to GND to enable VCOM function. Switch Pin Disable VCOM Mode Enable VCOM Mode Number X: Unused. Nov 28, 2018 Page 7 of 30 Rev 1.00...
M4521 Pin Assignment for Extended Connector NuTiny-EVB-M4521 provides M4521SE6AE on board and the extended connector for LQFP64- pin. Table 2-1 is the pin assignment for M4521SE6AE. Pin No. Pin Name Type Description PB.15 General purpose digital I/O pin. EADC_CH12 EADC analog input channel 12. EBI_nCS1 EBI chip select 1 enable output pin.
Page 9
M4521 Pin No. Pin Name Type Description EADC_CH10 EADC analog input channel 10. EBI_ALE EBI address latch enable output pin. PD.1 General purpose digital I/O pin. EADC_CH11 EADC analog input channel 11. PWM0_SYNC_IN PWM0 counter synchronous trigger input pin. UART0_TXD Data transmitter output pin for UART0.
Page 10
M4521 Pin No. Pin Name Type Description PWM1_CH1 PWM1 output/capture input. EBI_ADR17 EBI address bus bit 17. PD.14 General purpose digital I/O pin. UART3_nCTS Clear to Send input pin for UART3. PWM1_CH2 PWM1 output/capture input. EBI_ADR18 EBI address bus bit 18. PD.15 General purpose digital I/O pin.
Page 11
M4521 Pin No. Pin Name Type Description CLKO Clock Out UART2_nRTS Request to Send output pin for UART2. PWM0_CH1 PWM0 output/capture input. EBI_AD9 EBI address/data bus bit 9. UART3_RXD Data receiver input pin for UART3. PC.2 General purpose digital I/O pin. SPI1_SS SPI1 slave select pin.
Page 12
M4521 Pin No. Pin Name Type Description ICE_CLK Serial wired debugger clock pin PF.6 General purpose digital I/O pin. ICE_DAT Serial wired debugger data pin PE.8 General purpose digital I/O pin. UART1_TXD Data transmitter output pin for UART1. SPI0_MISO1 SPI0 2nd MISO (Master In, Slave Out) pin. I2C1_SCL I2C1 clock pin.
Page 13
M4521 Pin No. Pin Name Type Description PE.12 General purpose digital I/O pin. SPI1_SS SPI1 slave select pin SPI0_SS SPI0 slave select pin. UART1_TXD Data transmitter output pin for UART1. I2C0_SCL I2C0 clock pin. PE.13 General purpose digital I/O pin. SPI1_CLK SPI1 serial clock pin SPI0_CLK...
Page 14
M4521 Pin No. Pin Name Type Description SC0_DAT SmartCard data pin. PWM1_CH4 PWM1 output/capture input. EBI_AD1 EBI address/data bus bit 1. STADC ADC external trigger input. PA.0 General purpose digital I/O pin. UART1_nCTS Clear to Send input pin for UART1. UART1_TXD Data transmitter output pin for UART1.
Page 15
M4521 Pin No. Pin Name Type Description SPI1_CLK SPI1 serial clock pin UART1_RXD Data receiver input pin for UART1. SC0_CD SmartCard card detect pin. UART3_RXD Data receiver input pin for UART3. T2_EXT Timer2 external capture input. PB.3 General purpose digital I/O pin. EADC_CH3 EADC analog input channel 3.
M4521 NuTiny-SDK-M4521 PCB Placement Users can refer to Figure 2-2 for the NuTiny-SDK-M4521 PCB placement. Figure 2-2 NuTiny-SDK-M4521 PCB Placement Nov 28, 2018 Page 16 of 30 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 ® ®...
M4521 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-M4521 board. It can be found on Figure 3-2 list directory and downloaded from Nuvoton ® NuMicro website. Directory \\M4521_BSP_CMSIS_V3.00.000\SampleCode\StdDriver\GPIO_INT\KEIL Project File Figure 3-2 Example Directory...
IAR Embedded Workbench Software Download and Install Please connect to IAR company website (http://www.iar.com) to download the IAR Embedded Workbench and install the EWARM. Nuvoton Nu-Link Driver Download and Install ® Please visit the Nuvoton company NuMicro website (http://www.nuvoton.com/NuMicro ) to ®...
M4521 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-M4521 board. It can be found on Figure 4-2 list directory and downloaded from ® Nuvoton NuMicro website. Directory \\M4521_BSP_CMSIS_V3.00.000\SampleCode\StdDriver\GPIO_INT\IAR Project File Figure 4-2 Example Directory...
ICP Programming Tool and Nu-Link USB Driver, which included VCOM driver. Figure 5-1 Optional Step after ICP Programming Tool Installation Figure 5-2 Install Nuvoton COM&LPT Driver Nov 28, 2018 Page 21 of 30...
SW2. The NuTiny-EVB-M4521 transmits through UART0 to VCOM to send out data. Switch SW2 off when using UART0 function without VCOM function. After connected USB port in Nu-Link-Me to the PC, user can find a “Nuvoton Virtual Com Port” from Device Manager as Figure 5-4.
M4521 ® 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 24
M4521 Step 2 Step 3 Nov 28, 2018 Page 24 of 30 Rev 1.00...
M4521 5.3.3 Build and Download Code to NuTiny-SDK-M4521 Please build the project and download code to NuTiny-SDK-M4521. 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, the chip will reprogram application and print out debug message.
Page 26
M4521 Figure 5-7 Serial Port Terminal Windows Notice: Please switch SW2 on before the NuTiny-SDK-M4521 connects to the PC. When the NuTiny- SDK-M4521 connects to the PC with SW2 switch on, PC will detect VCOM as a USB device and the detection will only be processed once.
Page 29
M4521 REVISION HISTORY Date Revision Description 2018.11.28 1.00 Initially issued. Nov 28, 2018 Page 29 of 30 Rev 1.00...
Page 30
M4521 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 Series and is the answer not in the manual?
Questions and answers