tobozo / ESP32-3DPrinter-Bridge

A network <=> ESP32 <=> USB (FTDI) <=> 3D printer Bridge
MIT License
38 stars 7 forks source link

unable to compile #1

Open MiticoDan opened 2 years ago

MiticoDan commented 2 years ago

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);

tobozo commented 2 years ago

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

ghost commented 2 years ago

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?