I did not modify the original file provided with the Tevo Tornado config, just LPC1768, which I replaced.
I modified as you said in platformio.ini
Message:
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\../inc/../pins/pins.h:118,
from Marlin\src\feature\../inc/MarlinConfig.h:32,
from Marlin\src\feature\caselight.cpp:23:
Marlin\src\feature\../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
^~~~~
In file included from Marlin\src\feature\dac\../../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\dac\../../inc/../pins/pins.h:118,
from Marlin\src\feature\dac\../../inc/MarlinConfig.h:32,
from Marlin\src\feature\dac\stepper_dac.cpp:27:
Marlin\src\feature\dac\../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\dac\../../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\dac\../../inc/../pins/pins.h:118,
from Marlin\src\feature\dac\../../inc/MarlinConfig.h:32,
from Marlin\src\feature\dac\dac_dac084s085.cpp:7:
Marlin\src\feature\dac\../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\dac\../../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\dac\../../inc/../pins/pins.h:118,
from Marlin\src\feature\dac\../../inc/MarlinConfig.h:32,
from Marlin\src\feature\dac\dac_mcp4728.cpp:33:
Marlin\src\feature\dac\../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:56:35: note: suggested alternative: 'MYSERIAL0'
if ( serial_port_index) (void)MYSERIAL1.WHAT(V); \
^~~~~~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:88:27: note: in expansion of macro 'SERIAL_OUT'
#define _CHAR_1(c) SERIAL_OUT(write, c)
^~~~~~~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:86:27: note: in expansion of macro '_CHAR_1'
#define __CHAR_N(N,V...) _CHAR_##N(V)
^~~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:87:27: note: in expansion of macro '__CHAR_N'
#define _CHAR_N(N,V...) __CHAR_N(N,V)
^~~~~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:99:27: note: in expansion of macro '_CHAR_N'
#define SERIAL_CHAR(V...) _CHAR_N(NUM_ARGS(V),V)
^~~~~~~
Marlin\src\feature\bedlevel\../../inc/../core/serial.h:261:37: note: in expansion of macro 'SERIAL_CHAR'
#define SERIAL_EOL() SERIAL_CHAR('\n')
^~~~~~~~~~~
Marlin\src\feature\bedlevel\bedlevel.cpp:176:7: note: in expansion of macro 'SERIAL_EOL'
SERIAL_EOL();
^~~~~~~~~~
*** [.pio\build\LPC1768\src\src\feature\bedlevel\ubl\ubl.cpp.o] Error 1
In file included from Marlin\src\feature\digipot\../../inc/../HAL/HAL.h:26,
from Marlin\src\feature\digipot\../../inc/MarlinConfig.h:30,
from Marlin\src\feature\digipot\digipot_mcp4018.cpp:23:
Marlin\src\feature\digipot\../../inc/../HAL/./HAL_LPC1768/HAL.h:80:6: error: #error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
^~~~~
In file included from Marlin\src\feature\digipot\../../inc/../HAL/HAL.h:26,
from Marlin\src\feature\digipot\../../inc/MarlinConfig.h:30,
from Marlin\src\feature\digipot\digipot_mcp4451.cpp:23:
Marlin\src\feature\digipot\../../inc/../HAL/./HAL_LPC1768/HAL.h:80:6: error: #error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
^~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\feature\digipot\../../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\digipot\../../inc/../pins/pins.h:118,
from Marlin\src\feature\digipot\../../inc/MarlinConfig.h:32,
from Marlin\src\feature\digipot\digipot_mcp4451.cpp:23:
Marlin\src\feature\digipot\../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\digipot\../../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\digipot\../../inc/../pins/pins.h:118,
from Marlin\src\feature\digipot\../../inc/MarlinConfig.h:32,
from Marlin\src\feature\digipot\digipot_mcp4018.cpp:23:
Marlin\src\feature\digipot\../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\binary_protocol.cpp:28:
Marlin\src\feature\binary_protocol.h: In function 'bool bs_serial_data_available(uint8_t)':
Marlin\src\feature\binary_protocol.h:36:22: error: 'MYSERIAL1' was not declared in this scope
case 1: return MYSERIAL1.available();
^~~~~~~~~
*** [.pio\build\LPC1768\src\src\feature\bedlevel\bedlevel.cpp.o] Error 1
In file included from Marlin\src\feature\../inc/../HAL/HAL.h:26,
from Marlin\src\feature\../inc/MarlinConfig.h:30,
from Marlin\src\feature\fanmux.cpp:28:
Marlin\src\feature\../inc/../HAL/./HAL_LPC1768/HAL.h:80:6: error: #error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
^~~~~
In file included from Marlin\src\feature\../inc/../HAL/HAL.h:26,
from Marlin\src\feature\../inc/MarlinConfig.h:30,
from Marlin\src\feature\filwidth.cpp:23:
Marlin\src\feature\../inc/../HAL/./HAL_LPC1768/HAL.h:80:6: error: #error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
^~~~~
In file included from Marlin\src\feature\dac\../../inc/MarlinConfig.h:38,
from Marlin\src\feature\dac\stepper_dac.cpp:27:
Marlin\src\feature\dac\../../inc/SanityCheck.h:2333:4: error: #error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
#error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
^~~~~
In file included from Marlin\src\feature\dac\../../inc/MarlinConfig.h:38,
from Marlin\src\feature\dac\dac_mcp4728.cpp:33:
Marlin\src\feature\dac\../../inc/SanityCheck.h:2333:4: error: #error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
#error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
^~~~~
In file included from Marlin\src\feature\dac\../../inc/MarlinConfig.h:38,
from Marlin\src\feature\dac\dac_dac084s085.cpp:7:
Marlin\src\feature\dac\../../inc/SanityCheck.h:2333:4: error: #error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
#error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board."
^~~~~
In file included from Marlin\src\feature\../inc/../HAL/HAL.h:26,
from Marlin\src\feature\../inc/MarlinConfig.h:30,
from Marlin\src\feature\fwretract.cpp:27:
Marlin\src\feature\../inc/../HAL/./HAL_LPC1768/HAL.h:80:6: error: #error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 must be different than SERIAL_PORT. Please update your configuration."
^~~~~
*** [.pio\build\LPC1768\src\src\feature\cancel_object.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\feature\bltouch.cpp.o] Error 1
In file included from Marlin\src\feature\../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\../inc/../pins/pins.h:118,
from Marlin\src\feature\../inc/MarlinConfig.h:32,
from Marlin\src\feature\filwidth.cpp:23:
Marlin\src\feature\../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
In file included from Marlin\src\feature\../inc/../pins/ramps/pins_MKS_GEN_L.h:53,
from Marlin\src\feature\../inc/../pins/pins.h:118,
from Marlin\src\feature\../inc/MarlinConfig.h:32,
from Marlin\src\feature\fanmux.cpp:28:
Marlin\src\feature\../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
Marlin\src\feature\binary_protocol.h:36:22: note: suggested alternative: 'MYSERIAL0'
case 1: return MYSERIAL1.available();
^~~~~~~~~
Marlin\src\gcode\bedlevel\mbl\../../../inc/../pins/ramps/pins_RAMPS.h:49:4: error: #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
^~~~~
***[.pio\build\LPC1768\src\src\feature\twibus.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\feature\tmc_util.cpp.o] Error 1
In file included from Marlin\src\gcode\bedlevel\../../inc/MarlinConfig.h:45,
from Marlin\src\gcode\bedlevel\G26.cpp:27:
^~~~~~~~~~~~~
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\G42.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\G26.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\M420.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\abl\G29.cpp.o] Error 1
In file included from Marlin\src\gcode\bedlevel\mbl\../../../inc/MarlinConfig.h:45,
from Marlin\src\gcode\bedlevel\mbl\G29.cpp:27:
;
^~~~~~~~~~~~~~~~~
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\abl\M421.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\ubl\M421.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\ubl\G29.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\mbl\M421.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\gcode\bedlevel\mbl\G29.cpp.o] Error 1
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable: 'C:\\Users\\jimmy\\Downloads\\Documents\\00_Makerbase\\Carte Mère\\Marlin-dev-2.1.x\\Marlin-dev-2.1.x\\.pio\\build\\LPC1768\\.sconsign.py38.dblite':
[FAILED] Took 6.97 seconds
Environment Status Duration
---------------------------- -------- ------------
megaatmega2560 IGNORED
megaatmega1280 IGNORED
rambo IGNORED
FYSETC_F6_13 IGNORED
FYSETC_F6_14 IGNORED
sanguino_atmega644p IGNORED
sanguino_atmega1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 FAILED 00:00:06.971.
I don’t know if the platformio updates as arduino does automatically. I am not used to using platformio.
In addition I have 2 cards that I update with Marlin 2.0 the other is Bigtree_SKR_Pro_1.1 and I have problems with the Built.