Skip to main content
kqian
Associate III
January 17, 2014
Question

warning marker for vcp program

  • January 17, 2014
  • 10 replies
  • 1512 views
Posted on January 17, 2014 at 23:28

Hey Guys,

After I programed vcp for STM32F427 Eval board by following the example of STM32F429Discover board, but when I plug it into the PC, The PC can find it but always get a warning marker on the Device manager as shown below. Anyone have the idea on this problem?

0690X00000602qrQAA.jpg
    This topic has been closed for replies.

    10 replies

    Tesla DeLorean
    Guru
    January 17, 2014
    Posted on January 17, 2014 at 23:31

    Like you installed the 32-bit driver on a 64-bit machine, or it expects a signed driver?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    kqian
    kqianAuthor
    Associate III
    January 20, 2014
    Posted on January 20, 2014 at 13:22

    I used the same driver from the STm32F4Discover board demo. It works with the discover but not on my board. I believe some thing wrong on my c code.

    chen
    Associate II
    January 20, 2014
    Posted on January 20, 2014 at 15:16

    Hi

    ''I believe some thing wrong on my c code.''

    Most likely.

    What is the error for the bad comm port?

    kqian
    kqianAuthor
    Associate III
    January 20, 2014
    Posted on January 20, 2014 at 17:10

    The PC just show the driver was not successfully installed, but when I plug the Discover board in, not this error come.

    chen
    Associate II
    January 20, 2014
    Posted on January 20, 2014 at 17:22

    ''The PC just show the driver was not successfully installed''

    That means that the enumeration of the USB device was not successful.

    ''I used the same driver from the STm32F4Discover board demo. It works with the discover but not on my board.''

    What speed are you clocking at?

    (Make sure that the internal clock tree is configure correctly for your board)

    Are you using a Crystal Oscillator for the USB peripheral?

    (It is not advisable to use the internal RC to clock the USB peripheral, the tolerance of the timing means that it cannot guarantee the USB peripheral is clocked to within the USB specification)

    kqian
    kqianAuthor
    Associate III
    January 20, 2014
    Posted on January 20, 2014 at 21:26

    I think it is 8Mhz. Same with the Discover board. Is it configured in Option of Target?

    Tesla DeLorean
    Guru
    January 20, 2014
    Posted on January 20, 2014 at 23:00

    Then I'll suggest you enumerate the design differences between your board, and that of the STM32F429-Discovery, and what code changes you've make to accommodate those differences.

    I'd certainly rather do that, than try to guess what you've done wrong.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    chen
    Associate II
    January 21, 2014
    Posted on January 21, 2014 at 10:47

    ''After I programed vcp for STM32F427 Eval board''

    Do you have any example/demo projects for this board?

    If you do, they will have the correct code for setting up the clock tree for this board.

    The one exception to this may be the USB peripheral. You may have to check and set this yourself.

    If there is no demo project available for this board (which I doubt) then - you will have to figure it out.

    kqian
    kqianAuthor
    Associate III
    January 21, 2014
    Posted on January 21, 2014 at 23:11

    I used the demo code from STM32F429 Discover, do some modification, and add it to my code on the STM32F427 Demo board. I found that when I plug in the USB cable, it is trapped into

    SPI6_IRQHandler                                  

                    B    0690X00000604zmQAA.png

    Tesla DeLorean
    Guru
    January 21, 2014
    Posted on January 22, 2014 at 00:06

    That's actually a dumping ground for all the above mention interrupts, with weak linkage. Determine which interrupts you are enabling, and for which you have created handlers.

    Most likely one related to the USART you are using, or the code expects you to be using, or may be a TIM2 or SysTick?
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..