cancel
Showing results for 
Search instead for 
Did you mean: 

Basic circuit to load the Hex file to MCU via USB port

Nguyen Bao
Associate II

Hi experts,

I am designing a circuit using STM32 MCU, my application doesn't require strong MCU , so i decided to use 2 type of below MCU:

STM32F103C8T6

STM32F030F4P6

But i want to load the hex file to chip via on board designed circuit by micro USB port. I Researched about ST-Link circuit, but it's too difficult. I don't need debug, is there any basic circuits to help me load Hex file to chip ?

Thank you in advanced !

Have a nice day :smiling_face_with_smiling_eyes: !

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

RM0091 Reference manual STM32F0x1/STM32F0x2/STM32F0x8 says:

• USB DFU interface (STM32F04xxx and STM32F07xxx devices only)

so I would use STM32F042F4 instead.

I have succesfully used its USB in a project, but not for boot loader.

For evaluation, you might start with a NUCLEO-F042K6 board.

hth

KnarfB

View solution in original post

5 REPLIES 5
KnarfB
Principal III

Many newer STM32 MCUs have already a built-in (ROM code) USB DFU boot loader, see "AN2606 Application note STM32 microcontroller system memory boot mode" for an overview.

I, personally, wouldn't use a STMF103, but there are some 3rd party USB boot loaders for that chip, e.g. STM32duino-bootloader. These need to be flashed once via STLINK or (built-in) serial boot loader and sit in flash memory.

Anyway, you might want to use a STLINK-V3MINI or such for binging up your system.

hth

KnarfB

Nguyen Bao
Associate II

Wow, that's the information i need, thanks a lot for your feedback.

I have just read AN2606 Datasheet. Now i understood why STMF103 shouldn't be used.

Can you please to help me answer 1 more issue ?

How do you think about STM32F030F4P6, i don't need many I/O pins, so this MCU is quite suitable. Is it possible to use it with USB DFU boot loader ? I read in datasheet, it is mentioned as STM32F03xxx

, but i just want to confirm for sure.

Thank you in advanced !

Wow, that's the information i need, thanks a lot for your feedback. 

I have just read AN2606 Datasheet. Now i understood why STMF103 shouldn't be used. 

Can you please to help me answer 1 more issue ? 

How do you think about STM32F030F4P6, i don't need many I/O pins, so this MCU is quite suitable. Is it possible to use it with USB DFU boot loader ? I read in datasheet, it is mentioned as STM32F03xxx

, but i just want to confirm for sure. 

Thank you in advanced !

KnarfB
Principal III

RM0091 Reference manual STM32F0x1/STM32F0x2/STM32F0x8 says:

• USB DFU interface (STM32F04xxx and STM32F07xxx devices only)

so I would use STM32F042F4 instead.

I have succesfully used its USB in a project, but not for boot loader.

For evaluation, you might start with a NUCLEO-F042K6 board.

hth

KnarfB

Yay ! Again, Thank you so much !!