ESP32-3DPrinter-Bridge icon indicating copy to clipboard operation
ESP32-3DPrinter-Bridge copied to clipboard

unable to compile

Open MiticoDan opened this issue 3 years ago • 2 comments

hi! congratulation for great project, but i doesn't able to build it, the compiler show me few error... i tryied with arduino ide and platformio.

this is a part of this error.

please help me, thanks!

cdcftdimod.h:126:20: error: expected ')' before '*' token FTDIMOD(USB *pusb, FTDIMODAsyncOper *pasync, uint16_t idProduct = FTDI_PID); ~ ^~ ) cdcftdimod.h:147:92: error: 'USB_ENDPOINT_DESCRIPTOR' does not name a type; did you mean 'USB_REQUEST_SET_DESCRIPTOR'? void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep); ^~~~~~~~~~~~~~~~~~~~~~~ USB_REQUEST_SET_DESCRIPTOR In file included from C:\Users\mitic\Desktop\ESP32-3DPrinter-Bridge-master\ESP32-3DPrinter-Bridge-master.ino:82: descriptor.h:29:42: error: no matching function for call to 'FTDIMOD::FTDIMOD(USB*, FTDIMODAsync*)' FTDIMOD Ftdi(&Usb, &FtdiAsync);

MiticoDan avatar Jun 07 '22 18:06 MiticoDan

hi

since this is an old project, you should probably use an older version of USB_Host_Shield (the library dependency your compiler complains about) along with ESP32-Arduino-Core 1.0.6.

https://github.com/felis/USB_Host_Shield_2.0/releases/tag/1.3.2

tobozo avatar Jun 07 '22 18:06 tobozo

Hi tobozo, I installed usb host shield 1.3.2 and ESP32-Arduino-Core 1.0.6 and got it to work.

I ran also board_qc and passed all tests. My only problem is that rcode returned error 13(Serial.println(rcode)). J-state instead of response. I can't find an exact explanation on the internet of what i am doing wrong. Can you help me with this?

ghost avatar Aug 08 '22 17:08 ghost