0
\$\begingroup\$

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have to use UART interface to program the controller.

Please help me on this.

\$\endgroup\$

closed as too broad by Colin, RoyC, laptop2d, Finbarr, Warren Hill May 24 at 7:45

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0
\$\begingroup\$

Microcontrollers are, by default, programmed using their so-called programming/debug interfaces. In case of STM32, it has SWD and JTAG interfaces for programming and debugging. You can use for example an ST-Link debugger to connect to these interfaces and program the device. If your application requires programming over USB or UART, you can use a bootloader to flash the microcontroller over these interfaces.

\$\endgroup\$
  • \$\begingroup\$ Yes, that is another option to program through serial. But can I use the USB programming(as it has DP, DM pins), which is given for the USB OTG interface \$\endgroup\$ – PCBLearner182 May 17 at 10:18
  • \$\begingroup\$ Yes, it is possible to access the bootloader using the DP/DM pins at PA11 and PA12. Check section 33 in the link I provided for more information. \$\endgroup\$ – Bora May 17 at 11:08
  • \$\begingroup\$ But the pins for DP and DM are PB14 and PB15 respectively \$\endgroup\$ – PCBLearner182 May 17 at 12:07
  • \$\begingroup\$ Both PA11/12 and PB14/15 can be used for USB pins. However, the bootloader is configured to use the PA11/12. It won't work with PB14/15. \$\endgroup\$ – Bora May 17 at 12:20
  • \$\begingroup\$ Thank you. Is it possible to try this case in CubeMx ? \$\endgroup\$ – PCBLearner182 May 18 at 6:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.