Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all 2831 articles
Browse latest View live

moved from ancient Marlin to Marlin 1.1.8, now hotend does not heat up (no replies)

$
0
0
I have made this switch from ancient Marlin versions to 1.1.8 on several printers with no problems, but this one isn't working.
I have a custom Kossel that uses the RAMPS 1.4 board. It is a hot end and fan only, bed. I used a RAMPS EFF (extruder, fan, fan) setting from the boards.h, there isn't a EF only option for RAMP 1.4 or 1.3.
I used the RAMPS 1.3 board def '35' in both the old Marlin and new Marlin. I also tried the '45' board for the RAMPS 1.4, same thing happens.

Everything works but the hot end. I am scratching my head.
I set the extruder count to 1
I set the correct thermistor (that is working fine)
The display says it is trying to do the hot end, but, nada.

When I turn on the hot end from Pronterface, no heat.

The hardware is fine. If I revert to the old code, all works as usual.

Is there some nuance that I am missing? This is the first time that I have attempted this move to a system that does not have a heated bed. Is the "EFF" choice bunging up the system?

Thanks,
DLC

Lower PWM frequency on part cooling fans? (4 replies)

$
0
0
I am having a problem with my part cooling Sunon maglev fans, they will not rotate when the PWM is lower than 80% in default conditions and 60% when using the FAN_SOFT_PWM and SOFT_PWM_SCALE 0 directives. Is there any way to make them work with a lower value? Maybe lowering the frequency even more, as to get an occasional blip?

Prusa clone (anet A8 electronics) marlin issue (1 reply)

$
0
0
Okay,

While I have used this site a lot for trouble shooting, this is my first post. I thank you in advance for your help, I hope I am posting in the correct place. Long story short, I used my anet a8's electronics to build as close to a prusa clone as I can (likely others could get closer, but not me at this point) without spending too much extra $$. Through searching internet for help, I flashed both the bootloader and firmware to marlin. I am getting very good prints (I am completely happy with the print quality), however, I am wanting a couple of options that I am struggling with. Currently I can only change filament through 'printing' gcode that unloads or loads filament - works great, but I want to do it through the lcd like prusa (I do have access to prusas, so I know specifically the shortcomings in my machine that I want from prusa)...also, I cannot pause a print and change filament (because I am already 'in a print'). FYI - I have a geared extruder (exact copy from Prusa i3), so it needs to be done via the machine.

So problem #1 - I want to unload/load filament through lcd (prior to printing)
#2 - similar in a way - I want to be able to pause print and change filament (I think this includes parking the nozzle above my print, which I haven't figured out...currently when I pause it just sits on where it stops)

From what I can gather, I need to make changes for #2 in the adv.h file (this is my first project with marlin, and coding in general...so I now know just enough to get myself in trouble) under advance pause. As soon as I enable (uncomment) advance pause features it will not compile. The error codes have to do with parking nozzle...I tried commenting other things within advance pause features, but it just doesn't compile. If I keep advance pause commented, it compiles and loads - and is how I am currently using he printer.

I haven't tried much to figure out problem #1 (problem 2 was a higher priority, so I am simply starting there) - however, I am not sure how to do this either.

Overall, I am at 94% of the memory available. If I need to free up memory, I am happy to 'take things away' that I don't plan on utilizing. My must list of extras:

- live z adjust
- load/unload from lcd and mid-print
- bed leveling

Not sure if there are other things, but lets start there.

Not exactly sure how to share the marlin code...attached are the .ino file as well as text files of my config and config.adv.

Thank you once again for any help, and my apologies for any noob errors I am making. I will be able to access your responses, but not try anything out for another week. Thank you once again.

REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR (1 reply)

$
0
0
Hi, I recently purchased a new LCD screen, my problem arises with this has a whole line, and quite thick, pixels which do not show information, if anyone knows the solution would appreciate it.

Compile error (1 reply)

