STM32F051-DISCOVERY Demo Error Flashing

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

STM32F051-DISCOVERY Demo Error Flashing

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F051-DISCOVERY Demo Error Flashing

Post 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
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: STM32F051-DISCOVERY Demo Error Flashing

Post by aimatt »

I am using the stlink OS X port from https://github.com/texane/stlink. Pulled yesterday.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F051-DISCOVERY Demo Error Flashing

Post 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
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: STM32F051-DISCOVERY Demo Error Flashing

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F051-DISCOVERY Demo Error Flashing

Post by Giovanni »

You could report the problem to the GDB server author, probably there is a simple fix.

Giovanni
aimatt
Posts: 18
Joined: Tue Jun 05, 2012 7:11 pm

Re: STM32F051-DISCOVERY Demo Error Flashing

Post by aimatt »

I submitted an issue on their Github page
Post Reply