Closed heyitsyang closed 10 months ago
Hi heyitsyang,
This looks like something goes wrong in the python scripts of platformIO. Maybe you're using a new prerelease or something. Try to update to the lastest version (or resinstall?)
A difference I see is the platform. I use platform = espressif32
Hope this helps
Rene
@rzeldent, thanks for your reply.
If I use platform = espressif32, I get: fatal error: pins_arduino.h: No such file or directory
Using the upstream platform = https://github.com/platformio/platform-espressif32.git makes the pins_arduino.h error go away, but I get the AttributeError previously shown. I have tried re-installing PIO with same results. I can compile all of my old projects with the same PIO setup.
I should mention I had to add seeed_xiao_esp32s3.json to my .platformio/boards directory to get this far.
Just noticed that PIO can't find Arduino.h. I'll research further.
I'm not sure what I did, but it caused Intellisense to run and fix my Arduino.h problem. Everything compiles as expected now. Thanks for your help.
I am using the following in pio:
[env:seeed_xiao_esp32s3] platform = https://github.com/platformio/platform-espressif32.git board = seeed_xiao_esp32s3 build_flags = -D BOARD_SEEED_XIAO_ESP32S3_SENSE
But I get this error. Any ideas?