$
0
0
I am using Arduino 1.8.9 and an old 1.1.9 copy (unzipped 2/24/2019) of Marlin. When I try to confirm that the original Marlin file will compile I am getting the following error:

sketch\temperature.cpp: In function 'updateTemperaturesFromRawValues':

sketch\temperature.cpp:1048:1: internal compiler error: Segmentation fault

}

^

Please submit a full bug report,

with preprocessed source if appropriate.

See [gcc.gnu.org] for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.


What do I do now? Thanks in advance.

Marlin 2.0 Compile Error (no replies)

$
0
0
Trying to compile Marlin 2.0 for an SKR Mini E3. Every time I try to compile any fork of Marlin 2.0 I get a failure. I think it is missing something that python needs but I cannot figure it out.

I have downloaded the zip, extracted it, opened the project in Platformio and tried to build it without making any changes. Still the build fails. I have attempted this on two different Windows 10 laptops and still get the identical failure.

Here is my system:
Windows 10
Visual Studio Code 1.40.1
Platformio Extension (Home 3.0.1 Core 4.1.0)
Python 3.8.0 (and Python Extension installed in VSC)
Also have installed GIT, updated Pip (Just in case)

It does not matter if I use the "master" fork from bigtreetech or any of the other forks of this fork, I get the same results. I have reached out on the BigTreeTech git site but I think I need to reach out on a larger group to see it anyone else has had a similar issue.

Here is the output while attempting to compile the master fork from BigTreeTech:
Processing STM32F103RC_bigtree_NOUSB (platform: ststm32; framework: arduino; board: genericSTM32F103RC)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 5.7.0 > STM32F103RC (48k RAM. 256k Flash)
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 256KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-arduinoststm32-maple 1.10000.190819 (1.0.0), tool-stm32duino 1.0.2
No pyvenv.cfg file
OSError: 'python Marlin/src/HAL/HAL_STM32F1/build_flags.py' exited 106:
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\main.py", line 151:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Raymond.platformio\platforms\ststm32\builder\main.py", line 91:
target_elf = env.BuildProgram()
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 112:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 202:
env.Append(**env.ParseFlagsExtended(flags))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 165:
for key, value in env.ParseFlags(str(raw)).items():
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 807:
do_parse(arg)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 676:
arg = self.backtick(arg[1:])
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
==================================================== [FAILED] Took 1.57 seconds ====================================================

Environment Status Duration

megaatmega2560 IGNORED
megaatmega1280 IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 IGNORED
LPC1769 IGNORED
sanguino_atmega644p IGNORED
sanguino_atmega1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
rambo IGNORED
STM32F103RE IGNORED
STM32F103RC_fysetc IGNORED
STM32F103RC_bigtree IGNORED
STM32F103RC_bigtree_NOUSB FAILED 00:00:01.571
STM32F103RC_bigtree_512K IGNORED
STM32F103RC_bigtree_512K_NOUSB IGNORED
STM32F103RE_bigtree IGNORED
STM32F103RE_bigtree_NOUSB IGNORED
STM32F4 IGNORED
STM32F7 IGNORED
ARMED IGNORED
STM32F103VE_longer IGNORED
mks_robin IGNORED
mks_robin_lite IGNORED
mks_robin_mini IGNORED
mks_robin_nano IGNORED
jgaurora_a5s_a1 IGNORED
STM32F407VE_black IGNORED
BIGTREE_SKR_PRO IGNORED
BIGTREE_BTT002 IGNORED
teensy31 IGNORED
STM32F103CB_malyan IGNORED
chitu_f103 IGNORED
teensy35 IGNORED
esp32 IGNORED
fysetc_f6_13 IGNORED
linux_native IGNORED
SAMD51_grandcentral_m4 IGNORED
include_tree IGNORED
=============================================== 1 failed, 0 succeeded in 00:00:01.571 ===============================================
The terminal process terminated with exit code: 1

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

Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc (1 reply)

$
0
0
HI Everyone,
Im setting up a new printer with Marlin 2.0.x on a Azteeg X5 GT from Panucatt and 32bit
Im having a problem with Z homing to max endstop.

