Skip to main content
rumlyen
Associate III
December 20, 2015
Question

Newbie question on USB access

  • December 20, 2015
  • 0 replies
  • 394 views
Posted on December 20, 2015 at 06:03

Hello,

I need to configure SD card (SDIO-FATFS) access from PC through USB and copy files. Which example of STM32_USB-FS-Device_Lib_V4.0.0 should I follow for STM32L ? Is it the ''Mass_Storage'' example? Should I need to configure anything more for USB connectivity than these lines of code?

int main(void)

{

  Set_System();

  Set_USBClock();

  USB_Interrupts_Config();

  USB_Init();

  while (bDeviceState != CONFIGURED);

  .........

}

Thank you.
    This topic has been closed for replies.