Welcome! Log In Create A New Profile

Advanced

BTT GTR V1.0 collect2.exe: error: ld returned 1 exit status *** [.pio\build\BIGTREE_GTR_V1_0\firmware.elf] Error 1

Posted by 3D-Freak 
Hello all,

i hope you are all healty.
May somebody can help me.

HW:
Board BigTreeTech GTR V1.0 | M5 Board | 11x TMC5160 v1.2 | TFT35 E3 V3.0
Stepper 5X 17hs24-2104s (4x Z-Axis / 1x X-Axis) | 5x 17hs19-2004s1 (2x Y-Axis 3x Extruder)
Mainpower 24V 41.6A (1000W)
Marlin 2.0.53

Problem 1: with Original FW, motor not working correct, just make noise like a loud krrrkrrkrrkrrrkrrrr

Marlin 2.0.(5.3)
After long time testing, i have only these errors, but they want go.

Processing BIGTREE_GTR_V1_0 (platform: [email protected]>=5.7.0; framework: arduino; board: BIGTREE_GTR_V1_0)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 7.0.0 > STM32F407ZG (192k RAM. 1024k Flash)
HARDWARE: STM32F407ZGT6 168MHz, 192KB RAM, 1MB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES:
- framework-arduinoststm32 3.10700.191028 (1.7.0)
- framework-cmsis 2.50501.200527 (5.5.1)
- toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 0.4.1
| |-- 1.0
| |-- 1.0
|-- 1.5.0
| |-- 1.0
|-- 0.7.1
| |-- 1.0
|-- 1.5.0
|-- 1.2.7
| |-- 1.0
|-- 0.7.0
|-- 1.0
|-- 1.1.2
|-- 1.0.0
|-- 1.0
Building in release mode
Linking .pio\build\BIGTREE_GTR_V1_0\firmware.elf
c:/users/freak/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_wired.cpp.o: in function `PersistentStore::capacity()':
G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_wired.cpp:40: multiple definition of `PersistentStore::capacity()'; .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_impl.cpp.o:G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_impl.cpp:94: first defined here
c:/users/freak/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_wired.cpp.o: in function `PersistentStore::access_start()':
G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_wired.cpp:42: multiple definition of `PersistentStore::access_start()'; .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_impl.cpp.o:G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_impl.cpp:33: first defined here
c:/users/freak/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_wired.cpp.o: in function `PersistentStore::access_finish()':
G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_wired.cpp:43: multiple definition of `PersistentStore::access_finish()'; .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_impl.cpp.o:eeprom_impl.cppsad smiley.text._ZN15PersistentStore13access_finishEv+0x0): first defined here
c:/users/freak/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_wired.cpp.o: in function `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)':
G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_wired.cpp:45: multiple definition of `PersistentStore::write_data(int&, unsigned char const*, unsigned int, unsigned short*)'; .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_impl.cpp.o:G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_impl.cpp:39: first defined here
c:/users/freak/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_wired.cpp.o: in function `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)':
G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_wired.cpp:68: multiple definition of `PersistentStore::read_data(int&, unsigned char*, unsigned int, unsigned short*, bool)'; .pio/build/BIGTREE_GTR_V1_0/src/src/HAL/STM32/eeprom_impl.cpp.o:G:\MarlinGTR-BTT/Marlin\src\HAL\STM32/eeprom_impl.cpp:67: first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\BIGTREE_GTR_V1_0\firmware.elf] Error 1
================================================================================================== [FAILED] Took 34.42 seconds ==================================================================================================
Environment Status Duration
------------------------ -------- ------------
mega2560 IGNORED
mega1280 IGNORED
rambo IGNORED
FYSETC_F6_13 IGNORED
FYSETC_F6_14 IGNORED
sanguino644p IGNORED
sanguino1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 IGNORED
LPC1769 IGNORED
STM32F103RC IGNORED
STM32F103RC_fysetc IGNORED
STM32F103RC_btt IGNORED
STM32F103RC_btt_USB IGNORED
STM32F103RC_btt_512K IGNORED
STM32F103RC_btt_512K_USB IGNORED
STM32F103RE IGNORED
STM32F103RE_btt IGNORED
STM32F103RE_btt_USB IGNORED
STM32F4 IGNORED
STM32F7 IGNORED
ARMED IGNORED
STM32F103VE_GTM32 IGNORED
STM32F103VE_longer IGNORED
mks_robin_mini IGNORED
mks_robin_nano IGNORED
mks_robin IGNORED
mks_robin_pro IGNORED
mks_robin_lite IGNORED
mks_robin_lite3 IGNORED
jgaurora_a5s_a1 IGNORED
STM32F103CB_malyan IGNORED
chitu_f103 IGNORED
STM32F401VE_STEVAL IGNORED
FLYF407ZG IGNORED
FYSETC_S6 IGNORED
STM32F407VE_black IGNORED
BIGTREE_SKR_PRO IGNORED
BIGTREE_GTR_V1_0 FAILED 00:00:34.420
BIGTREE_BTT002 IGNORED
teensy31 IGNORED
teensy35 IGNORED
esp32 IGNORED
linux_native IGNORED
SAMD51_grandcentral_m4 IGNORED
rumba32_f446ve IGNORED
rumba32_mks IGNORED
include_tree IGNORED
============================================================================================= 1 failed, 0 succeeded in 00:00:34.420 =============================================================================================The terminal process terminated with exit code: 1

Thanks in advance.
update

on my octo-print system (win10)
Octoprint (1.4) for windows: [community.octoprint.org]

i installd pyhton for win 3.83. [www.python.org]
then followed this [platformio.org]

DL Marlin-2.0x + release 2.0.5.3 and bugfix-2.0.x
unzipping all then copy all file in Configurations-release-2.0.5i to Marlin-2.0x folder, after then Marlin-bugfix-2.0.x folder too.
override all files.
then you need the Marlin-2.0x\Marlin-BTT-GTR-V10\buildroot\share\PlatformIO\boards\BIGTREE_GTR_V1_0.json file.
if you don't have copy the BIGTREE_GTR_V1.json file and rename the file.

prepared the platformio.ini configuration.h, configuration_adv.h with my BIGTREE_GTR_V1_0 constellation.
Marlin worked fine.

only now i have connection problem to my GTR over usb, but firmware can be stored on sd card.

case can close

Edited 3 time(s). Last edit at 07/10/2020 12:47PM by 3D-Freak.
Sorry, only registered users may post in this forum.

Click here to login