-
Notifications
You must be signed in to change notification settings - Fork 246
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
ESP32 support #1344
base: main
Are you sure you want to change the base?
ESP32 support #1344
Conversation
Thanks for this great idea! I hope it's o.k. to give some longer feedback?!? First ended up with some error message
But this seem to have no impact.
--> so I needed "
First "make" failed:
And: Several " After this, the error above (Make Error ...) also disappeard. The only possible device I have is ESP32 (I have some S2 or S3, but no C types), which fails due to flash memory:
I failed to figure out, where to start menuconfig, to be able to change this. Just for fun I build an C3 image, but hav no possibility to test it... |
Here are the C2 and C3 binaries I made (but couldn't test)... |
ESP Chip Id | 998692 (ESP32-C2 v1.0) |
Very good job! Out of curiosity, does it mean that we can also port to ESP8266 easily, or are ESP32 and old ESP8266 fundamentally different? btw there seems to be a compile error related to some preprocessor condition. |
oh. I do have a C3 in one of these https://www.aliexpress.com/item/1005006690897107.html for future ref |
Added S2 and S3. Fixed ESP32. |
Regarding partitions, I will just say one suggestion - if possible, it would be nice to have the same format as Tasmota, so the OTA in two ways is possible. |
Some additional Feedback: ESP32 now compiles, but start fails:
This could be easily overcome by changing flash size in Makefile:
Than ESP starts! Thanks a lot. I tried to play around with DS1820 (after some changes for critical sections didn't work [if I got it right, this will need to know, on which core the tasks run). |
After some more tests: GPIOs work like expected on S2 and S3 boards. |
Very good! Thank you so much! |
can someone please confirm BME/BMP280 operation on a C2? I'm using "startdriver bmpi2c 3 2 1 2 0" because:
but not getting any readings. same with BME680 and AHT20/BMP280 combined modules. |
df9bb1f
to
75d4493
Compare
What do the gpio changes in here mean in practicality? 4056bd7 |
From what i have seen, if gpio_reset_pin, then by default pins are pulled up. We already have hal functions to configure pins as input pup/pdown, so now when using HAL_PIN_Setup_Input, set pull mode as floating. |
Working: WiFi (AP, STA, scanning), powersave (2 modes + freq scaling), GPIO, LFS, internal temperature, PWM (LEDC), OTA, ADC, WDT, deep sleep (no pindeepsleep).
UART is problematic. Somewhy i2c is not working for all pins, sys_evt task crashes on reboot.
Manual build:
cd sdk/esp-idf
./install.sh
. ./export.sh
cd ../..
make OpenESP32
or others (OpenESP32C2, OpenESP32C3, OpenESP32C6, OpenESP32S2, OpenESP32S3)