Skip to content

Add stcgal usage to wiki #283

Description

@Eelviny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions