I have been trying to get a successful build for the Marlin Firmware. I keep getting the error:
“Collect2.exe: error: LD returned 1 exit status
***[.pio\build\mega2560\firmware.elf] Error 1”
I get the same error when trying to do it with the marlin firmware configuration I have and with just the vanilla firmware. I have tried researching to find the problem, but most of what I have done has not fixed the problem still.
I have updated Python, removed and reinstalled PlatformIO, ran ‘pio home’ but it says that “PlatformIO Home server is already started in another process” (but I can’t find WHERE that’s at to stop it). I am just at a loss and hope someone can point me in the right direction. Happy to provide any other info needed.
What’s the error message above that?
Fixed in the development branch of PlatformIO Core 6.0. See the solution
opened 06:09PM - 16 May 22 UTC
closed 10:34AM - 17 May 22 UTC
bug
config
# Solution
1. Please open PlatformIO Core CLI (see screenshot below)
2. Type… `pio upgrade --dev`
3. Restart VSCode.
![168773624-58165d88-e854-497a-8da9-40fc758651f6](https://user-images.githubusercontent.com/1760209/168824649-98cb2dc0-dd02-49b9-b64f-4110bce49203.png)
------
Executing task: C:\Users\Mike.platformio\penv\Scripts\platformio.exe run <
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing STM32F103RE_btt_maple (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
---------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
1 Like
That worked! Thank you! I didn’t see that in my research. Thank you that fixed the problem!
1 Like