Hi everyone,
For my next project I want to use an ARM (going to need the clock speed) and so picked up an STM32 F103 VBT6 (LQFP100 package). I also got the ARM-USB-TINY by Olimex.
I’ve soldered it down to a quick breakout board that just brings out all the pins, and connected it up to the programmer.
After going through a few threads here I managed to get OpenOCD up and running and it appears to program the device fine. I’m using the latest svn revision of OpenOCD. My sample code is from stm_p103_blink_flash which was included with the programmer.
Programming the device:
$ openocd --version
Open On-Chip Debugger 1.0 (2008-08-25-16:53) svn:967
> halt
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x000008b2
> flash probe 0
device id = 0x20016410
flash size = 128kbytes
flash 'stm32x' found at 0x08000000
> stm32x mass_erase 0
stm32x mass erase complete
> flash write_bank 0 main.bin 0
> verify_image main.bin 0
verified 4052 bytes in 1.237543s
> reset run
JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
JTAG device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
> poll
target state: running
The code is meant to flash an LED connected to PC12. However, I’ve hooked a voltmeter up to PC12 and it just shows 0.78V between PC12 and GND, with no change. An LED connected to PC12 doesn’t light up.
The ARM is completely connected to the programmer (every pin on the JTAG socket goes somewhere) and all the power pins are connected to power. BOOT0 is connected to ground.
I’m at a loss as to why the code isn’t working.
I’ve tried to find other sample code to try, but haven’t succeeded.
I also tried running ‘make’ in the example folder, but got the following error:
.compiling
arm-none-eabi-gcc -I./ -c -fno-common -O0 -g -mcpu=cortex-m3 -mthumb main.c
make: arm-none-eabi-gcc: Command not found
make: *** [main.o] Error 127
I can’t find where I’m supposed to get arm-none-eabi-gcc from. I’ve heard mentions of arm-gcc, but can’t find this anywhere either.
If anyone could point me in the right way to get code compiling, that would be really appreciated. Some kind of website with documentation would be great too, though the datasheets from ST should cover this (right?).
Thanks