Nuvoton Nu-Link User Manual

Nuvoton Nu-Link User Manual

Debug adapter
Hide thumbs Also See for Nu-Link:

Advertisement

Nuvoton Nu-Link Debug Adapter User Manual
Nuvoton Nu-Link
Debug Adapter 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. 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
Oct 28, 2014
-
Revision V1.01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Nu-Link and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton Nu-Link

  • 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

    3.2.2 Offline Programming....................... 12 3.2.3 Software Serial Number (SN) ..................13 Wide Voltage Programming ....................14 Installing the Nu-Link Adapter Driver ................... 14 INSTALLATION AND SETUP ......................15 Connecting to the Nu-Link Adapter ..................15 Software Setup ........................16 4.2.1 ICP Tool .........................
  • Page 3: Introduction

    Wire Debug) signal interface and can be applied to the development of Nuvoton NuMicro™ Family chips. As shown in Table 2-1, there are three types of the Nu-Link Debug Adapter in accordance with different specifications, including Nu-Link-Pro, Nu-Link, and Nu-Link-Me. The three types are called “Nu-Link Adapter”...
  • Page 4: Hardware Specifications

    The Nu-Link Adapter provides an USB connector and a SWD signal interface for connecting to the target chip. The user can connect the Nu-Link Adapter to an USB port of a PC to debug and program target chips through the development software tools. As shown in Table 2-1, there are three specifications for the Nu-Link Adapter, in which debugging, Online/Offline Programming, and SWD I/O voltage settings may be supported depending on the specifications (refer to the +Appendix for details).
  • Page 5: Nu-Link

    The Nu-Link is a basic debugger and programmer with debugging and online/offline programming functions. As shown in Figure 2-2, the Nu-Link includes an USB port that can be connected to a computer host, a set of Status LEDs, an offline programming button, and a SWD port that can be connected to a target chip for debugging and programming (the default voltage of the SWD port as 5.0V).
  • Page 6: Nu-Link-Me (On-Board Version)

    NuMicro™ Family series. The user does not need to prepare s debugger when using a learning board. The Nu-Link-Me on-board version includes an USB port that can be connected to a computer host, a set of Status LEDs, and a SWD port connected to the chip on the learning board (default) for debugging and programming (external connection is not supported).
  • Page 7 Nuvoton Nu-Link Debug Adapter User Manual Table 2-3 SWD I/O Voltage LEDs and SWD Power Output LEDs Status List SWD I/O Voltage LED Power Status 1.8V 2.5V 3.3V 5.0V SWD port I/O and VCC voltage as 1.8V SWD port I/O and VCC voltage as 2.5V SWD port I/O and VCC voltage as 3.3V...
  • Page 8: Main Functions

    Nuvoton Nu-Link Debug Adapter User Manual Main Functions The Nu-Link Adapter provides complete debugging and programming functions for NuMicro™ Family and supports a number of third-party development tools. The detailed function support is listed in Table 3-1. Table 3-1Nu-Link Adapter Functions...
  • Page 9: Debugging

    In Debug mode, the user can add breakpoints in the code for debugging. During the real-time simulation of the Nu-Link Adapter, the chip simulation will be stopped at a specific breakpoint. Figure 3-1 shows the breakpoint settings in Keil RVMDK Debug mode. The red labels on lines 052 and 059 indicate the breakpoints inserted;...
  • Page 10 Double-clicking a “register value” will open the register control details, as shown in the right part of Figure 3-3. The “register value” or “control value” can be modified directly. The Nu-Link Adapter will then modify the content of the target chip.
  • Page 11: Semihost

    When using the Semihost function, the message of the NuMicro™ Family microcontroller can be output through UART to the debug window by the Nu-Link Adapter. That is, the message is output without the GPIO. Figure 3-4 shows the debug messages in the “UART #1” form, which are the messages output by the Nu-Link Adapter.
  • Page 12: Programming

    Nu-Link Adapter is needed for mass production. In addition, the Nu-Link Adapter supports “Limited Offline Programming,” which can effectively control the authorized number of the firmware.
  • Page 13: Software Serial Number (Sn)

    Nuvoton Nu-Link Debug Adapter User Manual Create APROM, LDROM and DataFlash firmware of Binary or HEX format files. NuMicro™ Family ICP Tool Load Firmware Offline Program NuMicro™ Family Target Board Nu-Link Adapter Computer Figure 3-6 Offline Programming Flow Diagram 3.2.3...
  • Page 14: Wide Voltage Programming

    VCC, ICE_DAT, ICE_CLK, and /RESET. Also, as shown in Figure 2-1, the Nu-Link-Pro provides a set of SWD I/O Voltage LEDs and SWD Power Output LEDs for checking the SWD port voltage. Refer to Table 2-3 for more details about the...
  • Page 15: Installation And Setup

    Connecting to the Nu-Link Adapter As shown in Figure 4-1, the Nu-Link Adapter is a bridge between an USB and the SWD interface, by which software tools can debug and program the target chip through an USB. The user can plug the Nu-Link Adapter into an USB port of a PC directly or connect using the USB connector.
  • Page 16: Software Setup

    Nuvoton Nu-Link Debug Adapter User Manual Software Setup This section briefly describes required software settings for connecting to the Nu-Link Adapter. For detailed software operation, refer to the related user manuals. 4.2.1 ICP Tool Nuvoton NuMicro™ ICP Programming Tool. Step 1: Download and install Step 2: Open the ICP Tool, specify the UI language and target chip, and then click Continue, as shown in Figure 4-3.
  • Page 17 Step 4: Click Option in the Program section of the ICP Tool Window to open the Program Option form, as shown in Figure 4-5. Step 5: In the Nu-Link Pro IO Voltage section, specify the power voltage of the SWD port for the target chip, and then click OK. To use the offline programming function, the Offline Programming mode option needs to be selected, as shown in Figure 4-5.
  • Page 18 Nuvoton Nu-Link Debug Adapter User Manual Step 8a: After the Connect button is clicked, the ICP Tool will be connected with the Nu-Link Adapter, and a SWD port will be detected. Figure 4-7 shows that the ICP Tool has been connected with the Nu-Link Adapter and a target chip is detected.
  • Page 19: Keil Rvmdk

    Figure 4-9. Figure 4-9 Enable Debug Information for Keil RVMDK Step 4: Invoke Project → Options for Target → Debug, and make sure the Use:「Nuvoton Nu- Link M0 Debugger option is checked, as shown in Figure 4-10.
  • Page 20 Specify the SWD port I/O voltage for the target chip; options include 1.8V, 2.5V, 3.3V, and 5V Programmer Settings: Invoke Project → Options for Target → Utilities, select “Nuvoton Nu-Link M0 Step 6: Debugger” when the Use Target Driver for Flash Programming option is enabled, and then select the Update Target before Debugging option, as shown in Figure 4-12.
  • Page 21 Figure 4-12 Keil RVMDK Programmer Selection Step 7: Click the Settings button to open the Flash Download form, as shown in Figure 4-13 where the user can specify the options before or after programming with the Nu-Link Adapter. Figure 4-13 Nu-Link Adapter Programming Settings...
  • Page 22: Iar Ewarm

    EWARM. Make sure that Nu-Link Adapter Driver for IAR EWARM has been downloaded and installed before setting the Nu-Link Adapter such that the IAR EWARM can recognize the Nu-Link Adapter. Step 2: Open IAR EWARM, and open the project to be set.
  • Page 23 Nuvoton Nu-Link Debug Adapter User Manual Step: 5: In the Download tab of the Debugger page, make sure that the Use flash loader(s) option is selected, as shown in Figure 4-16. Figure 4-16 IAR EWARM Programming Settings Step: 6: In the Download tab of the Debugger page, select the Override default .board file option if you want the firmware to be downloaded to APROM or LDROM, and then specify the NUC100_APROM.board or NUC100_LDROM.board file (NUC100 series is used in this...
  • Page 24 Step 8: Click OK to save the settings and return to the IAR EWARM main window. Step 9: Invoke Nu-Link to open the Nu-Link form, select SWD as the Port, and specify the Nu-Link- Pro I/O Voltage in the Target power control section (3.3V in this case), as shown in Figure 4-19.
  • Page 25: Coocox Coide

    Debugger Settings: Step 3: In the Debugger tab of the Debug Configurations form (through invoking Debug → Debug Configurations), select “Nu-Link” as the Adapter, select “SWD” as the Port, and click Apply to save the settings, as shown in Figure 4-20.
  • Page 26 Nuvoton Nu-Link Debug Adapter User Manual Figure 4-21 CooCox CoIDE Programming Settings Step: 5: To ensure the firmware will be downloaded to APROM or LDROM, select NUC1xx_128.elf or NUC1xx_LDROM.elf file (NUC100 series is used in this case) as shown in Figure 4-22; “32, 64, or 128”...
  • Page 27: Appendix

    Nuvoton Nu-Link Debug Adapter User Manual +Appendix Nu-Link Adapter Operating Current When power is supplied via an USB during online programming, the operating current of Nu-Link Adapter is shown in the table below. Table 5-1 Nu-Link Adapter Operating Current (Online Programming)
  • Page 28: Revision History

    Revise section 4.2.1 ICP Tool step number error. 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.

Table of Contents