I'm using Mass Storage template of Keil5 but when I run it (on board),I can't access the SD card and PC just detects that a device is connected to USB. I commented check_media function because it's available in my board. what's wrong?
Break the project/tasks into smaller pieces, which you can test and validate individually.
ie test the SD access and functionality separate from the USB/MSD parts