cancel
Showing results for 
Search instead for 
Did you mean: 

hs / fs usb, discovery f4

ian239955
Associate II
Posted on May 30, 2013 at 12:28

Hi, 

I believe that FS is USB1 and HS is USB2. I have FS running in my project but can't seem to get HS running.

I can run this ST sample on the f4 discovery board:

http://www.st.com/web/en/catalog/tools/PF257882

I have to change the define of PLL_M from 25 to 8 in system_stm32f4xx.c to run on this board.

Then, if I just select the STM324xG-EVAL_USBD-FS workspace and run, I get ST Microelectronics Virtual COM Port appear in my device list, and it works fine with my PC app.

  

But if I change the workspace to STM324xG-EVAL_USBD-HS and run, I don't get a com port appear in the device list.

Why can't I use HS? Just a thought, is it anything to do with hardware config, pullup resistors??

Thanks

7 REPLIES 7
Posted on May 30, 2013 at 13:12

Why can't I use HS? Just a thought, is it anything to do with hardware config, pullup resistors??

Like an External PHY? Have you reviewed the respective schematics?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 30, 2013 at 13:38

Olimex has a dual USB FS implementation, you will need to change the project DEFINES and PIN ASSIGNMENTS to reflect the board configuration.

https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407.pdf

https://www.olimex.com/Products/ARM/ST/STM32-E407/

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ian239955
Associate II
Posted on May 30, 2013 at 15:50

OK, looking at the olimex, it seems the f4 has a set of pins for FS (mostly on port A) and a set of pins for HS (mostly on port B), so basically, I can't change the discovery board to HS without doing some microsurgery on the board to swap over to the HS pins - but if I do, it will just work in HS and (backward compatible) FS, without any external hardware. Makes you wonder why they didn't use the HS pins on the discovery?

Am I understanding this correctly?

Cheers, Ian

Posted on May 30, 2013 at 16:41

HS operation requires an External PHY, the STM3240G-EVAL is a more feature rich and expensive board. It has said PHY.

That most mezzanine solutions for the F4-DISCOVERY don't support HS, I'll assume the PHY is not routable, or otherwise conflicts with existing HW on the board.

Want to do HS, look at getting the EVAL board, or one of the WaveShare offerings.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ian239955
Associate II
Posted on May 30, 2013 at 17:45

Ok, I understand, the STM3240G-EVAL uses the ISP1705AET chip.

Thanks for the explanations. 

I wanted to look at HS to increase message throughput, but I think my message rate which seems to be about 200 / second both ways might be more due to usb polling? Is there any way to change this rate?

Thanks

Posted on May 30, 2013 at 17:55

I'm not that into USB. I use it for VCP/CDC and MSC. The Mass Storage Controller code on the F4-DISCOVERY works with MicroSDHC cards with a throughput of 600-700 KBps as I recall.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 30, 2013 at 18:04

I can find a STM32xxG-EVAL for about $200, not sure if it's the F2 or F4 version

The RedDragon 407 ($95) would appear to have a HS USB, but can't pin down a schematic. Will inquire with vendor.

http://www.ebay.com/itm/RedDragon407-STM32F4-Cortex-M4-Ethernet-wireless-2-4G-SDIO-Serial-camera-/121087293812?pt=Art_Prints&hash=item1c315d7974

http://www.aliexpress.com/store/product/RedDragon407-STM32F4-Cortex-M4/217299_817206651.html

Looks to use SMCS 3300

http://www.smsc.com/main/catalog/usb3300.html

http://openmcu.com/?product-204.html

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