This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stm32f407 usb High speed host

Hi
I have question about STM32F407 and USB host.
I am using discovery board and I can work with USB Full speed properly. I need to work with USB High Speed but in keil projects there is a sample which is based on ULPI and it needs USB HS PHY (it is not exist on discovery board)

I need to know: What are exactly those pins with names: USB_HS_DP and USB_HS_DM on microcontroller package?
is it possible to port this sample for USB HS or it just need external PHY.

another question about MCBSTM32F400:
Do you know the throughput of USB HOST HS as a MSD driver?

for example if you open a file and just write a 32768 bytes buffer how long does it take?
like this:

U8 buff[32768];
void tst_fwrite (void) {
  FILE *fout;
  U16 i;
  fout = fopen ("speed.log","w");
  if (fout != NULL) {
    for(i=0;i<512;i++)
     fwrite (&buff[0], 1, 32768, fout);
  }
  fclose (fout);
}


it will write 16MB.
with such a code on USB FS it can write 950KByte per second.
maybe it will be my Tempting to buy MCBSTM32F400.

Parents Reply Children
  • Hi Tsuneo Chinzei

    thanks for your details but I couldn't get this part:
    "It works in full-/low-speed, but not on high-speed."

    what's the meaning of this sentence?

    you mean these pins (PB14 and PB15) are just have the name of High speed USB but can not work in High Speed mode.

    about the write speed with external PHY, I know it depends on USB stick but, for example speed of Silicon Power 8BG 200x CompactFlash with Transcend card reader in my computer is about 9MB/s

    Is it possible to write with such speed by external PHY?

    another thing:

    I changed USE_ULPI_PHY to USE_EMBEDDED_PHY and HCD_GetCurrentSpeed function always return "Full speed" value.

    speed of write is about 500KB/s ... it should be optimize but it is not High speed

  • It is my understanding that you need an external PHY to get to the 480 Mbps rates.

    You should be able to test the maximal rate of the flash device on the STM32 without USB, this will be the limiting factor.

    I don't have a system set up to bench mark this for you. I'd guess that 5-10 MBps would be achievable.

  • Is there anybody has MCBSTM32F400 or STM3240G-EVAL to test this speed