[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
vedder.se forums • Impossible to flash
Page 1 of 1

Impossible to flash

Posted: 15 Aug 2017, 10:01
by alexisthethe
Hi guys,

I recently wanted to try a personal code on the STM32 of the VESC board, so I flashed an "empty" code on the STM32 generated with CubeMX and Keil-uVision.
Now, it is impossible to flash the bldc-firmware back.
Is there a chance I burnt my chip ?
Is it possible to flash a code wich is not the bldc-firmware on the VESC STM32 ?

Thanks for your answers guys.
Alexis

Re: Impossible to flash

Posted: 15 Aug 2017, 15:26
by rew
Yes it is possible to run other firmware. But, there are a few things on the VESC that could go wrong if you start toggling IO pins without thinking about what they do.

If you use some STLINK like device to program your other firmware into the vesc, you should also use that to re-program the VESC firmware.

Re: Impossible to flash

Posted: 15 Sep 2017, 19:01
by alexisthethe
hey rew,
thanks for your reply.

I actually flash a kinda blank code into the VESC with cubeMX using a STLINK, and I should have toggled some IO pins.

Now I use STLINK to flash the VESC program but that does not still work..

Have I toggled some pins that disable flashing it again ?

Re: Impossible to flash

Posted: 16 Sep 2017, 10:16
by rew
"good engineering" dictates that hardware designers make their stuff such that the software guys cannot break it.
In practice, nowadays with an ESC like the VESC that is not realistic. Software is part of the module that protects itself against breakage. And as with all open source, if you break it, you get to keep the pieces...

Now, if you programmed in a blank program, that did not toggle any IO pins, the chances of things going horribly wrong and your VESC dieing are small.

But if "cube" decided that you took say the STM32F4discovery example, which has a LED on PA10 and PB15 and that it will flash those for you to show that the programming worked,then... you're screwed.

Reprogramming should be possible unless such a mishap broke your CPU. Unlikely IMHO. But you ARE seeing the hints. Reprogramming should simply be possible and you're saying it doesn't work.