Welcome! Log In Create A New Profile

Advanced

Building Firmware for Upload returns Error about TMC2208

Posted by Laurelinwen 
Building Firmware for Upload returns Error about TMC2208
May 13, 2021 06:57PM
I am trying to build and upload Marlin Firmware 2.0.8 Release.
I Downloaded Marlin 2.0.8 Release from here [marlinfw.org]
and the configuration File from here [github.com].
I am useing VSCode with PlatformIO and Marlin Auto Build. I am trying to Build from config/examples/Geeetech/A10T/StockLCD

I want to use the Firmeware for my Geeetech A10T with a GT2560 V4.0 Motherboard and 6x TMC2208 Stepper Motors and a 3DTouch.
In the Printer the GT2560 is a Version 4.0, in the Firmware it says GT2560 V3.0. But i allready learned there is no difference in Pin Layout.
I changed the Numbers of Extruders from 1 to 3. Returned Error. So i undid this.

// @section extruder

// This defines the number of extruders
// :[0, 1, 2, 3, 4, 5, 6, 7, 8]
#define EXTRUDERS 1 [Geeetech A10T has 3 Extruder/Filament Guides and one Nozzle/Frontend.]


I modifyed the following Section by changeing the Steppermotors that i am using now. Original are A4988 to TMC2208. I undid because of Errors in VSCode:
/**
* Stepper Drivers
*
* These settings allow Marlin to tune stepper driver timing and enable advanced options for
* stepper drivers that support them. You may also override timing options in Configuration_adv.h.
*
* A4988 is assumed for unspecified drivers.
*
* Use TMC2208/TMC2208_STANDALONE for TMC2225 drivers and TMC2209/TMC2209_STANDALONE for TMC2226 drivers.
*
* Options: A4988, A5984, DRV8825, LV8729, L6470, L6474, POWERSTEP01,
* TB6560, TB6600, TMC2100,
* TMC2130, TMC2130_STANDALONE, TMC2160, TMC2160_STANDALONE,
* TMC2208, TMC2208_STANDALONE, TMC2209, TMC2209_STANDALONE,
* TMC26X, TMC26X_STANDALONE, TMC2660, TMC2660_STANDALONE,
* TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE
* :['A4988', 'A5984', 'DRV8825', 'LV8729', 'L6470', 'L6474', 'POWERSTEP01', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE']
*/
#define X_DRIVER_TYPE TMC2208 changed from A4988
#define Y_DRIVER_TYPE TMC2208 changed from A4988
#define Z_DRIVER_TYPE TMC2208 changed from A4988
//#define X2_DRIVER_TYPE A4988
//#define Y2_DRIVER_TYPE A4988
//#define Z2_DRIVER_TYPE A4988
//#define Z3_DRIVER_TYPE A4988
//#define Z4_DRIVER_TYPE A4988
#define E0_DRIVER_TYPE TMC2208 changed from A4988
#define E1_DRIVER_TYPE TMC2208 changed from A4988
#define E2_DRIVER_TYPE TMC2208 changed from A4988
//#define E3_DRIVER_TYPE A4988
//#define E4_DRIVER_TYPE A4988
//#define E5_DRIVER_TYPE A4988
//#define E6_DRIVER_TYPE A4988
//#define E7_DRIVER_TYPE A4988

// Enable this feature if all enabled endstop pins are interrupt-capable.
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
//#define ENDSTOP_INTERRUPTS_FEATURE

Building the Firmware returns Errors:

