STM32F4. Internal converter USB-COM problem.

Posted on
  • Hi, Gordon, Hi all!
    It's me again.
    I have some question to community.
    STM323F4 includes USB-COM to connect with PC.
    But I did not get to use this feature.
    Now I'm use external USB-COM converter.
    Converter connected to pins {rx:A3,tx:A2}.

    My working code:

    Serial2.setup(9600, {rx:A3,tx:A2});
    

    Tried to use:

    USB.setup(9600);       
    

    and

    USB.setup(9600, {dm:A11,dp:A12});
    

    Can I use internal converter? How can I do this?

  • You just plug into the second USB connector - no extra code should be required (but you do still need to provide power via the first connector).

    There was a bit of info on setting up other boards such as the F4 here: http://www.espruino.com/Other+Boards

  • Two USB ports connected to board, but doesn't work.

  • You've definitely got the 'original' F407 discovery board, and not the F401? Have you tried a different USB cable?

    Maybe it's just that you need the drivers for it? But this is why we have the Espruino board - when there's one bit of hardware it's significantly easier to support it :)

  • I like to think that it is the original F407 :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

STM32F4. Internal converter USB-COM problem.

Posted by Avatar for user7265 @user7265

Actions