Open RicardoSPeres opened 2 months ago
It is upload problem. It is teensy-cli/platformio issue. I tested with a teensy41 (with the same MCU as teensy40) and got the same issue. The second upload will success. It is not related to linorobot2_hardware project.
Building in release mode Linking .pio/build/teensy41/firmware.elf Checking size .pio/build/teensy41/firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" Building .pio/build/teensy41/firmware.hex Configuring upload protocol... AVAILABLE: jlink, teensy-cli, teensy-gui CURRENT: upload_protocol = teensy-cli Rebooting... Uploading .pio/build/teensy41/firmware.hex Teensy Loader, Command Line, Version 2.2 Read ".pio/build/teensy41/firmware.hex": 148480 bytes, 7.3% usage Unable to soft reboot with USB error: Success Waiting for Teensy device... (hint: press the reset button) Found HalfKay Bootloader Read ".pio/build/teensy41/firmware.hex": 148480 bytes, 7.3% usage error writing to Teensy
*** [upload] Error 1
Hi, calibration works fine but the firmware upload stopped working (had it previously running fine around November 2023 on the same robot). I saw the suggestions on #35 and also experimented with changing the
lib_deps
in linorobot2_hardware/firmware/platformio.ini to match the different branches (rolling, foxy and humble) but it still fails.Also, I just tried a fresh install, linorobot2_hardware is outside my workspace folder. Any help is appreciated, thanks.
Here's my lib_deps:
And the output after running
pio run --target upload -e teensy40
: