2018-06-17 10:16 PM
I generate a TrueSTUDIO project for STM32F042K6 to make a USB CDC VCP device using STM32CubeMX-4.23, firmware 1.9.0. Change RX/TX buffer size to 256bytes, and SYSCLK source to HSI48.
Build Project OK.
Debug and then click the 'Resume(F8)' button. Win7 device manager shows a 'STMicroelectronics Virtual COM Port' device. That's great!
But after I click the red 'Terminate (Ctrl+F2)' button, that COM Port device disappears. After 1 second, a 'STM Device in DFU Mode' device shows up.
If I power up my board directory, I get a 'STM Device in DFU Mode' too.
Why?
I want to get a stable Virtual COM Port. How should I do?
2018-06-19 06:55 PM
Problem solved. I connected Boot0 to high level. Now I connect it to GND and the app works.