sugarboat icon indicating copy to clipboard operation
sugarboat copied to clipboard

Suport for Programing

Open azgael opened this issue 11 months ago • 1 comments

Dear Rbaron I have built and soldered the sugarboat and would like to bring it to life, I have program the bootloader but not sure if is flashed the firmware. would it be possible to have from you some orientation in how to flash, configure and read data from it, I would like to use it with homeassistant. Thank you very much in advance!!! BR Azgael

azgael avatar Jan 19 '25 09:01 azgael

@azgael,

The programming is done with the standard SWD Arm interface. There's a wiki page on a similar project that I hope is a good starting point. The programming connections are exactly the same. Other pages on that same wiki might also be interesting.

Once the bootloader is flashed via the SWD interface, you should be able to connect the Sugarboat via USB-C, open the PlatformIO project (code/sugarboat/) and flash it over USB using UF2. If I remember correctly I did it from VSCode using the PlatformIO extension.

In the README there's a link to some of the clients I wrote a couple of years ago when I was actively working on Sugarboat. One of them is an ESPHome (and Home Assistant) integration (see clients/esphome/sugarboat-bridge.yaml)). I have a different setup and I haven't used it since, so you may need to do some adjustments for newer ESPHome versions.

Good luck!

rbaron avatar Jan 21 '25 00:01 rbaron