cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L412RBT6, CubeMX code for USB FS MSC doesn't work.

taz1000
Associate III

I have designed STM32L412RBT6 board with USB FS connection.

With CubeMX 5.0.0 and L4 firmware package V1.13.0, I generated USB MSC project for TrueStudio.

But, it doesn't work at all.

PC couldn't recognize my MCU.

For test, I changed the MCU to STM32F070RBT6 and generated USB MSC project with CubeMX.

Compiled with TrueSTUDIO.

It works OK.

Is there any known issue in my STM32L412RBT6 + CubeMX5.0 + L4_1.13.0 + TrueSTUDIO + USB FS MSC ?

* I need to confirm the HW is okay or not.

Is there any one who can upload any USB-ready firmware hex file for STM32L412RBT6 ?

Then, I can check my hardware with it.

8 REPLIES 8
Imen.D
ST Employee

Hello,

Try to increase the heap and stack size (in Project Settings of CubeMX)

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Do you have a crystal source on this board? What frequency?

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

Dear Imen,

I changed

Min. Heap Size -> 0x400

Min. Stack Size -> 0x800

But, the code doesn't work...

* I had compiled Nucleo-L412RB-P USB HID_Standalone project with Keil.

It works on my board.

It seems like that there is no problem in my HW.

Best Regards,

Danny

Dear Clive,

I have 16MHz oscillator on board.

With RSS setting 'bypass', the tool did the clock configuration and there is no problem.

Best Regards,

Danny

MishaT
Associate II

Need increase Min. Heap Size and have 48Mhz clocks in USB. Min. Heap Size > MSC_MEDIA_PACKET.

Dear MishaT,

I re-tried as your comment. But, it still fails.

Regards,

Danny

taraben
Senior

Same Problem here.

I updated from CubeMX4 to CubeMX5 on my Board using STM32L486.

Now the same code does not work anymore.

It must be related with the Codegenerator or STM32L4 libs my strong impression is.

Unfortunately I can not simply go back in version with the codegenerator.

Anyone has an answer here?

Regards, Adib.

-

Manfred Dietrich
Associate II

Check the DP pullup:

USB_BCDR.DPPU

Regards Manfred