Keil ULINKpro Using Manual Download Page 13

 

 

 

 

 

 

 

 

 

 

P a g e  

12 | 13

 

 

Summary of Steps 

When using the mbed.org on-line IDE, use the SDA-USB port for outputting debug/information messages. This is 
intrusive in that it takes time and cycles to send the data out the USB port. When you move to the Keil/ULINK

pro 

environment, you must re-target the debug/information messages.  

To retarget the debug/information messages, use ITM port-0, a few ITM specific output functions defined in 
itm_output.cpp, and redefine the macros PRINTF and PUTS so the output is sent to the Debug Viewer in μVision. 
Because outputting these messages has less performance penalty when using ULINK

pro

, program timing and 

execution may be different. These differences can uncover race conditions and other timing issues that would 
rarely be encountered and thus extremely difficult to debug.  

Once recompiled with the output redirected, the remainder of steps involves configuring the μVision/

ULINKpro 

tools to operate with the FRMD-K64F board as previously described. 

For additional information on using the Keil tools and ULINK

pro

 JTAG, refer to the References section. 

Useful Definitions/Terms 

Instrumentation Trace Macrocell (ITM)

 

As used by μVision, ITM is thirty-two 32 bit memory addresses (Port 0 through 31) that, when written to, will be 
output on either the SWO or Trace Port. This is useful for printf type operations. μVision uses Port 0. 

Embedded Trace Macrocell (ETM) 

Displays all the executed instructions. The ULINK

pro 

provides ETM and requires a special 20 pin CoreSight 

connector. ETM also provides Code Coverage and Performance Analysis. 

 

Embedded Trace Buffer (ETB)

 

A small amount of internal RAM used as an ETM trace buffer.  

Hardware Breakpoints 

The Cortex-M4 has six hardware breakpoints. These can be set/unset on-the-fly without stopping the processor. 
They are no skid; they do not execute the instruction they are set on when a match occurs. The CPU is halted 
before the instruction is executed.  

Watchpoints

 

The Cortex-M4 has two watchpoints. These are conditional breakpoints. They stop the program when a specified 
value is read and/or written to a specified address or variable.  

 

 

 

Summary of Contents for ULINKpro

Page 1: ...Using Keil ULINKpro with the AT T Cellular IoT Starter Kit Make problems easier to solve with the right tools...

Page 2: ...s 3 Locate Install the IoT Operational Software 4 Import into Keil IDE 5 Connecting and Configuring Debug Adapter 5 Configuring Vision v5 7 Updating the Project Files 9 Modifying IoT Software for ULIN...

Page 3: ...ro environment users enjoy the following A Vision IDE with Integrated Debugger and Flash programmer The ARM Compiler tool chain USB JTAG Debugging and or Serial Wire Debug with CoreSight Serial Wire V...

Page 4: ...net Vision and software packs will automatically start Otherwise connect your computer to the Internet to download the software packs and start Vision by clicking the desktop icon Initially the pack l...

Page 5: ...IoT Operational Software The following assumes you are working with the Avnet AT T Cellular IoT Kit software 1 Export from developer mbed org 2 Open your browser and navigate to https developer mbed...

Page 6: ...onfiguring Debug Adapter The ULINKpro supports all SWV features and has ETM Trace support It also provides Flash programming capabilities NOTE When you use the flash programming capabilities the FRDM...

Page 7: ...the ULINKpro unit and any pin plugs removed connect the cable to the J9 JTAG connector shown circled below Note the location of Pin 1 will correspond to Pin 1 on the connector the plug is not keyed Wh...

Page 8: ...der the Project menu or button 1 Enter the Debug tab From the Options tab modify the Debug Linker and C C tabs 2 From the Use selector choose ULINKpro Cortex Debugger highlighted The software connects...

Page 9: ...are not used at this time NOTE The Core Clock should be set to 120 0 MHz to match the operating environment to ensure the timing values in various trace windows are correct 7 Return to the Options dia...

Page 10: ...g information output is sent to the Debug printf viewer when using the ULINK you need to include 2 new files into the project that will accomplish this These files redefine two macros PRINTF and PUTS...

Page 11: ...ou enable the automatic inclusion of itm_output h file This file contains the ITM addresses and functions needed to output to the Debug printf viewer If _ULINK_PRINT is not selected it defaults to the...

Page 12: ...en similar to the following appears 2 Click the Run F5 button to run the program In the Debug printf Viewer the debug information appears Note If the SiSensor board is not installed it will report the...

Page 13: ...oard as previously described For additional information on using the Keil tools and ULINKpro JTAG refer to the References section Useful Definitions Terms Instrumentation Trace Macrocell ITM As used b...

Page 14: ...ect to Keil MDK 4 www keil com appnotes docs apnt_207 asp MDK ARM Compiler Optimizations www keil com appnotes docs apnt_202 asp GNU tools GCC for use with Vision https launchpad net gcc arm embedded...

Reviews: