2017-01-15 06:40 PM
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.
Solved! Go to Solution.
2017-01-20 06:19 AM
Resolved.
Thank you.I did not understand it, rather than solving it.
Maple mini board does not work normallyI 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.
2017-01-16 12:19 AM
Hello
lee.namhun
I have moved your thread to the
where someone should be able to assist you.Thanks
Oli
2017-01-16 04:26 AM
Hello
lee.namhun
,Try to increase heap and stack sizes. Then, please let me know if it is OK with this suggestion.
Regards
Imen
2017-01-16 06:19 AM
Thank you very much.
I tested it.
Heap: 0x2000
Stack: 0x4000I 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.
(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.2017-01-16 08:41 AM
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
2017-01-20 06:19 AM
Resolved.
Thank you.I did not understand it, rather than solving it.
Maple mini board does not work normallyI 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.