Skip to main content
MishaT
Associate II
Jan 24, 2019 8:14 AM UTC
Solved

problems with usb msc device on stm32f4

Hi. I need to create USB MSC Device on STM32F407. I use CubeMX for create project. When I compiled the project with MSC_MEDIA_PACKET = 512 windows did not see the mass storage device, then I changed MSC_MEDIA_PACKET = 256 and windows saw the mass storage device and also offered to format it. I also did projects on stm32f0 and stm32f3 with MSC_MEDIA_PACKET = 512, everything worked without problems for them, Windows found the device and offered to format the disk. How to do when define MSC_MEDIA_PACKET = 512 for Windows to see it?

This topic has been closed for replies.
MishaT
MishaTBest answer
Associate II
Jan 28, 2019 10:27 AM UTC

I increased the minimum heap size and minimum stack size in advanced settings and this fixed the problem

1 reply

MishaT
MishaTAuthorBest answer
Associate II
Jan 28, 2019 10:27 AM UTC

I increased the minimum heap size and minimum stack size in advanced settings and this fixed the problem