What ive found so far:
Physical endstop is triggered in the max when moving bed up to endstop, this is confirmed by M119
Reset board, and M114 to return:
Recv: X:0.00 Y:250.00 Z:0.00 E:0.00 Count X:0 Y:25000 Z:0
I can move the bed down via controls on octoprint say 10mm and M114 returns
Recv: X:0.00 Y:250.00 Z:-10.00 E:0.00 Count X:0 Y:25000 Z:-10667
and then back up to 0 at MAX with the endstop triggered with M119.

Then If I home via G28 or Z axis on octoprint.
The bed keeps lowering to the min and rams into floor....?? Does not home to MAX?

Can anyone see an error or possibly know a solution. Configuration.h attached as file
cheers
jason

My settings are all correct for:
"// @section homing

// Specify here all the endstop connectors that are connected to any endstop or probe.
// Almost all printers will be using one per axis. Probes will use one or more of the
// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
#define USE_XMIN_PLUG
//#define USE_YMIN_PLUG
//#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG

// Enable pullup for all endstops to prevent a floating state
//#define ENDSTOPPULLUPS
#if DISABLED(ENDSTOPPULLUPS)
// Disable ENDSTOPPULLUPS to set pullups individually
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif

// Enable pulldown for all endstops to prevent a floating state
//#define ENDSTOPPULLDOWNS
#if DISABLED(ENDSTOPPULLDOWNS)
// Disable ENDSTOPPULLDOWNS to set pulldowns individually
//#define ENDSTOPPULLDOWN_XMAX
//#define ENDSTOPPULLDOWN_YMAX
//#define ENDSTOPPULLDOWN_ZMAX
//#define ENDSTOPPULLDOWN_XMIN
//#define ENDSTOPPULLDOWN_YMIN
//#define ENDSTOPPULLDOWN_ZMIN
//#define ENDSTOPPULLDOWN_ZMIN_PROBE
#endif

// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
//#define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe."

and

"// @section homing

//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed

//#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.

//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
// Be sure you have this distance over your Z_MAX_POS in case.

// Direction of endstops when homing; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR 1

// @section machine

// The size of the print bed
#define X_BED_SIZE 250
#define Y_BED_SIZE 250

// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 200
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 0

/**
* Software Endstops
*
* - Prevent moves outside the set machine bounds.
* - Individual axes can be disabled, if desired.
* - X and Y only apply to Cartesian robots.
* - Use 'M211' to set software endstops on/off or report current state
*/

// Min software endstops constrain movement within minimum coordinate bounds
#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
#endif

// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z
#endif"

Final Marlin configuration (no replies)

$
0
0
Been a long road but my FLSUN kossel is almost ready to print again.
I have everything set using the manual configuration process to modify the Marlin script using Arduino.
However, now I have all the tower heights exactly the same the centre height is 0.7 mm above the bed at Z0.
I cannot find anything to guide me in this last adjustment that relates to the current Marlin version.
Everything I find refer to DELTA SMOOTH ROD OFFSET, but the new version does have this code at all.
I have not been able to find a work around, can anyone help?
I no longer have an effector with auto-calibration end-stop so I need to figure this out.

Delta homing under Marlin - moved from 'Deltas' (no replies)

$
0
0
I moved this problem from 'Deltas' to here are it's more of a Marlin issue than specifically with the machine itself.

I have a fairly new Anycubic Kossel Linear Plus running Marlin 1.1.9 (recently updated) on its TriGorilla board. Everything is going well, and I'm getting decent prints. However, I have one significant problem: when I'm doing the Delta Calibration routines via the LCD, the print head finishes off by trying to push itself through the front-left (X) column!

