Hi,
Below is what I did (no problem for the compilation), the olimex-arm-usb-ocd light is green/yellow flashing, but the board’s led did not flash.
One weir thing I got below is “wrote 840 bytes from file stm32_blink_led.elf”, the elf file is bigger than 840 bytes.
Thanks.
840 2010-02-25 09:30 stm32_blink_led.bin
266272 2010-02-25 09:29 stm32_blink_led.elf
2420 2010-02-25 09:30 stm32_blink_led.hex
telnet localhost 4444
Trying ::1…
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Open On-Chip Debugger
flash probe 0
Target not halted
unknown error when probing flash bank ‘#0’ at 0x00000000
halt
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x080001c8 psp: 0x200007f0
flash probe 0
device id = 0x10016418
flash size = 256kbytes
flash ‘stm32x’ found at 0x08000000
flash info 0
#0 : stm32x at 0x08000000, size 0x00040000, buswidth 0, chipwidth 0
0: 0x00000000 (0x800 2kB) protected
1: 0x00000800 (0x800 2kB) protected
2: 0x00001000 (0x800 2kB) protected
3: 0x00001800 (0x800 2kB) protected
…
…
#125: 0x0003e800 (0x800 2kB) protected
#126: 0x0003f000 (0x800 2kB) protected
#127: 0x0003f800 (0x800 2kB) protected
stm32x (Connectivity) - Rev: Z
stm32x mass_erase 0
stm32x mass erase complete
flash write_image stm32_blink_led.bin 0x08000000 bin
not enough working area available(requested 16384, free 16336)
wrote 840 bytes from file stm32_blink_led.bin in 0.195986s (4.186 kb/s)
stm32x mass_erase 0
stm32x mass erase complete
flash write_image stm32_blink_led.elf
not enough working area available(requested 16384, free 8144)
wrote 840 bytes from file stm32_blink_led.elf in 0.205856s (3.985 kb/s)
stm32x mass_erase 0
stm32x mass erase complete
flash write_image stm32_blink_led.hex
not enough working area available(requested 16384, free 8144)
wrote 840 bytes from file stm32_blink_led.hex in 0.233992s (3.506 kb/s)