Need Help Installing

Hello…

I’m currently learning how to program, flash, and create PCBs. I had to reformat an old netbook that I’m using currently and lost all my settings. To the point I’m trying to install an Olimex ARM-USB-CD-H box to be used with Cygwin and OpenOCD for flashing. I just can’t seem to find any instructionals that are layman friendly. Most seem to skip steps or direct me to additional items I can’t find on the web. So I throw myself at your mercy in hopes someone here can help me get pointed in the right direction. I saving all my directories straight to the desktop it that helps. Any help any of you could give would be much appreciated. Thanks.

Jack Goodman

Junior Technician

HDDC, Inc.

Well, this may be more of the same detail-lacking overview you’ve already seen…

This is all guesswork; my windows openOCD installation has gotten so stale I’m not 100% sure it still works. A bit later I’ll switch over to windows and try these instructions. Nothing Cygwin-specific here - I hope that isn’t necessary.

  • - Download [[your driver](http://www.olimex.com/dev/soft/arm/JTAG/DRIVERS%20%28libusb-1.2.2.0,%20CDM20808%29.zip) from Olimex and install it, if you haven't already. The readme file in the zip seems to have reasonable detail.[/*]
  • - Go to the download section of Freddie Chopins [[site](http://www.freddiechopin.info/) for prebuilt windows versions of OpenOCD. The description of the driver says for version 0.4.0, but I think I'd be inclined to try 0.5.0 first and only fall back if that doesn't work.[/*]
  • - Review the [[OpenOCD with Telnet](http://www.olimex.com/dev/soft/arm/JTAG/Manual_TELNET.pdf) tutorial from Olimex.[/*]
  • - Rather than the lengthy command line they suggest to start OpenOCD, I'd be inclined to create an openocd.cfg file with lines something like
    source [find interface/olimex-arm-usb-ocd.cfg]
    source [find target/stm32f1x.cfg]
    

    Then, from the directory containing openocd.cfg, start with path\to\openocd (or include openocd in your path)

  • - Once connected to OpenOCD via telnet, type *help* or *help flash* for more info. The actual flash command will be something like``` flash write_image erase path/to/your/hexfile 0 ihex ```
  • [/list]

    Apologies if you’re looking for a guide to complete toolchain setup under Cygwin. Unlikely I’ll be building my own toolchain under windows:\

    Rotsa ruck! -Hugh](http://www.olimex.com/dev/soft/arm/JTAG/Manual_TELNET.pdf)](http://www.freddiechopin.info/)](http://www.olimex.com/dev/soft/arm/JTAG/DRIVERS%20(libusb-1.2.2.0,%20CDM20808).zip)