SDSU Flashing Guide

From FrogPilot Wiki
Jump to navigation Jump to search

idnot's Unofficial SDSU Flashing Guide

This guide isn't meant to be an end-all-be-all for flashing, and I always recommend reaching out to TinyBear for more advanced help. This is mostly just a basic guide to get people through what should be a straightforward process. This will not work for Erich's SDSU; please reach out to him if you need help.

Things You'll Need ๐Ÿงฐ

Getting a Cable ๐Ÿ”Œ

First, you'll need two USB cables that can carry power and data. Without data transfer capability, you can't send info to the board. If you don't know if your cables carry data, find a device that can send data from one side of the cable to the other, like a phone connected to your PC. I used two USB 3.0 USB-B to USB-A cables. Try to use two identical cables if you can. (You can try this with one cable if it's USB-A to USB-A or USB-C to USB-A.)

Cutting It Up ๐Ÿชš

Cut the USB cables in half. Cut one about two-thirds of the way and the other halfway. Clean up any shielding and cloth cable before proceeding.

Joining the Cables ๐Ÿฉน

Strip the wires inside the cables carefully. Thread/press the copper wires together, cover them with heat wrap, and heat it up. If using tape, just tape the wires together. For the red wire, cut it and then carefully place both red wires PLUS your extra wire together and tape it up, leaving the extra wire hanging off. If one side of your USB is shorter, point the extra wire in that direction. Once done, check that data transfer works to ensure the connections are correct.

Program Setup ๐Ÿ’พ

Download the STM32CubeProgrammer software, making sure you click the select version drop down and selecting 2.14.0. It requires you to provide your email, but it's free, and you can download as a guest. Install the program and open it. Focus on the top right corner: USB configuration -> Port. Make sure the drop-down says No DFU.... If not, select it. On the left-hand side, click the second option from the top, the arrow pointing down.

Docking the SDSU ๐Ÿ˜

Plug your USB cable into your computer, then, while holding the extra wire to the metal USB part (ground), connect the SDSU, wait around 7 seconds and then release the wire. Sometimes, you'll need to hold a button while doing this. If successfully connected, the SDSU will not light up, and it should appear under Other Devices in Windows Device Manager. STM32CubeProgrammer should also show it in the Port section. For me, I had to keep the wire connected the whole time; you might need to do so as well, just play around with it.

Flashing ๐Ÿ˜ณ

Start by doing a Full chip erase, which is a button to the left of the Port section. Click it and agree to any prompts; it only takes a second. Next, you'll see an option in the upper left that says File path. Click Browse and locate the first .bin file, bootstub.sdsu.bin. Click it, and make sure the Start address is 0x08000000. Once verified, click Start Programming. It only takes a second.

Now, repeat the process, but switch the file to sdsu.bin, and change the Start address to 0x08004000. Ensure everything is correct and click Start Programming. Once that's done, you're good to eject the SDSU and try it out!

Please be careful while testing any hardware/software-related changes you've made to your Comma 3/3x and car-related driving systems.