Custom bootloaders, universal groundstation
02192025
Still trying to figure out how to program my flight controller with USB... I think its just a setup issue but exploring other options...
Programming STM32 via USB
1. Using Built-in USB DFU Bootloader
- No extra hardware needed
- Requires BOOT0 pin HIGH to enter DFU mode
- Flash firmware using STM32CubeProgrammer or dfu-util
2. Using USB-to-Serial (UART) Adapter
- Needs an external FTDI/CP2102 adapter
- Set BOOT0 pin HIGH to enter bootloader mode
- Flash via STM32CubeProgrammer
3. Custom USB Bootloader (Advanced)
- Requires writing a custom firmware bootloader
- Allows seamless firmware updates via USB
- More complex but powerful
- I am intrigued by writing a custom USB bootloader, I'll have to do some research
- STM32 Programming with USB Video
- is there a way do create a script that does what he does in this vid for me, so I don't have to keep flashing it
- also need to reference the official stm32 docs
- another interesting vid
- Looks like it is time to get deep into the STM32duino GitHub
Universal Groundstation
- Create a laptop based groundstation for controlling all vehicles.
- Live streamed telemetry
- Keyboard/Button control
- Takeoff/Land button
- Move 1m up, down, left, right, etc
- could control with either arrow keys or just buttons on the screen
- Would be able to use any vehicle I build, whether it uses active control or it is just a telemetry stream
- for a rocket it could test fins/tvc and arm/disarm. But after launch it would just stream data
- Similar to Ardupilot - just select a vehicle and go
- It's open source, but I don't think I'll mess with trying to branch it and create my own adaptation... I don't need anywhere near to that many features, it's probably easier to just make my own version but use Ardupilot as a starting point/template.