cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBEMX STM32F103CBT6 USB Virtual COM problem

namhun lee
Associate II
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.

1 ACCEPTED SOLUTION

Accepted Solutions
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.

View solution in original post

5 REPLIES 5
Oliver Beirne
Senior
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

Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
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.
Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
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.