stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.82k stars 968 forks source link

entering DFU mode on nucleo_l476 #741

Closed andhieSetyabudi closed 5 years ago

andhieSetyabudi commented 5 years ago

i use PlatformIO with stm32duino as the packages ( same as arduino for stm32).. chip on my own board is stm32l476 same as nucleo_l476. i wanna upload my program onto the chip through usb, so the choice is DFU. is there library for me to set the bootloader?? or how to set MCU to entering the DFU ?

thanks

fpistm commented 5 years ago

Hi @andhieSetyabudi Currently there is no automatic way to enter in DFU mode. stm32l476 has the STM32 builtin bootloader which support DFU. Refers to the AN2606 STM32 microcontroller system memory boot mode

For your case set BOOT0 to 1 will allow enter in DFU mode. USB cable have to be plug before powering the board if this is not USB which power it. Note: I've tested with Nucleo L476RG.

andhieSetyabudi commented 5 years ago

hi @fpistm thanks for your reply.. i've already test to entering DFU by set BOOT0 to 1 and it success.. but that makes not simply by press BOOT0 to set it 1 every flashing it.. maybe there is other way or trick to set my MCU to entering DFU mode automaticaly ??

thanks

fpistm commented 5 years ago

See #706