Bootloader installation

Post here first, or if you can't find a relevant section!
Post Reply
arpruss
Posts: 83
Joined: Sat Dec 21, 2019 10:06 pm

Bootloader installation

Post by arpruss »

Here are my procedures for flashing the bootloader on a fresh pill:

1. Move the top jumper to the right.
2. Use test clips to connect a usb-uart bridge's RX to PA9 and TX to PA10 on the board.
3. Plug usb-uart into Windows PC.
4. Plug board into Windows PC.
5. Check with devmgmt.msc what the serial port number is.
6. Run stm demonstrator.

Is there any way to cut any minutes in the process?

Note that I don't bother with connecting the ground between the usb-uart bridge and the board, since they're both plugged into USB on the same PC, and that seems to be good enough for connecting the grounds. I assume this is not best practices but it saves me dealing with another test clip, and hasn't given me any trouble. I also don't bother to solder anything at this stage, unless the board needs BOOT0/BOOT1 header pins to be soldered.

My one problem is that I keep on forgetting which which of PA9 and PA10 goes to RX and which goes to TX, and so I always have to google (and with the stm32duino wiki down, it's harder).
ag123
Posts: 1657
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: Bootloader installation

Post by ag123 »

Andreas Spiess who used to be a member in the old forum introduced the use of 'dupont wire shells'
https://youtu.be/eI3fxTH6f6I?t=196
i find it quite innovative as you can make your custom connecting wires :D
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: Bootloader installation

Post by stevestrong »

For STM32 chips the Tx is the first and has the lower number.
So PA9 is Tx, the next (PA10) is Rx. This applies for other U(S)ART ports, too.
Post Reply

Return to “General discussion”