Processing mega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: Atmel AVR (3.3.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.70300.191015 (7.3.0)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 7 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 0.7.1
| |-- 1.0
| |-- 1.0
|-- 1.5.0
| |-- 1.0
|-- 1.0
|-- 1.0
|-- 2.0
|-- 1.0
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\watchdog.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\shared\Delay.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\shared\HAL_MinSerial.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\shared\esp_wifi.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\shared\servo.cpp.o
Compiling .pio\build\mega2560\src\src\MarlinCore.cpp.o
Compiling .pio\build\mega2560\src\src\core\serial.cpp.o
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\eeprom.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\eeprom.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\watchdog.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\watchdog.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\shared\Delay.h:24,
from Marlin\src\HAL\shared\Delay.cpp:22:
Marlin\src\HAL\shared\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\shared\Delay.h:24,
from Marlin\src\HAL\shared\Delay.cpp:22:
Marlin\src\HAL\shared\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\shared\../../core/../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\shared\../../core/../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\../../core/serial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.cpp:22:
Marlin\src\HAL\shared\../../core/../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\shared\../../core/../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\shared\../../core/../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\../../core/serial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.cpp:22:
Marlin\src\HAL\shared\../../core/../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\servo.cpp:53:
Marlin\src\HAL\shared\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\servo.cpp:53:
Marlin\src\HAL\shared\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:56:0,
from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\esp_wifi.cpp:23:
Marlin\src\HAL\shared\../../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\shared\esp_wifi.cpp:23:
Marlin\src\HAL\shared\../../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\eeprom.cpp:24:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\shared\Delay.cpp:24:
Marlin\src\HAL\shared\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\inc/MarlinConfigPre.h:56:0,
from Marlin\src\inc/MarlinConfig.h:28,
from Marlin\src\MarlinCore.h:24,
from Marlin\src\MarlinCore.cpp:31:
Marlin\src\inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\inc/MarlinConfigPre.h:39:0,
from Marlin\src\inc/MarlinConfig.h:28,
from Marlin\src\MarlinCore.h:24,
from Marlin\src\MarlinCore.cpp:31:
Marlin\src\inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\core\../inc/MarlinConfigPre.h:56:0,
from Marlin\src\core\../inc/MarlinConfig.h:28,
from Marlin\src\core\serial.h:24,
from Marlin\src\core\serial.cpp:23:
Marlin\src\core\../inc/../../Configuration_adv.h:24:0: warning: "CONFIG_EXAMPLES_DIR" redefined
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T"

In file included from Marlin\src\core\../inc/MarlinConfigPre.h:39:0,
from Marlin\src\core\../inc/MarlinConfig.h:28,
from Marlin\src\core\serial.h:24,
from Marlin\src\core\serial.cpp:23:
Marlin\src\core\../inc/../../Configuration.h:24:0: note: this is the location of the previous definition
#define CONFIG_EXAMPLES_DIR "Geeetech/A10T/Stock LCD"

In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\AVR\watchdog.cpp:24:
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\HAL\shared\../../core/../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\shared\../../core/serial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.h:24,
from Marlin\src\HAL\shared\HAL_MinSerial.cpp:22:
Marlin\src\HAL\shared\../../core/../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1
In file included from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\shared\servo.cpp:53:
Marlin\src\HAL\shared\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1
In file included from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:49:0,
from Marlin\src\HAL\shared\esp_wifi.cpp:23:
Marlin\src\HAL\shared\../../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\Delay.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\HAL_MinSerial.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\servo.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\esp_wifi.cpp.o] Error 1
In file included from Marlin\src\inc/MarlinConfig.h:49:0,
from Marlin\src\MarlinCore.h:24,
from Marlin\src\MarlinCore.cpp:31:
Marlin\src\inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
In file included from Marlin\src\core\../inc/MarlinConfig.h:49:0,
from Marlin\src\core\serial.h:24,
from Marlin\src\core\serial.cpp:23:
Marlin\src\core\../inc/SanityCheck.h:2561:4: error: #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
^~~~~
*** [.pio\build\mega2560\src\src\core\serial.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\MarlinCore.cpp.o] Error 1
=============================================================================================== [FAILED] Took 3.64 seconds ===============================================================================================

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

Terminal will be reused by tasks, press any key to close it.
rq3
Re: Building Firmware for Upload returns Error about TMC2208
May 13, 2021 07:59PM
try changing lines that look like this:
#define X_DRIVER_TYPE TMC2208 changed from A4988

to this:
#define X_DRIVER_TYPE TMC2208 //changed from A4988

That will make the old A4988 driver type a comment, rather than part of the compiled code (which won't work).

Edited 1 time(s). Last edit at 05/13/2021 08:03PM by rq3.
Re: Building Firmware for Upload returns Error about TMC2208
May 13, 2021 08:13PM
Sorry but that was just an Info about what i did. "changed from A4988" is just a comment here in the Message. This did not appear in VSCode/PlatformIO. I didnt mean to confuse.

In the Meantime i tryed again from the scratch. Downloading Marlin 2.0.8 release and Configuration 2.0.8 release. Copied example configuration into Marlin Folder replaced existing configuration.h.
Opened Folder in VSCode. Went to configuration.h. Modified Sections and Entrys.

Changed the Stepper to TMC2208.
Checked for Errors.
Did changes according to the Errors.
But i cannot do anything about the #error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."
Re: Building Firmware for Upload returns Error about TMC2208
May 13, 2021 10:27PM
The error is "#error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."

Which is correct for TMC2208

setting TMC2208 you are telling Marlin you want to use the TMC2208 in UART mode which requires serial lines.
This motherboard does not support UART mode. So there are no pins defined in the boards pins file setup for (X|Y|Z|E)_HARDWARE_SERIAL or (X|Y|Z|E)_SERIAL_(RX|TX)_PIN
If this is what you are really after you need to add external wires between the TMC2208 Uart pins and your motherboard. then you need to add the pins you used to Marlin. See ramps pins file for examples.


What your probably doing is running the TMC2208 in standalone mode, where they don't use UART and don't need serial ports configured.
In which case you should set your stepper drivers to TMC2208_STANDALONE not TMC2208

Edited 1 time(s). Last edit at 05/13/2021 11:28PM by Dust.
Re: Building Firmware for Upload returns Error about TMC2208
May 14, 2021 08:47AM
Ahhhhhh...now that makes Sense.
Thank you Dust.
I think i understand now.
spinning smiley sticking its tongue out

I will test that right away.
May i ask for some suggestions for Mconfig besides Marling Config page?
Re: Building Firmware for Upload returns Error about TMC2208
October 31, 2021 06:46PM
Indeed TMC2208_STANDALONE solved the Issue.

Thank you again Dust.

On to the next Issue.

Regards

Laurelinwen
Sorry, only registered users may post in this forum.

Click here to login