Skip to main content
EKaya.11
Associate
January 27, 2022
Solved

I just want to program my mcu (STM32F103C6T6A) via usb port which is connected to mcu's usb pins. I don't want to use jtag or swd. What should i do for boot0/1 pins?

  • January 27, 2022
  • 2 replies
  • 2900 views

I read AN2606 but i couldn't understand exactly. My understood is that if i connect boot0 pin to ground, main flash memory is gonna be selected.

My question is if i do it(connecting boot0 pin to ground), will i lose the ability which enable me to program mcu via usb port?.

This topic has been closed for replies.
Best answer by MM..1

Best hmm

STLINK ??? Is swd HW for program and debug no relevant with bootloader...

And boot0 on ground dont lose ability to run system loader from app, only block boot to.

2 replies

MM..1
Chief III
January 27, 2022

You must miss read AN , where you see that 103 have USB DFU? I seent

EKaya.11
EKaya.11Author
Associate
January 27, 2022

But it has usb connection pins. That's why i think like that

MM..1
Chief III
January 27, 2022

No this MCU can use only user type DFU. You need split flash to bootloader part and this proggram over SWD or supported boot serial system. After this boot USB and ...

Javier1
Principal
January 27, 2022

>if i do it(connecting boot0 pin to ground), will i lose the ability which enable me to program mcu via usb port?.

You wont be able to use the STLINKs bootloader DFU/UART/...(which requires you to pull high the boot pin after reset)

hit me up in https://www.linkedin.com/in/javiermuñoz/
MM..1
MM..1Best answer
Chief III
January 27, 2022

Best hmm

STLINK ??? Is swd HW for program and debug no relevant with bootloader...

And boot0 on ground dont lose ability to run system loader from app, only block boot to.

Javier1
Principal
January 27, 2022

k

hit me up in https://www.linkedin.com/in/javiermuñoz/