STM32 Programming Connector Standard

Introduction

For a long time this has been an undefined situation on WARG how we want to connect to STM32 microcontrollers for programming. Document to be developed more by electrical and firmware over time.

Table of Contents

Relevant Context

Past Conversations

Why we like STM32?

other micros have nice flashing features

ST micro is pretty good, idk, firmware people to fill this out

Solutions

WARG Historical Connector Usage

We considerred putting STLINK on pcba isnt viable for space reasons. cost wise also tough. also weight. we are devving for drones.

  • previous I dont know

  • ZP3 uses x and y

  • 6-pin JST

    • esc can adapter

    • Single Servo Module

    • 6s servo module

    • 6S Power Module

    • LED board 30.5x30.5

    • rpi interface rev b

    • LED board motor mount

  • Tag connect

    • none yet

Tag Connect

TAG-Connect for flashing bootloader. cheap on pcb side, expensive on user side bc the cables they sell are quite expensive. we should switch to this primarily? takes some board space and needs through holes

Bootloaders

programming over CAN, USB, or another higher level protocol after the bootloader is flashed. flash bootloader with tagconnect? we cant rlly flash bootloader in factory

JST-GH 6-pin

Using a JST connector then we can use a JST to adapt to anything we want to such as the adafruit STM programming STLink. STLInk is an SWD to USB adapter. Should be used whenever we have space.

Pinout chosen somewhat arbitrarily shown below:

 

image-20240622-153257.png