Skip to main content
namhun lee
Associate
January 16, 2017
Solved

STM32CUBEMX STM32F103CBT6 USB Virtual COM problem

  • January 16, 2017
  • 5 replies
  • 1339 views
Posted on January 16, 2017 at 03:40

Hi,

1. I'm using Maple mini of STM32F103CBT6 microcontroller.

2. I use trueSTUDIO.

https://www.sparkfun.com/products/retired/11280

I created USB Virtual COM with CUBEMX. (4.0)

It looks very simple and nothing wrong.

But it does not work.

I have confirmed that the board is normal.

If I replace the boot loader, it will work normally.

First, I set it as follows.

But Device Manager does not even search for new devices.

So I tried the same test on the Nucleo F446RE.board.

But the same problem occurred.

It does not appear in Device Manager.

However, I changed the settings below and succeeded in normal operation.

vbus_sensing_enable = DISABLE;

But I want to use it in STM32F103CBT6 and STM32F103RET6. (for test)

I attach a file generated from cubemx.

I need help.

Thank you.

Please let me know if there is someone who is working normally.

If it is affected by the ide tool, please tell me about the possible tools.

    This topic has been closed for replies.
    Best answer by namhun lee
    Posted on January 20, 2017 at 14:19

    Resolved.

    Thank you.

    I did not understand it, rather than solving it.

    Maple mini board does not work normally

    I bought a 'nucleo-F1103RB' board and it succeeded immediately.

    The cubemx code was generated correctly.

    I first knew that cubemx was a c code.

    I also found that it is not easy to call c ++ code like visual c.

    I do not want to develop with c, so I think it's time to switch back to Aduno or ASF(Atmel software framework)

    I was so shocked.

    5 replies

    Oliver Beirne
    Associate II
    January 16, 2017
    Posted on January 16, 2017 at 09:19

    Hello 

    lee.namhun

    I have moved your thread to the

    https://community.st.com/community/stm32-community/stm32-forum?sr=search&ampsearchId=d192029a-0599-4a89-b10b-65d963078e02&ampsearchIndex=0

    where someone should be able to assist you.

    Thanks

    Oli

    ST Technical Moderator
    January 16, 2017
    Posted on January 16, 2017 at 13:26

    Hello

    lee.namhun

    ‌,

    Try to increase heap and stack sizes. Then, please let me know if it is OK with this suggestion.

    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
    namhun lee
    Associate
    January 16, 2017
    Posted on January 16, 2017 at 14:19

    Thank you very much.

    I tested it.

    Heap: 0x2000

    Stack: 0x4000

    I have been searching and testing most of the last three days as below.

    Https://community.st.com/search.jspa?q=stm32f103*%20USB

    I have tried other examples too.

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef1.html

    (STM32Cube_FW_F1_V1.4.0 \ Projects \ STM3210C_EVAL \ Applications \ USB_Device \ CDC_Standalone)

    But there is a problem.

    The usb clock does not seem to match.

    'Appears as unknown device.'

    I would appreciate it if you could give me an example to try.

    I am very suspicious of the code generated by cubemx itself.

    But I do not have the ability to check.
    ST Technical Moderator
    January 16, 2017
    Posted on January 16, 2017 at 17:41

    Hello,

    Maybe you would check the clock setting and your 

    configuration used. Y

    ou can 

    refer to your related reference manual for more clarification about the configuration to use. 

    Or check if this is due to error in device descriptors.

    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
    namhun lee
    namhun leeAuthorBest answer
    Associate
    January 20, 2017
    Posted on January 20, 2017 at 14:19

    Resolved.

    Thank you.

    I did not understand it, rather than solving it.

    Maple mini board does not work normally

    I bought a 'nucleo-F1103RB' board and it succeeded immediately.

    The cubemx code was generated correctly.

    I first knew that cubemx was a c code.

    I also found that it is not easy to call c ++ code like visual c.

    I do not want to develop with c, so I think it's time to switch back to Aduno or ASF(Atmel software framework)

    I was so shocked.