Closed doudar closed 2 years ago
Okay, the linker error is
c:/users/anthony/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: final link failed: bad value collect2.exe: error: ld returned 1 exit status
The large (and only) warning message just made me suspect this library, but it’s a big project so I’ll try commenting out this library (and associated code) and see if it compiles.
It looks like the issue was that arduino framework 2.0.1 is just too new with PlatformIO. following this: https://github.com/espressif/arduino-esp32/issues/5436
Then adding (modifying) the following to my platformio.ini fixed the issue:
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.1 toolchain-xtensa32@~2.80400.0
Feel free to close the issue once you see it.
Thanks!
Final linking fails when using framework arduino-esp32.git#2.0.1
Here are the warnings:
.pio/libdeps/release/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp: In member function 'void StepperQueue::init(uint8_t, uint8_t)': .pio/libdeps/release/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:298:62: warning: 'esp_err_t mcpwm_isr_register(mcpwm_unit_t, void (*)(void*), void*, int, intr_handle_data_t**)' is deprecated: interrupt events are handled by driver, please use callback [-Wdeprecated-declarations] NULL, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_SHARED, NULL); ^ In file included from .pio/libdeps/release/FastAccelStepper/src/StepperISR.h:58, from .pio/libdeps/release/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: C:/Users/Anthony/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/mcpwm.h:926:11: note: declared here esp_err_t mcpwm_isr_register(mcpwm_unit_t mcpwm_num, void (*fn)(void *), void *arg, int intr_alloc_flags, ^~~~~~~~~~~~~~~~~~ .pio/libdeps/release/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:298:62: warning: 'esp_err_t mcpwm_isr_register(mcpwm_unit_t, void (*)(void*), void*, int, intr_handle_data_t**)' is deprecated: interrupt events are handled by driver, please use callback [-Wdeprecated-declarations] NULL, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_SHARED, NULL); ^ In file included from .pio/libdeps/release/FastAccelStepper/src/StepperISR.h:58, from .pio/libdeps/release/FastAccelStepper/src/StepperISR_esp32_espidfv4.4.cpp:2: C:/Users/Anthony/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/mcpwm.h:926:11: note: declared here esp_err_t mcpwm_isr_register(mcpwm_unit_t mcpwm_num, void (*fn)(void *), void *arg, int intr_alloc_flags,