Can't upload code to BPI Leaf S3

I’m having trouble uploading a basic “Blink” script to my BPI Leaf S3 using PlatformIO. I keep getting the following error:

A friend suggested that a possible solution would be to revert the esptool version from 4.5 to 4.2.1. I was wondering if anyone knew how to do that exactly?

platform_packages plus tool-esptoolpy.

platform_packages = tool-esptoolpy@1.40201.0
1 Like

Ahh thanks! I put a ‘^’ after the ‘@’ and it was just messing it up

Yes, because ^ means pick the highest version that still has the first number equal to it. So 1.x.x for the expression ^1.40201.0. Which would be 1.40500.0 with the available versions listed above, which however encodes esptoolpy 4.5.0.

See

https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_install.html#cmd-pkg-install-requirements

1 Like