2017-10-06 07:50 PM
I have the STM32L152C discovery board. I used stm32cubemx to create a very simple bare bones project which will essentially allow me to try out the DFU mode with the PA11 and PA12 pins and a usb cable. I am not getting any indication that my board is being detected by my computer(s). I have the boot0 pin connected to Vcc, usb green wire connected to pin PA12, usb white wire connected to PA11, usb red wire connected to ext_5v and usb black wire connected to GND???
What am I missing?
2017-10-09 08:03 AM
Hello!
By put BOOT0 pin to Vcc you force your device to boot from system memory.
Code made from cubeMX is loaded to flash memory (different than system memory)
If you try to access bootloader(system memory), read first
about availability of USB bootloader in your device.If you just want to run code made from cubeMX and loaded to flash memory , BOOT0 pin must be in LO state.
Regards
vf