I today received my first Olimex products and despite very carefully following the instructions (with minor adjustments where they do not match the software on the CD) have not been successful in getting them to work. There’s probably something obvious wrong, but I am not at all familiar with the toolchain. Here are the details:
Hardware: STM32-103STK Starter Kit for Cortex M3 and ARM-USB-TINY
I followed the instructions in the HOW_TO_INSTALL.txt – see detailed notes below – but they fail near the end with unable to find the project directory (and hence main.out). Any idea what could be the problem? The notes below were on Windows 7, by I have also tried XP and the default installation directory, with identical results.
Mike Cowlishaw, UK
Following HOW TO INSTALL.txt:
Installed software from CD using wizard, to c:\olimex; wizard warned 3 drivers to install
Connected plain USB for power, then ARM-USB-TINY to JTAG.
Initally failed to install driver (not unexpected … is on CD)
→ device manager, right click on Olimex OpenOCD device → update driver → browse for driver → c:\olimex\ARM-USB-OCD-DRIVER [Security prompt: Install anyway]
→ device manager, repeat for other Olimex device [no security prompt]
→ device manager, repeat for ARM serial port that appeared (became COM6) [Security prompt: Install anyway]
Start Eclipse (Ganymede); shows a list of projects, chose: stm32f103-stk, expanded, double-clicked main.c.
Got ‘resource is out of sync with the file system’ (possibly expected); did Project→Build All as stated – plausible output – make OK; main.c now shown
Window→Show View→Other…→Debug→OK (window in bottom pane now activated)
Click on main.c pane to activate
Run→External Tools→Open OCD Tiny [Security prompt: allow on private network ]; various ‘JTAG device found’ messages
Run→Debug Configurations…→zylin Embedded debug (Cygwin); click on project (stm32f103-stk Debug), then Debug button. Console shows:
Warning: /cygdrive/C/olimex/projects/stm32f103-stk: No such file or directory.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No registers.
target remote localhost:3333
0x08000120 in ?? ()
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor flash erase_sector 0 0 3
erased sectors 0 through 3 on flash bank 0 in 0.118007s
monitor flash write_image main.bin 0x0
No flash at address 0x00000000
wrote 0 byte from file main.bin in 0.005001s (0.000000 kb/s)
1breakpointkeepy 0x00000014in main at main.c:43
Breakpoint 1 at 0x14: file main.c, line 43.
break main
cont
Program received signal 0, Signal 0.
0xfffffffe in ?? ()