Electronic – Flashing and debugging with Eclipse (without jtag)

eclipsejtag

I'm a beginner in embedded system development and wonder if I really need JTAG emulator(?) or JTAG cable. Previously I learned stuffs using STM32-discovery and now would move to Sabre Lite. It uses freescale's I.MX6quad MCU. But I wonder how I could upload an executable file to the I.MX6quad. Since I don't have Jtag cable, I have no idea how to flash and debug the MCU. Would you please let me know if there is a way to flash and debug without JTAG, assuming you use Eclipse?

Thank you.

Best Answer

Many ARM processors can be flashed via

  1. A serial interface (USART)
  2. A USB flash drive or host (DFU)
  3. Other serial devices (I2C, SPI, etc)

The trick is to set one or more 'boot' pins on power up and provide a protocol before it reverts to the normal boot from flash.

RTFM and you will find a way to do this on your device.

Alternately

The STM32 Discovery boards you have already have a JTAG on them.

This is a ST-LINK JTag device, and you can get the signals on a header (marked SWD) on most of the discovery boards. You need to remove two jumpers marked STLINK.

Avoid the VL-Discovery since it is version one and is flakey. The others (F3, F4, Nucleo) are version 2 and MUCH better.

All this is documented on the discovery board manuals and circuit diagrams.

Then look at the discovery circuit and wire these pins to the I.MX6 JTAG pins. You can then convince OpenOCD and many other IDEs to use the STLINK and I.MX6 using the appropriate command line arguments.

You may need or want to write an OpenOCD script to make your life easier.

ST offer an excellent ST-LINK version 2 which has JTAG cabling - It's really the same device as what they put on the discovery boards. It is reasonably priced.

Olimex also make reasonably priced JTAG devices.

Check what the vendor offers for low cost development