cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie + STM32L152C Discovery + USB DFU STM32CUBEMX

willem buitendyk
Associate II
Posted on October 07, 2017 at 04:50

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?

1 REPLY 1
Posted on October 09, 2017 at 17:03

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

https://my.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf

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