cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I'm using stm32L073Rz , need to know how to configure it as a usb memory device, no demo examples are available for usb memory stick for this chip , i used cubemx to generate code for usb memory class and ran it.

svii
Associate III

It does not work , it gets detected as unknown device,what am i missing , should i add something more to cube mx generated code. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
David SIORPAES
ST Employee

There's a MSC example available in the Cube-L0 package here: STM32Cube_FW_L0_V1.11.2\Projects\STM32L073Z-EVAL\Applications\USB_Device\MSC_Standalone

View solution in original post

3 REPLIES 3
David SIORPAES
ST Employee

There's a MSC example available in the Cube-L0 package here: STM32Cube_FW_L0_V1.11.2\Projects\STM32L073Z-EVAL\Applications\USB_Device\MSC_Standalone

svii
Associate III

hi, thanks i did refer the example above , for my own code generated by cubemx, their is no difference much implementation is the same, i have a custom board with a nucleo -L073R mcu on it , do not have the stm32L073z-eval board , as i had posted earlier the usb is detecting as an unknown device , but why can't it register it as stm Mass Storage device as give in the usbd_desc.c file . Have i missed something .Thanks .

svii
Associate III

Hi Thanks , issue was due to clock, thanks for the reference example.