Skip to main content
Sean Brooks
Associate
July 16, 2018
Question

STM32F103C8 USB VCP PROBLEM (MPU RESET)

  • July 16, 2018
  • 5 replies
  • 1105 views
Posted on July 16, 2018 at 02:23

Hi everyone, I am wondering if someone can help me, I want to make a device that uses the onboard USB VCP

on the STM32F103C8

I have set up using CubeMX an using keil

my problem is while the USB is connected to my PC...  and the MPU's reset button is press I can no longer use my virtual com port

the only way I can get it working again is to disconnect the sub and plug it back in

has anybody got the code to make the USB do a soft disconnect when the MPU is soft reset

thank you

    This topic has been closed for replies.

    5 replies

    AvaTar
    Senior III
    July 16, 2018
    Posted on July 16, 2018 at 09:19

    You are talking about a Nucleo board, with a ST-Link V2.1 ?

    Are you sure it's not a problem on PC side ?

    If you use a dumb terminal program that does not properly release the COM port, it could remain blocked until a reboot or removal (in case of an USB VCP).

    Sean Brooks
    Associate
    July 16, 2018
    Posted on July 16, 2018 at 11:06

    hi, no i am not using a stlink, my programming is a ulink2

    no i have tried connecting to the pc without connecting to a putty and terminal

    but still when the press the restart button

    i am using my own pcb, i am using the on chip USB

    or is it better using one of the UART and USB to serial chips

    AvaTar
    Senior III
    July 16, 2018
    Posted on July 16, 2018 at 15:24

    Then I'm not sure what VCP you speak about. A USB/VCP implementation on the target ?

    Or some ulink functionality ?