2019-11-30 08:59 PM
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: !
Solved! Go to Solution.
2019-12-01 01:46 AM
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
2019-12-01 12:25 AM
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
2019-12-01 12:40 AM
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 !
2019-12-01 12:40 AM
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 !
2019-12-01 01:46 AM
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
2019-12-01 08:30 AM
Yay ! Again, Thank you so much !!