-
-
Notifications
You must be signed in to change notification settings - Fork 698
featheresp32-s2 does not work properly #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
BTW, Other sketches such as the blink and neopixel and serial port works fine using both programs. |
@valeros Noting that this is not an issue with PlatformIO. @kuravih The Playground I2C scan example needs to be modified for the Feather ESP32-S2 because..
Please try the modified i2c scan test on this page: |
@brentru Thank you so much. I did not spot that section, Curiously it worked out of the box with the arduino ide, and not platfromio, so I just assumed it was a platfromio issue. Marking as resolved, |
The Arduino core has the I2C power up code built into an initialization function that is called by the core before setup() in adafruit_feather_esp32s2/variant.cpp, there should be no different code than in the Arduino IDE needed. It seems PlatformIO has problems linking this weak function and setting |
It seems the Arduino-ESP32 builder script has a bug in regards to linking in the variant.cpp object file in a way that makes the usage of the Exchanging this with env.BuildSources(
join("$BUILD_DIR", "FrameworkArduinoVariant"),
join(variants_dir, env.BoardConfig().get("build.variant"))
) so that a The builder script for ESP32S2 is locally at CC @valeros |
I've opened a pull request that fixes this as linked above. @kuravih you can use the [env:featheresp32-s2]
platform = espressif32
board = featheresp32-s2
framework = arduino
platform_packages =
framework-arduinoespressif32@https://github.com/maxgerhardt/arduino-esp32.git#patch-3 to test this change. |
Thanks for supporting this, Max. |
I tested the fix on hardware and verified it to be working. @maxgerhardt and @brentru Thank you very much for your time. |
TLDR
Works on arduino IDE but not on platformio
I'm using a Adafruit ESP32-S2 Feather with BME280 Sensor. I'm trying to access the sensor using the i2c scanner
The
platformio.ini
:The board programs fine but the program does not find any of the sensors.
However using the Arduino IDE, and the board definition (
Tools > Board > ESP32 Arduino > Adafruit Feather ESP32-S2
) the program finds the two i2c sensors on the board as expected.Another observation:
When programed through the Arduino IDE the programs prints the
testing address xx
lines all in one quick burst, (finds the two connected devices), then holds 5 seconds before doing another loop iteration. (ie. works as expected)However when programmed using platformio the
testing address xx
lines print one by one in slow succession and does not find any of the connected devices.The text was updated successfully, but these errors were encountered: