Hi there,
I just tested out the use of stcgal to flash the controller, and it took a little bit of trial & error as the names used in the tool differ from the Windows utility. Thought it might make sense to add it to the wiki.
Here's the command that works: stcgal -t 20000 -b 57600 bbs-fw.hex. Start the command, then connect or restart the controller.
-t 20000 sets the oscillator frequency to 20MHz
-b 57600 sets the baudrate to 57600
Failing to set the baudrate will result flashing failing with an "incorrect frame start" error, while failing to set the oscillator frequency will make the controller non-functional (but can be re-flashed, not bricked).
To get the model number of the chip, simply run the stcgal command, then connect the controller, and it will print out the information.
Hi there,
I just tested out the use of
stcgalto flash the controller, and it took a little bit of trial & error as the names used in the tool differ from the Windows utility. Thought it might make sense to add it to the wiki.Here's the command that works:
stcgal -t 20000 -b 57600 bbs-fw.hex. Start the command, then connect or restart the controller.-t 20000sets the oscillator frequency to 20MHz-b 57600sets the baudrate to 57600Failing to set the baudrate will result flashing failing with an "incorrect frame start" error, while failing to set the oscillator frequency will make the controller non-functional (but can be re-flashed, not bricked).
To get the model number of the chip, simply run the
stcgalcommand, then connect the controller, and it will print out the information.