SEARCH
TOOLBOX
LANGUAGES
modified on 27 March 2012 at 13:41 ••• 62,487 views

PicoJTAG Manual/Getting Started

From Manuals

Jump to: navigation, search


Contents

IDE Support

Micromint's picoJTAG software includes plugins and drivers to integrate with popular IDEs used for ARM software development. Please download the software from the Accessories Documentation Wiki.

  • IAR Embedded Workbench for ARM (ewarm)
  • Keil MDK
  • GNU Toolchain (gcc) for ARM - using OpenOCD

The IAR and Keil plugins were developed by CooCox. The GCC driver comes from the OpenOCD Project. You can also use some other drivers that support FTDI debuggers. To install the drivers execute the autorun utility on the CD.

picoJTAG Setup Disk
Figure 2.1: picoJTAG Disk Main Menu

IAR Plugin

After installing the IAR plugin, follow these steps to configure your project to use it.

1. On the IAR EWARM menu go to "Project", "Options", "Debugger" and on the "Setup" tab select the RDI driver. If your target requires an IAR macro file for initialization, specify it on the "Setup macro" area. The examples directory of the CD includes an example initialization macro for LPC1769 processors.

IAR Debugger Setup Options
Figure 2.2: IAR Debugger Setup Options

2. Go to the "Download" tab and select the "Use flash loader(s)" option so code is loaded to flash at the start of the debugging session. To guarantee the integrity of the download your should also select the "Verify download" option.

IAR Debugger Download Options
Figure 2.3: IAR Debugger Download Options

3. Go to the "RDI" section of the "Debugger" area and specify the location where you installed the RDI driver.

IAR Debugger RDI Options
Figure 2.4: IAR Debugger RDI Options

4. On the IAR EWARM menu go to "RDI", "Configure" and select the device target and options.

IAR RDI Configuration
Figure 2.5: IAR RDI Configuration

Keil MDK Plugin

After installing the Keil plugin, follow these steps to configure your project to use it.

1. On the Keil uVision IDE menu go to "Project", "Options" and on the "Debug" tab select the CooCox Debugger.

Keil Debugger Setup
Figure 2.6: Keil Debugger Setup

2. Click on the "Settings" button next to the debugger listbox and select the picoJTAG adapter.

Keil Debugger Configuration
Figure 2.7: Keil Debugger Configuration

GNU Toolchain using OpenOCD

To use the picoJTAG with the GDB debugger you need to copy the OpenOCD files to your hard disk and start the OpenOCD service. OpenOCD requires a processor configuration file. The examples directory of the CD includes examples for TI LM3S and NXP LPC1769 processors.

Loading OpenOCD
Figure 2.8: Loading OpenOCD

The GDB debugger can be used from the command line or from the Eclipse IDE.

Flash Programmer

CooCox CoFlash is a stand-alone Cortex M Flash Programming software for PCs running Microsoft Windows. It can be downloaded from the following website: http://www.coocox.org/CoFlash_Programmer.htm

Follow these steps to program a Cortex M microcontroller using CoFlash and the picoJTAG:

  • 1. Open the CoFlash programmer
Flash Programmer
Figure 2.9: Flash Programmer
  • 2. Select picoJTAG as the Adpater
  • 3. Select the microcontroller being used
  • 4. Select the Command tab
  • 5. Browse for the binary or elf file
  • 6. Verify that the sector offset and sectors are properly selected. See below figures for further details
Flash Programmer
Figure 2.10: CoFlash Programmer set-up for Eagle SBC with bootloader
Flash Programmer
Figure 2.11: CoFlash Programmer set-up for Eagle SBC without bootlader
Flash Programmer
Figure 2.2: CoFlash Programmer set-up for Lincoln SBC
  • 7. Click on the Program button

NEXT: Connectors and Jumpers

PREVIOUS: Introduction