I have done quite a bit of on-line research and have got rid of quite a number of issues, but this one's a persistent little beggar...
  • If I do G28 the machine will home properly - reasonably central, and straight to the top - but it seems to go wrong now and again, and I can't predict when.
  • Killing/stopping a job will often send the head to the X column.
  • If I enter 'G0 F2000 X0 Y0 Z280' the head will go central and stop correctly near to the top.
  • If I enter Prepare -> Delta Calibration -> Auto Calibration on the printer's LCD terminal it will go through its routine, then head upwards and leftwards until it collides with the left (X) column.
  • A random selection (probably not totally 'random'!) will go straight up on home, others will head for the front-left position.
Almost certainly I have something wrong in my Marlin configuration - could people have a look at my Configuration.h file (attached) and suggest where I've gone wrong? I have also attached my Configuration_adv.h, just in case...

TIA,

David

2nd Serial on Velleman K8400 board for MMU2 (1 reply)

$
0
0
Hello All,

To take my printer to the next level I want to install a MMU2.

I think I got the most of it cleared out for my self. But I have big challenge: The MMU board needs a serial connection from the Printer to handle the commands. I checked which one is available but all the pins suitable are being used... (see attached schema of the main board) According to my information these pins are available for serial communication:
RX0: 00 PE0 Used for host communication (USB )
TX0: 01 PE1 Used for host communication (USB )

RX1: 19 PD2 unused (and no place on the board to connect this one)
TX1: 18 PD3 used for Zstop

