Skip to main content
tan loi
Associate II
November 4, 2017
Question

USB CDC Device_Only, re-connect port

Posted on November 04, 2017 at 19:46

I'm using STM32F407 Discovery-1, I use USB CDC to send and receive data from terminal. Everything ok but issue that I need re-connect port to transmit and receive data, but i remember that when i used 

STM32F407 Discovery , every when i upload new code, i don't need to re-connect port. I use CubeMx 4.14 for both STM32F407 Discovery versions. Please help me to resolve this problem. Sorry for bad my english.

    This topic has been closed for replies.

    2 replies

    ST Technical Moderator
    November 6, 2017
    Posted on November 06, 2017 at 12:25

    Hello

    thaitanloi365

    ,

    Please use the last version of CubeMx 4.23 and firmware package STM32CubeF4.

    Have a look to the CDC application from CubeF4 package and you canstart with a working USB example to identify what is going wrong in your case and confirm if the problem here seems related to the hardware or software environment.

    Best Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    tan loi
    tan loiAuthor
    Associate II
    November 6, 2017
    Posted on November 06, 2017 at 14:27

    Thanks for your recommendation, I have used other versions as CubeMx 4.19,4.22 and 4.22.1 and other firmware versions as V2.J28.M18 Debug +Mass storage and latest firmware version, but the problem isn't resolved. I had to re-connect port every i upload new code. I confirm that when i use this code for STM32F407

    Discovery 

    ( not Discovery 1 ' with firmware  ST-LINK V2 Debug. This problem is fiexed.