添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi I am trying to build a creality ender 3 4.2.7 + BL Touch firmware using VSCode on an M1 MAC I get the following at link stage.
/Users/reg/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/9.2.1/…/…/…/…/arm-none-eabi/bin/ld: .pio/build/STM32F103RET6_creality/FrameworkArduino/main.cpp.o: in function main': /Users/reg/.platformio/packages/framework-arduinoststm32/cores/arduino/main.cpp:52: undefined reference to setup’
/Users/reg/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/9.2.1/…/…/…/…/arm-none-eabi/bin/ld: /Users/reg/.platformio/packages/framework-arduinoststm32/cores/arduino/main.cpp:58: undefined reference to `loop’

and basically it then fails any ideas how I can fix this? as an interim I have searched for pre-compiled software but no luck other than creality which doesn’t work.

Can’t reproduce on Windows 10. I downloaded the 2.0.x (=2.0.9.3) release from the link above, toko the config files from the link above and put them into Marlin/ , I had to add #define FAN_SOFT_PWM as a bugfix as noted by [BUG] Ender 5 Pro v4.2.2 - STM32F103RET6 Visual Studio Fail · Issue #23588 · MarlinFirmware/Marlin · GitHub , then when running in the STM32F103RET6_creality environment ( pio run -e STM32F103RET6_creality ), it all compiles.

Linking .pio\build\STM32F103RET6_creality\firmware-20220210-153238.elf
Checking size .pio\build\STM32F103RET6_creality\firmware-20220210-153238.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.1% (used 7300 bytes from 65536 bytes)
Flash: [===       ]  27.6% (used 144456 bytes from 524288 bytes)
Building .pio\build\STM32F103RET6_creality\firmware-20220210-153238.bin
=================[SUCCESS] Took 37.33 seconds =================

Did you delete your Marlin\Marlin.ino file?

I’ve uplaoded my prepared Marlin version at https://drive.google.com/file/d/15iolKzi4b4Tx617MGrUHcEt3BRbMf1wc/view?usp=sharing.

Please download and extract, Open VSCode, PIO Home should open automatically → Open Project → The extracted folder → Ok → Trust Workspace → Build button at the bottom toolbar (checkmark icon).

There is no reason why it should not work on Mac o_O. Do you see this file and function?

grafik1171×724 80 KB

Also, open a CLI and execute pio upgrade --dev. Does it still not link after that?