Skip to main content
Andrey Semenov
Associate II
July 25, 2016
Question

Can't connect STM32F4 via USB to PC

  • July 25, 2016
  • 5 replies
  • 1626 views
Posted on July 25, 2016 at 09:19

to be migrated, sourceId: 68358:697285D7-A9CA-445D-B16C-F23BF0E3B1A3

    This topic has been closed for replies.

    5 replies

    slimen
    Visitor II
    July 26, 2016
    Posted on July 26, 2016 at 13:20

    Hello,

    This error it can be related to the HS max packet size. So you can :

    1) Increase the heap and the stack size. 

    2) If you use the embedded phy of the HS port, change the buffers size and HS max packet size from 512 to 64.  

    Regards

    Andrey Semenov
    Associate II
    July 26, 2016
    Posted on July 26, 2016 at 15:48

    Ok, where can I find these stack and buffer sizes? My MC doesn't have firmware. I have no .c files. Or these actions I should do in Windows?

    Tesla DeLorean
    Guru
    July 26, 2016
    Posted on July 26, 2016 at 18:27

    Use JTAG/SWD and get software on the chip to validate your design. Of specific interest is that the HSE starts, how long it takes to start, and the frequency (output via MCO) is solid.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Andrey Semenov
    Associate II
    July 27, 2016
    Posted on July 27, 2016 at 19:17

    What software? My MC is empty, there isn't any firmware in it.

    Or I should write it to start MC in DFU mode?
    Tesla DeLorean
    Guru
    July 27, 2016
    Posted on July 27, 2016 at 21:46

    You writes software, you JTAG it.

    You validate your design from the inside out.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..