0
\$\begingroup\$

I'm making a PCB for a personal project using the STM32F205. In my plan, the STM32 only provides USB and SWD interface with the PC. I know that with the help of USB DFU, I can download my program to the system memory through USB.

My concern is whether the initial bootloader of the STM32 chip contains the DFU? I mean the bootloader in the STM32 chip I bought from the ST company. Because if not, I think there is no method to download the DFU bootloader into my board and I have to add another interface, like UART or SPI, to my design which is only used to download the DFU bootloader.

\$\endgroup\$
  • \$\begingroup\$ You mention already having SWD, that's typically the most flexible way to program these especially during development. \$\endgroup\$ – Chris Stratton Oct 21 '18 at 2:13
1
\$\begingroup\$

Does STM32 bootloader contains USB DFU?

Depends on the specific part. Refer to the part datasheet, or see AN2606 for a comprehensive overview.

For STM32F2 parts, it depends on the revision of the part. New parts (revisions X and Y) support USB DFU, but some older parts (revision B) do not.

\$\endgroup\$
0
\$\begingroup\$

During the development use SWD programmer/debugger.

I would suggest to write own bootloader as the built one is very simple and does not provide any app checks. It is especially important if your app controls something which can be damaged cause damage if the program is not correct.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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