Another upload to board error question

I was having zero issues uploading to 2 different boards I have using platform. They are both lpc1768’s ones a skr 1.3 and the other is a skr 1.4. I have uploaded firmware to both boards quite a few times as I am building my own machine so ive kept having to make small changes to the firmware. Different versions of my firmware has uploaded to both boards and worked. I had to add the right com port in the ini file so that the 1.4 would load. I had to add COM(10) under the lpc part of the file so that the 1.4 would load. I was getting a different error at that point. Whenever I try to load new firmware onto either board using different computers I get the same error on both computers now.

Tool Manager: Installing framework-arduino-lpc176x @ 0.1.3
Error: Could not find the package with ‘framework-arduino-lpc176x @ 0.1.3’ requirements for your system ‘windows_amd64’
The terminal process “C:\Users\sean.platformio\penv\Scripts\pio.exe ‘run’, ‘–target’, ‘upload’” terminated with exit code: 1.

Ive checked and I do have lpcx 0.1.3 installed. Ive went back to scratch and rebuilt firmware a couple times now. Same issue. Either computer doesnt even recognize the marlin board anymore.

I dont get it everything worked fine a couple days ago now nothing.

Ive tried new memory cards. Both cards did work and excepted the firmware with no issues. Ive tried new cords all the same, computers dont recognize either board anymore

Same issue as described in Build Marlin 2.0 faied due to the 'framework-arduino-lpc176x @ 0.1.3'.

I just spent about a day recompiling this complicated FW from scratch. This did not fix my problem. When I look in device manager I see a Marlin USB Device Not recognized. On windows 8.1 and 7. Everything worked fine a couple days ago on both boards and I was having zero issues now both boards are FUBAR. I have one board working on a machine and it moves with no issues and basic commands work, but it doesnt detect the onboard tf card or when I try to boot from the tft 35 onboard sd card it just spins. Thats the skr 1.3 tft 35 V2. On the skr 1.4 tft35 v3 that display wont even load anymore it just says some stupid update error and does nothing else. Ive tried different sd cards still the same. Im really about to scream. Everything was working beautifully I was just trying out a bunch of different options.

So you did get it to compile using a newer Marlin version and that issue is solved? Your computer just won’t recognize any boards to you can’t push the new firmware?

No unfortunately I meant that I spent a day going thru a new copy of marlin. It just took me so long to make sure that everything was set the same. Im compiling for a cnc/3d printer etc so there is a bunch of changes I had to make sure were made. Im 1000% sure its not an issue like that. The fork I originally took the fw off of is very active. I still get the same error when I try to build it. When I try to build any marlin fw

Which exact Marlin version are you trying to compile? Where are you configuration header fiels located and what platformio.ini environment do you use? Do you have an exact copy of the project you’re trying to compile?

Im trying to compile firmware that is maintained by thinkyhead. Its marlin FW for the MPCNC. I managed to get by the lpc error by changing the website for the firmware to the github link but instead of using master.zip as the filename if I change it to 0.1.3.zip it works until I get these errors. Almost the same errors saying I have wrong pin config or motherboard not found.

Windows 8 machine

Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/../pins/pins.h:543:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"
  543 |   #error "Unknown MOTHERBOARD value set in Configuration.h"
      |    ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../pins/pins.h:543:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"
  543 |   #error "Unknown MOTHERBOARD value set in Configuration.h"
      |    ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/../pins/pins.h:543:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"
  543 |   #error "Unknown MOTHERBOARD value set in Configuration.h"
      |    ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../pins/pins.h:543:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"
  543 |   #error "Unknown MOTHERBOARD value set in Configuration.h"
      |    ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:1132:6: error: #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
 1132 |     #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
      |      ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:1466:4: error: #error "HEATER_0_PIN not defined for this board."
 1466 |   #error "HEATER_0_PIN not defined for this board."
      |    ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:1608:8: error: #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
 1608 |       #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
      |        ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1132:6: error: #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
 1132 |     #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
      |      ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:1964:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
 1964 |   #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
      |    ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1132:6: error: #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
 1132 |     #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
      |      ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1466:4: error: #error "HEATER_0_PIN not defined for this board."
 1466 |   #error "HEATER_0_PIN not defined for this board."
      |    ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1608:8: error: #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
 1608 |       #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
      |        ^~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1132:6: error: #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
 1132 |     #error "Z_MIN_PROBE_PIN must be defined if Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN is not enabled."
      |      ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1466:4: error: #error "HEATER_0_PIN not defined for this board."
 1466 |   #error "HEATER_0_PIN not defined for this board."
      |    ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1608:8: error: #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
 1608 |       #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
      |        ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1964:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
 1964 |   #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
      |    ^~~~~
