luc-github / ESP3DLib

ESP3D library for Marlin and ESP32 boards
GNU General Public License v3.0
99 stars 32 forks source link

Compile failed when enable ESP3D_WIFISUPPORT under PlatformIO #24

Closed Surrizu closed 3 years ago

Surrizu commented 3 years ago

Hello.

I´m able to compile any Marlin 2.0.x under PlatformIO but when I uncomment #define ESP3D_WIFISUPPORT, the compile fails.

I just would like the ESPboard to work with my 3D printer (Arduino 2560 + RAMPS1.4).

Please, I have no idea whats going wrong.

HERE THE TERMINAL CODE DURING "Almost" COMPILATION:

Microsoft Windows [versão 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.

C:\Users\Henrique\Downloads\Marlin-2.0.x>platformio run -e mega2560 Processing mega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html PLATFORM: Atmel AVR (3.1.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash DEBUG: Current (avr-stub) On-board (avr-stub, simavr) PACKAGES:

Environment Status Duration


mega2560 FAILED 00:00:02.989 ===================================================== 1 failed, 0 succeeded in 00:00:02.989 =====

C:\Users\Henrique\Downloads\Marlin-2.0.x>echo "done" >C:\Users\Henrique\AppData\Local\Temp\ipc

C:\Users\Henrique\Downloads\Marlin-2.0.x>

github-actions[bot] commented 3 years ago

Thank your for submiting, please be sure you followed template or your issue may be dismissed.

vivian-ng commented 3 years ago

@Surrizu ESP3DLib is for use with ESP32-based 3D printer boards. If you are using RAMPS, you just need ESP3D.

Leave

//#define ESP3D_WIFISUPPORT

commented out because this is for ESP32-based 3D printer boards like MRR ESPA and MRR ESPE. If you are not using such boards, follow instructions for ESP3D instead and not this library.

luc-github commented 3 years ago

yes as mentioned in readme image

Your board is not an ESP92 board it is a Mega/Ramps so not the right target

Surrizu commented 3 years ago

Aha! So I think that's solved. I will compile the code with commented "//#define ESP3D_WIFISUPPORT" to test the communication.

luc-github commented 3 years ago

have fun 😸