Page 1 of 1

STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 7:17 pm
by aimatt
Here's the output after I successfully compile the ARMCM0-STM32F051-DISCOVERY demo with YAGARTO and try to load it on the device:

Code: Select all

(gdb) load ~/Dropbox/Projects/OpenSource/ChibiOS/demos/ARMCM0-STM32F051-DISCOVERY/build/ch.elf
Loading section startup, size 0xc0 lma 0x8000000
Loading section .text, size 0x67d8 lma 0x80000c0
Loading section .data, size 0xb0 lma 0x8006898
Error finishing flash operation
(gdb) continue
Continuing.
Cannot access memory at address 0xffffffff


The blink example that comes with the stlink source works fine.

I do see the COM red and green LEDs blinking opposite each other. Is this what the demo is supposed to do? I'm thinking maybe it did upload but I was expecting the user LEDs to blink.

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 7:25 pm
by Giovanni
Hi,

The two user leds should both blink. It could be a loading problem, what GDB server are you using? version?

I use the server from the Atollic toochain 3.1.0.

Giovanni

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 7:30 pm
by aimatt
I am using the stlink OS X port from https://github.com/texane/stlink. Pulled yesterday.

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 7:49 pm
by Giovanni
Hi,

I just re-tested the demo from the current trunk and it worked as expected, I think it could be something about the GDB server, could you try using the lates ST Visual Programmer (I assume they updated it for the F0).

Giovanni

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 8:20 pm
by aimatt
I flashed it with the ST-Link GUI and it worked! I wanted to stay native OS X, but I can live with compiling on OS X and flashing with the Windows virtual machine. At least I get to use my favorite text editor.

Thanks a lot for the quick response. I'm looking forward to doing fun things with ChibiOS.

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Tue Jun 05, 2012 8:58 pm
by Giovanni
You could report the problem to the GDB server author, probably there is a simple fix.

Giovanni

Re: STM32F051-DISCOVERY Demo Error Flashing

Posted: Fri Jun 08, 2012 5:07 pm
by aimatt
I submitted an issue on their Github page