2024-04-03 11:17 PM
I'm encountering an issue while attempting to configure my STM3240G-EVAL board to function as a “Mass Storage Device” with a microSD as Storage.
I used the MX configurator and followed tutorials but encountered the same issue every time. I can compile but if I connect the board via USB to my computer no device is detected.
Here's a breakdown of my configuration in MX:
SDIO and DMA:
MSC:
the other options are untouched.
Did I miss something or had somebody the same issue?
Solved! Go to Solution.
2024-04-05 12:01 AM
Hello @FBL
I tried as USB host but it still not work.
One more time for me to understand.
I want to use my board as an USB-adapter for a microSD. if I connect the board to my computer the microSD will appear as drive on my computer so I can use it.
I was thinking in that case the board must be configured as device or did I missunderstood this?
2024-04-03 11:38 PM
Hello @newbie and welcome to the ST Community :smiling_face_with_smiling_eyes:.
First, you should use a data cable for communication not just a charging one.
Second, try using other COM ports of your PC.
Third, connect your board using the connector CN21 (ST-LINK/V2 connector) and not just any connector.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-04 02:01 AM
Hello @STTwo-32
I use a data cable and the COM ports are working fine as well.
for the connection I use the CN8 USB OTG FS connector.
2024-04-04 02:51 AM
To connect, you have to use the CN21 (ST-LINK/V2 connector) to connect your board using ST-Link.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-04 07:20 AM
I use the CN21 for flashing my board and also for the MSC?
I thought the USB OTG FS and the HS where for the MSC function.
But still if I connect the board after flashing the board via CN21 or USB OTG FS I dont get a connection between my sd card and my computer
2024-04-04 08:09 AM
Hello @newbie
> if I connect the board via USB to my computer no device is detected.
You are using STM32 MCU as host !
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-05 12:01 AM
Hello @FBL
I tried as USB host but it still not work.
One more time for me to understand.
I want to use my board as an USB-adapter for a microSD. if I connect the board to my computer the microSD will appear as drive on my computer so I can use it.
I was thinking in that case the board must be configured as device or did I missunderstood this?