RX2: 17 PH0 used for rotary encoder (I dont have schema of the LCD print but I traced the leads and checked the firmware's actual number)
TX2: 16 PH1 used for roraty encoder

RX3: 14  PJ1 used for Ystop
TX3: 15  PJ0 unused (and no place on the board to connect this one)

at this moment I think I have 2 options
- investigate SoftwareSerial (but how?? I don't think it is a good idea to use input interrupts in marlin)
- Replace the mainboard (which I don't like because I also need to replace the LCD etc)

But is there another option? Does anyone have an idea?

On the schematic lower right corner you'll have the connection to the LCD/encoder/SDcard
The connections on the schematic PK4-PG1 are easy accessible, I already have pin header on it for the bed-leveling.

Thanks in advanced, Martijn

Trigorilla 14 Board with Zonestar (LCD2004) Display (no replies)

$
0
0
Hi everybody,

I am owning a CTC Prusa i3 diy printer for about 5 months now and its my first printer. I think it was the best decision to learn as much as possible about 3D printers. And I am modifying it heavily. I recently bought a new mainboard, the Trigorilla 14 Board, because I want to use the TMC2204 stepper drivers. The stock Anet A8 mainboard clone has fixed stepper Drivers, so I had to buy a new board to change the stepper drivers.

When I decided to buy the Trigorilla board (it's the same board, the Anycubic I3 Mega is using afaik), I made sure it is supporting my old Zonestar (LCD2004) display, which the printer is originally using. When I started to edit the firmware of the Trigorilla board, so that it mostly fits to my printer, i came along a problem. And because I am still quite new in terms of the firmware, I was not able to solve that problem on my own so far.

The description in "Configuration.h" tells me:
#define ZONESTAR_LCD            // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
                                  // This LCD is known to be susceptible to electrical interference
                                  // which scrambles the display.  Pressing any button clears it up.
                                  // This is a LCD2004 display with 5 analog buttons.
And when I try to compile that sketch, an error about that "ADC_KEYPAD_PIN" occurs:
Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\MarlinConfig.h:39:0,

                 from sketch\Marlin.h:35,

                 from sketch\temperature.cpp:27:

sketch\temperature.cpp: In static member function 'static void Temperature::isr()':

temperature.cpp:2252:23: error: 'ADC_KEYPAD_PIN' was not declared in this scope

         HAL_START_ADC(ADC_KEYPAD_PIN);

                       ^

sketch\HAL.h:323:34: note: in definition of macro 'HAL_START_ADC'

   #define HAL_START_ADC(pin) if (pin > 7) ADCSRB = _BV(MUX5); else ADCSRB = 0; SET_ADMUX_ADCSRA(pin)

                                  ^

temperature.cpp:2252:23: error: 'ADC_KEYPAD_PIN' was not declared in this scope

         HAL_START_ADC(ADC_KEYPAD_PIN);

                       ^

sketch\HAL.h:321:53: note: in definition of macro 'SET_ADMUX_ADCSRA'

 #define SET_ADMUX_ADCSRA(pin) ADMUX = _BV(REFS0) | (pin & 0x07); SBI(ADCSRA, ADSC)

                                                     ^

sketch\temperature.cpp:2252:9: note: in expansion of macro 'HAL_START_ADC'

         HAL_START_ADC(ADC_KEYPAD_PIN);

         ^

exit status 1
'ADC_KEYPAD_PIN' was not declared in this scope

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
OK, the Keypad pin has to be assigned to an analog pin. But I don't know, what the adc keypad pin itself is and I also don't know, what pins on my board are analog. And even if I knew it, I am not sure, how to saflefy change the pin assignment in pins_trigorilla_14.h, so that nothing is broken afterwards. And furthermore the ADC_KEYPAD_PIN doesn't even appear in the pins_trigorilla_14.h file.

The pins of the Trigorilla board can be seen in the following link:
Trigorilla 14 Pins

I would be very glad, if somebody could help me solving this problem. If any further information are needed, please ask and I do my best to provide it.
And I am sorry for my bad english.

Best regards
Hoast

Z Bed moves up into nozzel when printing, but homes properly (1 reply)

$
0
0
Hi guys.

Just setting up my printer and testing the homing functions of all 3 axis.
Machine is:
1. X and Y belt moves in 1 plane.
2. Z bed lowers and raises from nozzel.

All homing works on all three axis very well, so Y and X home 1st, then Z homes up to the nozzel in the 0 (zero) direction, hits endstop and bumps 5mm as Ive asked in marlin firmware, then re homes slow.
All good..............

BUT,
When I print (after heat up etc and nozzle ready) the machine starts and the Z Bed moves up into the nozzle the WRONG DIRECTION.

Can anyone suggest a #define setting that Im missing in the attached files.??

cheers
Jason

#define HOMING_FEEDRATE_Z (20*60) (2 replies)

$
0
0
Can someone explain to me the line in marlin "#define HOMING_FEEDRATE_Z (20*60)" as it relates to changing the Z homing speed? I understand that changing the 20 number up or down changes the homing feedrate but I would like to know what 20"60 means regarding the Z feed rate in mm/m. To know this would be helpful in setting up a piezo z probe.
Thanks

It's a regular stripe, but where should I fix it? (4 replies)

$
0
0
there is a step every 1 mm. i think this is beautiful, but I don't want stripes.


[i.imgur.com]

[i.imgur.com]


change slicer (cura / slic3r)-> not change
change main board(mks gel l / skr 1.3) -> not change
change MICROSTEP_MODES(16,32,64)-> not change

G90
G1 X10 Y10 Z10
G1 X20 Y20 Z20
all movie 10mm
there is no problem with the movement distance even with only one axis

what should I do ?

Compiling Marlin V2.0 with VSCODE (3 replies)

$
0
0
Hi there, but

I cannot get Marlin V.2 to compile in VSCODE and Atom. One of my older versions of Marlin bugfix 2.0 do compile with no problems. Any newer versions all give me the error below. I have uninstalled the NXP platform and let it download the latest but it did not work. Can anyone give me pointers on what to try next. The platform.io file in the older version that compiles is precisely the same as the one in the new version that is not compiling. Am I missing something here?

The output on my build:

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

Can not remove temporary directory `d:\Nic\Prusa I3 3d printer\Firmware\Current - HyperCube\MarlinFirmware\.pioenvs`. Please remove it manually to avoid build issues
Processing LPC1768 (platform: [github.com]; framework: arduino; board: nxp_lpc1768)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: NXP Arduino LPC176x 0.1.0 > 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.1.3, toolchain-gccarmnoneeabi 1.80201.190214 (8.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ off, Compatibility ~ strict
Found 5 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.0.0
|-- 1.0.0
|-- 0.4
|-- 0.6.1
|-- 1.2.4
Building in release mode
upload disk: E:
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_SPI.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\main.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\persistent_store_flash.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\persistent_store_sdcard.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\timers.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_hw_spi.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\watchdog.cpp.o
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from .piolibdeps\LPC1768\U8glib-HAL_ID1932\src/U8glib.h:47,
from Marlin\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp:62:
.piolibdeps\LPC1768\U8glib-HAL_ID1932\src/clib/u8g.h:658:12: fatal error: HAL_LCD_defines.h: No such file or directory

*************************************************************************
* Looking for HAL_LCD_defines.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:HAL_LCD_defines.h"
* Web > [platformio.org]
*
*************************************************************************

#include
^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\HAL_SPI.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\HAL_SPI.cpp:51:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp.o] Error 1
In file included from .piolibdeps\LPC1768\U8glib-HAL_ID1932\src/U8glib.h:47,
from Marlin\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp:82:
.piolibdeps\LPC1768\U8glib-HAL_ID1932\src/clib/u8g.h:658:12: fatal error: HAL_LCD_defines.h: No such file or directory

*************************************************************************
* Looking for HAL_LCD_defines.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:HAL_LCD_defines.h"
* Web > [platformio.org]
*
*************************************************************************

#include
^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from .piolibdeps\LPC1768\U8glib-HAL_ID1932\src/U8glib.h:47,
from Marlin\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp:62:
.piolibdeps\LPC1768\U8glib-HAL_ID1932\src/clib/u8g.h:658:12: fatal error: HAL_LCD_defines.h: No such file or directory

*************************************************************************
* Looking for HAL_LCD_defines.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:HAL_LCD_defines.h"
* Web > [platformio.org]
*
*************************************************************************

#include
^~~~~~~~~~~~~~~~~~~
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp.o] Error 1
compilation terminated.
In file included from .piolibdeps\LPC1768\U8glib-HAL_ID1932\src/U8glib.h:47,
from Marlin\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_hw_spi.cpp:62:
.piolibdeps\LPC1768\U8glib-HAL_ID1932\src/clib/u8g.h:658:12: fatal error: HAL_LCD_defines.h: No such file or directory

*************************************************************************
* Looking for HAL_LCD_defines.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:HAL_LCD_defines.h"
* Web > [platformio.org]
*
*************************************************************************

#include
^~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o] Error 1
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_hw_spi.cpp.o] Error 1
In file included from Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\../../sd/cardreader.h:24,
from Marlin\src\HAL\HAL_LPC1768\main.cpp:38:
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\../../sd/cardreader.h:24,
from Marlin\src\HAL\HAL_LPC1768\main.cpp:38:
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update
the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\persistent_store_flash.cpp:44:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\persistent_store_flash.cpp:44:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\persistent_store_sdcard.cpp:29:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\persistent_store_sdcard.cpp:29:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\watchdog.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:25:4: error: #error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
#error "nxplpc-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries. You may need to remove the platform and let it reinstall automatically."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../inc/MarlinConfig.h:39,
from Marlin\src\HAL\HAL_LPC1768\watchdog.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:28:4: error: #error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
#error "framework-arduino-lpc176x package is out of date, Please update the PlatformIO platforms, frameworks and libraries."
^~~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/HAL_LPC1768/inc/SanityCheck.h:36:4: error: #error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See
the included pins files)."
#error "TEMP_BED_PIN must be defined using the Pn_nn or Pn_nn_An format. (See the included pins files)."
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/HAL.h:26,
from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:30,
from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/../shared/Marduino.h:36,
from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/./HAL_LPC1768/HAL.h:39,
from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/../HAL/HAL.h:26,
from Marlin\src\HAL\HAL_LPC1768\../../core/../inc/MarlinConfig.h:30,
from Marlin\src\HAL\HAL_LPC1768\../../core/serial.h:24,
from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
In file included 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.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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.cpp:25:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor.cpp.o] Error 1
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1
In file included 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/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/HAL.h:26,
from Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/MarlinConfig.h:30,
from Marlin\src\HAL\HAL_LPC1768\../../sd/cardreader.h:24,
from Marlin\src\HAL\HAL_LPC1768\main.cpp:38:
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../sd/../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/CDCSerial.h:34,
from Marlin\src\HAL\HAL_LPC1768\main.cpp:31:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_SPI.cpp.o] Error 1
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\main.cpp.o] Error 1
In file included 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\persistent_store_flash.cpp:44:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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\persistent_store_flash.cpp:44:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\persistent_store_flash.cpp.o] Error 1
In file included 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\persistent_store_sdcard.cpp:29:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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\persistent_store_sdcard.cpp:29:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\persistent_store_sdcard.cpp.o] Error 1
In file included 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\timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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\timers.cpp:31:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\timers.cpp.o] Error 1
In file included 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\watchdog.cpp:25:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: In function 'void HAL_start_adc(pin_t)':
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:140:34: error: 'read' is not a member of 'FilteredADC' {aka 'LPC176x::ADC<2, 23>'}
HAL_adc_reading = FilteredADC::read(pin) >> (16 - HAL_ADC_RESOLUTION); // returns 16bit value, reduce to required bits
^~~~
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h: At global scope:
Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/HAL.h:153:16: error: redefinition of 'constexpr bool VALID_PIN(pin_t)'
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
In file included from C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:34,
from Marlin\src\HAL\HAL_LPC1768\../../inc/../HAL/./HAL_LPC1768/../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\watchdog.cpp:25:
C:\users\scrat\.platformio\packages\framework-arduino-lpc176x\cores\arduino/pinmapping.h:240:16: note: 'constexpr bool VALID_PIN(pin_t)' previously defined here
constexpr bool VALID_PIN(const pin_t pin) {
^~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\watchdog.cpp.o] Error 1
==================================================================== [FAILED] Took 2.39 seconds ====================================================================

Environment Status Duration
-------------------- -------- ------------
megaatmega2560 IGNORED
megaatmega1280 IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 FAILED 00:00:02.392
LPC1769 IGNORED
melzi IGNORED
melzi_optiboot IGNORED
rambo IGNORED
sanguino_atmega644p IGNORED
sanguino_atmega1284p IGNORED
STM32F1 IGNORED
STM32F4 IGNORED
ARMED IGNORED
mks_robin IGNORED
black_stm32f407ve IGNORED
teensy35 IGNORED
malyanm200 IGNORED
esp32 IGNORED
fysetc_f6_13 IGNORED
linux_native IGNORED
============================================================== 1 failed, 0 succeeded in 00:00:02.392 ==============================================================
The terminal process terminated with exit code: 1

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

Regards

Nic

Marlin 2.0; run PID autotune from SD card? (1 reply)

$
0
0
Hi,

I cannot seem to get Pronterface working and I need to autotune my new heated bed. It is my first heated bed on a custom built machine so no standard settings known. Can I write a simple gcode to autotune and have it run from the SD card? I have a reprap smart controller and I print gcodes from the SD. I think I should just write:

M303 E-1 S70 C10
M500

This should in my view run ten cycles and get the best PID settings and save them. Is that indeed true and can I read those new values somewhere so I can write them in the firmware so after next update they will be OK?

Thanks,

Hugo

Anet A8 Ramps 1.6 no Voltage on D8,D9,D10 (not heating) (no replies)

$
0
0
Hi,

I Upgraded my Anet A8 from Original to Ramps 1.6 with Marlin 1.8.10.
I can read the temperature from the hotend and the bed, and when i set the bed or hotend to heat up, there isn't even voltage on the connectors for them.

As a board i set BOARD_RAMPS_14_EFB.

Even the Fan which is connected to D9 doesn't start.

I tried Marlin 1.1.9, 1.1.x bugfix, 2.0,x bugfix and i even tried Repertier 1.0.4 (Motherboard 33) - its always the same: no voltage on D8,D9,D10

br
michael

Compile Error (1 reply)

$
0
0
G'Day Gang,
I am getting the error below when trying to compile marlin bugfix 2 on a MKS Gen L V1 board. and a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
Any ideas why this is happening?

Arduino: 1.8.10 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch/src/inc/MarlinConfig.h:38:0,
from sketch/src/Marlin.h:24,
from sketch/src/Marlin.cpp:31:
sketch/src/inc/SanityCheck.h:581:6: error: #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
^~~~~
In file included from sketch/src/HAL/HAL_AVR/../../inc/MarlinConfig.h:38:0,
from sketch/src/HAL/HAL_AVR/HAL_SPI.cpp:34:
sketch/src/HAL/HAL_AVR/../../inc/SanityCheck.h:581:6: error: #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
^~~~~
In file included from sketch/src/HAL/HAL_AVR/../../inc/MarlinConfig.h:38:0,
from sketch/src/HAL/HAL_AVR/HAL.cpp:25:
sketch/src/HAL/HAL_AVR/../../inc/SanityCheck.h:581:6: error: #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
^~~~~
In file included from sketch/src/HAL/HAL_AVR/../../inc/MarlinConfig.h:38:0,
from sketch/src/HAL/HAL_AVR/MarlinSerial.cpp:39:
sketch/src/HAL/HAL_AVR/../../inc/SanityCheck.h:581:6: error: #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
^~~~~
In file included from sketch/src/HAL/HAL_AVR/../../inc/MarlinConfig.h:38:0,
from sketch/src/HAL/HAL_AVR/Servo.cpp:56:
sketch/src/HAL/HAL_AVR/../../inc/SanityCheck.h:581:6: error: #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
^~~~~
Multiple libraries were found for "U8glib.h"
Used: /home/dennis/Arduino/libraries/U8glib
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Scientific project (no replies)