compilation terminated due to -fmax-errors=5.
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1466:4: error: #error "HEATER_0_PIN not defined for this board."
 1466 |   #error "HEATER_0_PIN not defined for this board."
      |    ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1964:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
 1964 |   #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
      |    ^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1608:8: error: #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
 1608 |       #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
      |        ^~~~~
compilation terminated due to -fmax-errors=5.
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:1964:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
 1964 |   #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
      |    ^~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1
========================================================== [FAILED] Took 11.40 seconds ==========================================================

Environment    Status    Duration
-------------  --------  ------------
LPC1768        FAILED    00:00:11.405
===================================================== 1 failed, 0 succeeded in 00:00:11.405 =====================================================
The terminal process "C:\Users\sean\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

> Executing task: C:\Users\sean\.platformio\penv\Scripts\pio.exe run <

Processing LPC1768 (platform:link to github 0.1.3.zip; framework: arduino; board: nxp_lpc1768)
--------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1768.html
PLATFORM: NXP Arduino LPC176x (0.1.3) > NXP LPC1768
HARDWARE: LPC1768 100MHz, 31.97KB RAM, 464KB Flash
DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)
PACKAGES:
 - framework-arduino-lpc176x 0.2.5
 - toolchain-gccarmnoneeabi 1.90301.200702 (9.3.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> ***BITLY LINK****
LDF Modes: Finder ~ off, Compatibility ~ strict
Found 6 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Servo> 1.0.0
|-- <LiquidCrystal> 1.0.0
|-- <U8glib-HAL> 0.4.1
|-- <TMCStepper> 0.7.1
|-- <Adafruit NeoPixel> 1.5.0
|-- <SailfishLCD> 0.0.0+20201121225229
Building in release mode

Unable to find destination disk (a bytes-like object is required, not 'str')
Please select it in platformio.ini using the upload_port keyword (https://docs.platformio.org/en/latest/projectconf/section_env_upload.html) or copy the firmware (.pio/build/LPC1768/firmware.bin) manually to the appropriate disk

Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o
Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o
Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o
Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../../Configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
c:\users\sean\desktop\mpcnc-skr13-tmc5160\marlin\configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/../../Configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/../../Configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp: In function 'void spiBegin()':
Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:128:21: error: 'LPC1768_PIN_PIN' was not declared in this scope
  128 |     PinCfg.Pinnum = LPC1768_PIN_PIN(SCK_PIN);
      |                     ^~~~~~~~~~~~~~~
Marlin\src\HAL\HAL_LPC1768\HAL.cpp: In function 'int16_t PARSED_PIN_INDEX(char, int16_t)':
Marlin\src\HAL\HAL_LPC1768\HAL.cpp:60:73: error: 'GET_PIN_MAP_INDEX' was not declared in this scope
   60 |   const  int16_t ind = (port < ((NUM_DIGITAL_PINS) >> 5) && pin < 32) ? GET_PIN_MAP_INDEX((port << 5) | pin) : -2;
      |                                                                         ^~~~~~~~~~~~~~~~~
Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:129:22: error: 'LPC1768_PIN_PORT' was not declared in this scope
  129 |     PinCfg.Portnum = LPC1768_PIN_PORT(SCK_PIN);
      |                      ^~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:42,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/fastio.h:51:31: error: 'gpio_get' was not declared in this scope; did you mean 'LPC176x::gpio_get'?
   51 | #define READ_PIN(IO)          gpio_get(IO)
      |                               ^~~~~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/fastio.h:52:44: note: in definition of macro 'WRITE_PIN'
   52 | #define WRITE_PIN(IO,V)       gpio_set(IO, V)
      |                                            ^
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/fastio.h:105:35: note: in expansion of macro '_WRITE'
  105 | #define SET_OUTPUT(IO)        do{ _WRITE(IO, _READ(IO)); _SET_OUTPUT(IO); }while(0)
      |                                   ^~~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/fastio.h:63:31: note: in expansion of macro 'READ_PIN'
   63 | #define _READ(IO)             READ_PIN(IO)
      |                               ^~~~~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/fastio.h:105:46: note: in expansion of macro '_READ'
  105 | #define SET_OUTPUT(IO)        do{ _WRITE(IO, _READ(IO)); _SET_OUTPUT(IO); }while(0)
      |                                              ^~~~~
Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:131:5: note: in expansion of macro 'SET_OUTPUT'
  131 |     SET_OUTPUT(SCK_PIN);
      |     ^~~~~~~~~~
In file included from C:\Users\sean\.platformio\packages\framework-arduino-lpc176x\system\lpc176x/pinmapping.h:21,
                 from C:\Users\sean\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:36,
                 from c:\users\sean\desktop\mpcnc-skr13-tmc5160\marlin\src\hal\shared\marduino.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:39,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
C:\Users\sean\.platformio\packages\framework-arduino-lpc176x\system\lpc176x/gpio.h:48:47: note: 'LPC176x::gpio_get' declared here
   48 | [[gnu::always_inline, nodiscard]] inline bool gpio_get(const pin_t pin) {
      |                                               ^~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o] Error 1
========================================================== [FAILED] Took 14.51 seconds ==========================================================

Environment    Status    Duration
-------------  --------  ------------
LPC1768        FAILED    00:00:14.513
===================================================== 1 failed, 0 succeeded in 00:00:14.513 =====================================================
The terminal process "C:\Users\sean\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Win 7 machine

Compiling .pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
                 from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../../Configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:38,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/SanityCheck.h:2082:6: error: #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
 2082 |     #error "SENSORLESS_HOMING requires X_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_XMAX when homing to X_MAX."
      |      ^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfigPre.h:36,
                 from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../../Configuration.h:1718:1: error: expected unqualified-id before numeric constant
 1718 | 53
      | ^~
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o] Error 1
Marlin\src\HAL\HAL_LPC1768\HAL.cpp: In function 'int16_t PARSED_PIN_INDEX(char, int16_t)':
Marlin\src\HAL\HAL_LPC1768\HAL.cpp:60:73: error: 'GET_PIN_MAP_INDEX' was not declared in this scope
   60 |   const  int16_t ind = (port < ((NUM_DIGITAL_PINS) >> 5) && pin < 32) ? GET_PIN_MAP_INDEX((port << 5) | pin) : -2;
      |                                                                         ^~~~~~~~~~~~~~~~~
*** [.pio\build\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1
======================================================== [FAILED] Took 22.00 seconds ========================================================

Environment    Status    Duration
-------------  --------  ------------
LPC1768        FAILED    00:00:22.002
=================================================== 1 failed, 0 succeeded in 00:00:22.002 ===================================================

Moderator edit: added markdown code formatting tags

Seems like either Marlin or your config files are not correct then.

Why exactly this one?

Can you upload your config header files for that machine that you’re using?

1 Like

Its this FW

Sorry i dont know what config header files are???

Config.h config.adv.h???

Yes exactly. That Marlin branch already has it.

I’ll quickly see if I can compile it.

I’ve downloaded that project and compilation works just fine.

C:\Users\Max\Documents\Marlin>pio run
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.0.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:
 - framework-arduino-avr 5.1.0
 - toolchain-atmelavr 1.50400.190710 (5.4.0)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Wire> 1.0
|-- <SPI> 1.0
|-- <EEPROM> 2.0
|-- <SoftwareSerial> 1.0
Building in release mode
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o
[...]
Archiving .pio\build\mega2560\libFrameworkArduino.a
Indexing .pio\build\mega2560\libFrameworkArduino.a
Linking .pio\build\mega2560\firmware.elf
Building .pio\build\mega2560\firmware.hex
Checking size .pio\build\mega2560\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  30.0% (used 2457 bytes from 8192 bytes)
Flash: [==        ]  21.9% (used 55598 bytes from 253952 bytes)
========================================================= [SUCCESS] Took 13.35 seconds =========================================================

Environment    Status    Duration
-------------  --------  ------------
mega2560       SUCCESS   00:00:13.352
========================================================== 1 succeeded in 00:00:13.352 ==========================================================

C:\Users\Max\Documents\Marlin>

So I’m either not using the exact environment you’re compiling for or not the right configuration files.