2019-01-24 01:43 AM
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.
2019-01-24 04:59 AM
Hello,
Try to increase the heap and stack size (in Project Settings of CubeMX)
Kind Regards,
Imen
2019-01-24 05:05 AM
Do you have a crystal source on this board? What frequency?
2019-01-25 01:01 AM
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
2019-01-25 01:02 AM
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
2019-01-28 02:54 AM
Need increase Min. Heap Size and have 48Mhz clocks in USB. Min. Heap Size > MSC_MEDIA_PACKET.
2019-01-31 05:16 AM
Dear MishaT,
I re-tried as your comment. But, it still fails.
Regards,
Danny
2019-03-25 10:49 AM
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.
-
2019-03-25 02:51 PM
Check the DP pullup:
USB_BCDR.DPPU
Regards Manfred