Skip to content
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 C3 RX support #2610

Merged
merged 6 commits into from May 19, 2024
Merged

Conversation

pkendall64
Copy link
Collaborator

@pkendall64 pkendall64 commented Mar 25, 2024

Since the ESP8285 is aging and only has 2 more years of support from Espressif, the C3 is a good replacement.
The C3 has a few more GPIOs, does not do stupid things with to the IO pins during boot and has more flash/RAM etc.

The C3 also allows updates via USB (GPIO18/19) so if these pins are not used for anything then the firmware can be updated via direct USB connection. If the pins are used then the BOOT pin (GPIO 9) needs to be held low on power up. The C3 can also be updated via UART on GPIOs 20/21 as per other ESP32/ESP8285 chips, also by pulling GPIO9 low on power up.

The following is my janky setup for initial testing.
IMG_0667

And connected to my PWM testing bench.
IMG_0668

@pkendall64 pkendall64 marked this pull request as ready for review March 25, 2024 02:33
@pkendall64
Copy link
Collaborator Author

For those playing along at home, this is the C3 dev board in the pictures https://www.aliexpress.com/item/1005005791323624.html

@Linjieqiang
Copy link

Can it be used as the main control chip of the RC internal TX? Replaces the original ESP32.

@pkendall64
Copy link
Collaborator Author

Can it be used as the main control chip of the RC internal TX? Replaces the original ESP32.

Technically, yes. But the dev team will NOT be doing that. The reason is that there are not enough GPIO pins to support all the features required for a TX module that would pass the approval process.

@pkendall64 pkendall64 added the enhancement 🪄 New feature or request label Mar 31, 2024
@L1cardo
Copy link

L1cardo commented Apr 25, 2024

Wow! I have been waiting for this for a long time!
Finally here.
Thank you @pkendall64 !

@pkendall64
Copy link
Collaborator Author

I'll merge this after the 3.x.x merge to master. There may be conflicts.

@pkendall64 pkendall64 merged commit 28f724c into ExpressLRS:master May 19, 2024
46 checks passed
@pkendall64 pkendall64 deleted the esp32-c3-support branch May 19, 2024 05:05
mha1 pushed a commit to mha1/ExpressLRS that referenced this pull request May 21, 2024
* Initial C3 support

* Fix device framework for C3 (only 1 core on this fella)

* Separate target list for C3 based devices

* Serial logging and other fixes

* Defines for UART pins to make life easier

* add c3 lr1121

---------

Co-authored-by: Jye <14170229+JyeSmith@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🪄 New feature or request V3.5 🍩
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants