Welcome! Log In Create A New Profile

Advanced

#error "PULLDOWN pin mode is not available on AVR boards."

Posted by mirko86 
#error "PULLDOWN pin mode is not available on AVR boards."
April 03, 2022 03:21PM
Hello

Can anybody help with this. My english is not so good, but hope you understand my issue.
If i try to build test Marlin autobuild with basic settings it works, but if i copy(overwrite) from Configurations-bugfix-2.0.x my printer settings (Creality CR-10 v3) its not working anymore.
It shows:

Building in release mode
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\fast_pwm.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\fastio.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\u8g_com_HAL_AVR_sw_spi.cpp.o
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Compiling .pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\eeprom.cpp:24:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\fast_pwm.cpp:24:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/SanityCheck.h:76:4: error: #error "PULLDOWN pin mode is not available on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\fast_pwm.cpp.o] Error 1
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:51:0,
from Marlin\src\HAL\AVR\watchdog.cpp:24:
ailable on AVR boards."
#error "PULLDOWN pin mode is not available on AVR boards."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o] Error 1
====================================== [FAILED] Took 12.19 seconds ======================================

Environment Status Duration
------------- -------- ------------
mega2560 FAILED 00:00:12.192
================================= 1 failed, 0 succeeded in 00:00:12.192 =================================
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x> echo "done" >"C:\Users\mirko\AppData\Local\Temp\ipc"
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x>
Attachments:
open | download - Works.png (312.7 KB)
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 03, 2022 04:21PM
Post your Configuration.h an Configuration_adv.h files with the Version of marlin you are working, will take a look.

Though I believe this line must be disabled in configuration.h
//#define ENDSTOPPULLDOWNS

Edited 1 time(s). Last edit at 04/03/2022 04:41PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 03, 2022 09:29PM
Avr micro controller only have internal pullups, you cannot enable ENDSTOPPULLDOWNS, it does nothing.

Now it errors to tell you this is not a valid option
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 03, 2022 11:51PM
Thanks smiling smiley

Both files are attached.
Attachments:
open | download - Configuration.h (115.5 KB)
open | download - Configuration_adv.h (177.6 KB)
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 03, 2022 11:57PM
Thats the thing- I dont enable anything myself smiling smiley Just taking configurations from Marlin configuration-bugfix 2.0 examples folder and overwrite. After that i dont do any changes yet, but if i start autobuild it showes this error.

And these rows are disabled

// Enable pulldown for all endstops to prevent a floating state
//#define ENDSTOPPULLDOWNS
#if DISABLED(ENDSTOPPULLDOWNS)
// Disable ENDSTOPPULLDOWNS to set pulldowns individually
//#define ENDSTOPPULLDOWN_XMIN
//#define ENDSTOPPULLDOWN_YMIN
//#define ENDSTOPPULLDOWN_ZMIN
//#define ENDSTOPPULLDOWN_IMIN
//#define ENDSTOPPULLDOWN_JMIN
//#define ENDSTOPPULLDOWN_KMIN
//#define ENDSTOPPULLDOWN_UMIN
//#define ENDSTOPPULLDOWN_VMIN
//#define ENDSTOPPULLDOWN_WMIN
//#define ENDSTOPPULLDOWN_XMAX
//#define ENDSTOPPULLDOWN_YMAX
//#define ENDSTOPPULLDOWN_ZMAX
//#define ENDSTOPPULLDOWN_IMAX
//#define ENDSTOPPULLDOWN_JMAX
//#define ENDSTOPPULLDOWN_KMAX
//#define ENDSTOPPULLDOWN_UMAX
//#define ENDSTOPPULLDOWN_VMAX
//#define ENDSTOPPULLDOWN_WMAX
//#define ENDSTOPPULLDOWN_ZMIN_PROBE
#endif

Edited 1 time(s). Last edit at 04/04/2022 12:01AM by mirko86.
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 04, 2022 01:51AM
It'll compile if you comment out the following lines:
1609 #define FIL_RUNOUT_PULLDOWN
99 #define SHOW_CUSTOM_BOOTSCREEN
102 #define CUSTOM_STATUS_SCREEN_IMAGE

The last two are because the files _Bootscreen.h and _Statusscreen.h are missing. I expect you'll find them in the same place as where you obtained your configuration files.
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 04, 2022 04:18AM
Has

#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 04, 2022 04:20AM
The error was only added recently.. and not all configs have been updated...

Looks like you found one that needs updated
Re: #error "PULLDOWN pin mode is not available on AVR boards."
April 04, 2022 10:51AM
Super smileys with beer

It works. Big big thanks to both of you spinning smiley sticking its tongue out
Sorry, only registered users may post in this forum.

Click here to login