Page 1 of 1

help loading files from usb

Posted: Mon Jun 13, 2022 5:21 pm
by skywalker75
i am trying to create an nes clone using an esp32 that can take cartridges. The only problem is that it is a nightmare to try and get my head around. all i need to do is be able to load up roms from a usb drive, as the cart reader acts as a usb drive where the rom is stored. how would i read usb drives with an esp32 board and load them in the nofrendo emulator, or at best, convert the usb drive to an sd card interface?

Re: help loading files from usb

Posted: Tue Jun 14, 2022 6:38 am
by lbernstone
If you are truly tied to using USB, you will need to start with an ESP32-S3, which has a native USB interface. There is an example to use USBMSC at https://github.com/espressif/arduino-es ... USBMSC.ino .
USB is fairly new to ESP32, so this will not be something that an inexperienced programmer is going to be able to accomplish (ie copy from someone else). If you switch to an SDcard, you will find hundreds of examples of how to do exactly what you are asking.

Re: help loading files from usb

Posted: Tue Jun 14, 2022 3:29 pm
by skywalker75
ok then, so, what pins do i attach a usb port to, and what code do i need to get it running?