$
0
0
Hi everyone.
I hope it is good place to put that subject. If not please Admin could You correct it?
I’m trying to build calibration equipment for echosounder. How the calibration looks like: link

That is practically very big Delta printer without extruder.
Each engine (winch) is steering wireless (two way) with LoRa communication. The setup what I have is remote control with display and PS2 pad.
All stepper engines are with battery, Arduino, driver (TCM2130) and communication board. On my software a can move only one engine on the same time because all engines are not coordinated. I think that using existing software will be easier for upgrade it in the future.
This is not commercial project only scientific. It doesn't have to be super accurate.
I thought that remote control will be “master” board with Marlin firmware, and it will be sending commands to each engine separately (or together). Other “slave” board will be controlling the engines and of course position, with every maybe 10sec will be sending back to the “master”.

My problem is that I have no idea where in the “master” program should I disconnect software from engines and put their communication function.
Do someone of You know where is the place inside the program where are, let say, commands: “Left engine move 200 steps, Right 300 and Front -20 steps”?

Regards

Multiple heater/cartridge for one extruder ? (no replies)

$
0
0
Dear marlin community,

After spending days looking for a solution I'm asking here.
Is it possible to control 2 (or more) cartridges for one extruder ?

I want to use a pellets extruder with 2 (or more) heated zones but with 1 stepper motor. Each heated zone has a different temperature.
Marlin is ready to use mutiples temp_sensors but here how it works

temp_sensor 0 = extruder 1
temp_sensor_1 = extruder 2
temp_sensor_2 = extruder 3

Marlin doesn't allow to use a temp_sensor_2 without 3 extruder declared in configuration.h And for each extruder its wants a motor with “step” and “dir” pins declared…
The only solution I have to try is to create a “fake” extruder and use its temp_sensor for my pellets extruder. I have to declare fake pin for motor “step” “dir”…

Any other solution ?

Thank you for your answer.
Viewing all 2831 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>