Skip to main content
ihouses ihouses
Associate III
February 24, 2018
Question

After the MASS STORAGE drive turns on the virtual com port stops receiving from the microcontroller.

  • February 24, 2018
  • 8 replies
  • 1278 views
Posted on February 24, 2018 at 13:28

I am using a STM32L031K in the development board.

Everytime that you connect the board to the PC after some seconds the mass storage pops up with the name 'NODE_L031K6'.

I have programmed the microcontroller to print all the time a letter 'A' by means of the virtual serial port.

As soon I connect the board I see how the letter is print in my serial terminal but when the Mass storage pop up the communication stops!!

Any idea how to solve this? Is it a drivers problem?

Yesterday I thought that I fix the problem uninstalling the driver and installing again, it worked for a while since I turned on the PC again and... unfortunatelly the same history.

Best regards,

Jose

    This topic has been closed for replies.

    8 replies

    Andrew Neil
    Super User
    February 24, 2018
    Posted on February 24, 2018 at 14:59

    the development board

    what 'development board' ?

    Be specific.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    ihouses ihouses
    Associate III
    February 24, 2018
    Posted on February 24, 2018 at 16:25

    Hi 

    I am using the STM32L031KT in a nucleo32 L031K6 board.

    Bogdan Golab
    Lead
    February 24, 2018
    Posted on February 24, 2018 at 15:42

    Run ST-LINK Utility and check if the ST-LINK firmware is up to date. Just to be sure that the other side is running the latest firmware.I do not want to say it will fix the problem but I looked into the release notes and see that similar issue was seen in the past with one of the older st-link firmware and has been probably fixed by the newer firmwares:

    'Removed risk of loosing the

    virtual

    COM port interface if reprogramming the application (by drag-and-drop) while the

    virtual

    COM port is intensely used.'

    ch 4.5 of the RN:

    http://www.st.com/content/ccc/resource/technical/document/release_note/98/de/c7/1b/08/82/44/38/DM00107009.pdf/files/DM00107009.pdf/jcr:content/translations/en.DM00107009.pdf

     
    Bogdan Golab
    Lead
    February 24, 2018
    Posted on February 24, 2018 at 15:43

    I meant this utility:

    http://www.st.com/en/development-tools/stsw-link004.html

     
    ihouses ihouses
    Associate III
    February 24, 2018
    Posted on February 24, 2018 at 16:29

    I will check that, thanks.

    ihouses ihouses
    Associate III
    March 20, 2018
    Posted on March 20, 2018 at 16:49

    Hello,

    After some time I still continue with the same problem. I will summarize again just in case anyone does the solution:

    I am using:

    - Windows 7 professional 64 bits

    - I am installing the last version of VCP_V1.5.0 W7 X64 bits

    - I use a STM32 nucleo board with the micro L031K6, I use the ST link last firmware released.

    The problem is that every time that the PC is rebooted the virtual com port stop RECEVING from the microcontroller as soon as the mass storage is detected (few seconds after connecting the board). The only solution is uninstall manually the Virtual com port driver and detect again the device (install the driver again). This will work until the next PC reset.

    This is quite an inconvenience for me, I have searched about this and I found a message in a forum descriving exactly the same problem. The solution was to use the 32bits driver but in my case I can not do that.