2022-05-11 08:12 AM
Here are details about my project:
My USB device is using FAT32 format. I AM SORRY if I made some dumb mistake; I am newbie
2022-05-11 10:39 AM
If your USB connection is as above, I recommend that you find the MX_DriverVbusFS function in the usbh_platform.c file and make its content compatible with your power switch IC.
2022-05-11 07:25 PM
Hiii, thank you so much for suggestion. Is it necessary to set USB connection as you showed in image??
I didn't make any connection like that. I just connected USB connector pin to STM32's A9 pin.
2022-05-12 12:59 AM
A couple of times I accidentaly swapped USB DATA+ and DATA- Lines, double check you didnt do the same.
2022-05-12 01:02 AM
Leave a link to the youtube tutorial youre trying to follow and maybe some pictures of your hardware
2022-05-12 07:40 AM
Hi, thank you so much for reply. No, I made sure that I don't interchange DP and DM lines. Both connections are correct..Here is link of the video I am following:
https://www.youtube.com/watch?v=dC0d8CVEPrQ&list=PLnMKNibPkDnFFRBVD206EfnnHhQZI4Hxa&index=20
Sorry but I can't get picture of hardware. Do I need to use "Current limiter power switch"??
When I run program FRESULT shows FR_DISK_ERR. what does that mean?
2022-05-12 07:45 AM
>>When I run program FRESULT shows FR_DISK_ERR. what does that mean?
Means your DISKIO layer isn't working, fix that first.
2022-05-12 07:49 AM
Okay. I will update after fixing this. Thank you so much.
Do I need to use "current limiter switch" as shown in below diagram OR I can just directly connect STM32 pin with USB connector??
2022-05-12 08:30 AM
During the installation phase, the power of the usb disk needs to be cut and re-applied. It is necessary for safety to have current limitation, but you must use a switch
2022-05-12 08:41 AM
You can use STMPS2141 as switch. I also recommend adding a protection element such as USBLC6-2SC6 to the USB data line.