Nuvoton Nu-Link User Manual Download Page 1

Nuvoton Nu-Link Debug Adapter User Manual

 

Oct 24, 2019 

- 1 - 

Revision V1.01   

 

 

 

 

 

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

 

 

Summary of Contents for Nu-Link

Page 1: ...logy 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 assum...

Page 2: ...Register Control Interface 11 3 1 4 Semihost 13 3 2 Programming 14 3 2 1 Online Programming 14 3 2 2 Offline Programming 14 3 2 3 Software Serial Number SN 15 3 3 Wide Voltage Programming 16 3 4 Insta...

Page 3: ...cuit Programming based on the SWD Serial Wire Debug signal interface The user can employ the NuMicro ICP Programming Tool to update chip firmware for mass production The Nu Link Adapter also supports...

Page 4: ...Support 1 8V 2 5V 3 3V 5 0V 5 0V 3 3V default 5 0V 1 8V 3 3V default 5 0V 3 Control Bus 4 Virtual COM 5 1 Adjusted by resistor JPR1 2 Adjusted by resistor ICEJPR1 3 The input supports 1 8V 5V and the...

Page 5: ...ected to a target chip for debugging and programming the default voltage of the SWD port as 5 0V SWD USB Offline Programming Button Green Red ICP ICE Status LED Figure 2 2 Nu Link Configuration 2 3 Nu...

Page 6: ...that supports on line programming and debugging through SWD interface The on board 16 Mbit SPI Flash allows it able to off line programming the target microcontroller Nu Link2 Me provides virtual COM...

Page 7: ...o use the Nu Link Adapter or download offline programming firmware SWD Connected to the target chip for debugging and programming Status LED Display the operation status of the Nu Link Adapter Offline...

Page 8: ...O and VCC voltage as 5 0V On On On On On SWD port I O voltage as 1 8V 1 8V On SWD port I O voltage as 2 5V 2 5V On On SWD port I O voltage as 3 3V 3 3V On On On SWD port I O voltage as 5 0V 5 0V On O...

Page 9: ...Nuvoton Nu Link Debug Adapter User Manual Oct 24 2019 9 Revision V1 01 Offline Programming Completed Auto mode On On Offline Programming Failed On Flash...

Page 10: ...Table 3 1 Table 3 1Nu Link Adapter Functions Software Function ICP Tool Keil MDK IAR EWARM NuEclipse GCC Debugging Breakpoints Direct Register Control Interface 1 Semihost Online Programming Offline...

Page 11: ...me 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 MDK Debug mode The red labels on lines 052 and 059 in...

Page 12: ...l Interface for PWRCON is shown in the right part of the Figure 3 3 where the left column shows the function bit s the middle column shows the function name and the right column shows the function val...

Page 13: ...taking the Keil MDK and M031AE series as example Step 1 Modify the strings in the startup_NUC1xx s as follows SEMIHOSTED SETL FALSE Delete this line Modify SEMIHOSTED SETL TRUE Add this line Step 2 M...

Page 14: ...oard SWD USB NuMicro Family NuMicro Family ICP Tool Program Figure 3 5 Online Programming Flow Diagram 3 2 2 Offline Programming Offline Programming means that the Nu Link Adapter can update the firmw...

Page 15: ...nables users to specify the value in the Increase SN from and Write address in flash fields for the target chip during online offline programming Take the NUC140VE3CN chip for example the user can spe...

Page 16: ...djust the SWD port voltage as 3 3V or 5 0V As shown in Figure 4 2 the pins that can be controlled include VCC ICE_DAT ICE_CLK RESET ICE_RX and ICE_TX The Nu Link2 Me supports the wide voltage programm...

Page 17: ...rough a SWD port the Nu Link Adapter can supply power 1 8V 2 5V 3 3V or 5 0V to a target circuit board The maximum is 5V 500mA Refer to Table 2 1 for detailed specifications Computer Nu Link Adapter T...

Page 18: ...ser manuals 4 2 1 ICP Tool Step 1 Download and install Nuvoton NuMicro ICP Programming Tool Step 2 Open the ICP Tool specify the UI language and target chip and then click Continue as shown in Figure...

Page 19: ...Step 4 Return to the ICP Tool window and then click the Connect button Go to Step 5 if more than two Nu Link Adapters are connected with the host Go to Step 6 if only one Nu Link Adapter is connected...

Page 20: ...ool has been connected with the Nu Link Adapter with no target chip detected The ICP tool will continue detecting the target chip until the Stop Check button is clicked At this time the user cannot pr...

Page 21: ...DK can recognize the Nu Link Adapter Step 2 Open the Keil MDK and open the project to be set Debugger Settings Step 3 Invoke Project Options for Target Output and enable the Debug Information option a...

Page 22: ...Table 4 1 Debugger Function Settings Description Debug Function Description Driver Version Display the Nu Link Adapter driver version in the host Chip Type Specify the Target chip type Reset Select A...

Page 23: ...Figure 4 12 Keil MDK 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 wi...

Page 24: ...recognize the Nu Link Adapter Step 2 Open IAR EWARM and open the project to be set Step 3 In the Target tab of the General Options page through invoking Project Options click the button in the right...

Page 25: ...of the Debugger page make sure that the Use flash loader s option is selected as shown in Figure 4 17 Figure 4 17 IAR EWARM Programming Settings Step 6 In the Download tab of the Debugger page select...

Page 26: ...ver plugin C Program Files Nuvoton Tools Nu Link_IAR Nu Link_IAR dll as shown in Figure 4 19 Figure 4 19 Set the Path of the IAR EWARM Debugger Driver Plugin Step 8 Click OK to save the settings and r...

Page 27: ...Nuvoton Nu Link Debug Adapter User Manual Oct 24 2019 27 Revision V1 01 Figure 4 20 Specify the Port and Target I O Voltage...

Page 28: ...hand side In the Main tab the name of Project should coincide with the project name The C C Application should point to the elf application generated by the build process As shown in Figure 4 21 If t...

Page 29: ...Configuring the Debugger Tab Step 5 As the first step we should choose the right Chip Series in the Startup tab When done the corresponding target configuration file will be automatically written in t...

Page 30: ...Nuvoton Nu Link Debug Adapter User Manual Oct 24 2019 30 Revision V1 01 Figure 4 23 Configuring the Startup Tab...

Page 31: ...5 06 3 34 2 54 1 83 4 77 4 79 3 37 5 06 3 34 1 8 USB Input Current mA 101 92 88 84 110 74 60 101 99 91 When power is supplied from a target board SWD VCC pin during offline programming the operating...

Page 32: ...are set to logic 2 To start programming START needs to be set to logic 0 for TSTART 3 Programming start up BUSY is set to logic 0 and might toggle during programming 4 When finish programming BUSY is...

Page 33: ...Link Debug Adapter User Manual Oct 24 2019 33 Revision V1 01 6 Revision History Revision Description Date V1 00 Preliminary version 2012 07 16 V1 01 Delete Nu Link Me On board Version Add Nu Link2 Me...

Reviews: