USB Mass Storage Device example on mikromedia board

General discussion on Libstock website & codes posted on this website.
Post Reply
Author
Message
marek_m
Posts: 2
Joined: 27 Dec 2019 14:58

USB Mass Storage Device example on mikromedia board

#1 Post by marek_m » 27 Dec 2019 15:10

Hello,

I am trying to get the USB mass storage example from Libstock working with mikromedia board (P32MX460F512L) however I keep getting 'Device descriptor request failed' error when connecting it to windows PC. I am using a 1gb microSD card formatted with FAT16.

I know that this example is targeted at EasyPIC Fusion v7 board. I have changed the 'Mmc_Chip_Select' and 'Mmc_Chip_Select_Direction' to correspond to mikromedia board pinout (LATG9_bit and TRISG9_bit respectively). I also used SPI2_Init_Advanced(...) instead of SPI3_Init_Advanced(...).

Does anybody have any ideas what is causing this problem? Unfortunately, I don't have a USB protocol analyser.

marek_m
Posts: 2
Joined: 27 Dec 2019 14:58

Re: USB Mass Storage Device example on mikromedia board

#2 Post by marek_m » 30 Dec 2019 03:26

I have managed to get it to work by setting a correct USB PLL input divider

Post Reply

Return to “Libstock Discussion”