-
Notifications
You must be signed in to change notification settings - Fork 214
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
Added esp32c6 support #917
base: master
Are you sure you want to change the base?
Conversation
3bd529e
to
9565400
Compare
I would love to hear some recommendations or ideas on how to properly deduplicate the code with regards to the existing unstable support for the ESPC3. I am leaving LP core support out of this MR for a separate MR later on. |
Really neat, seems that went quite smoothly :) I'm not too familiar with the differences C3 and C6, are they close enough that sharing examples is expected to work throughout? Looks like how you've done it in xtask is quite clean as is 👍 Could you please re-sync C6 support with C3 (latest master branch)? Then it should be possible to also run examples on C6 in QEMU :) |
@AfoHT While the ESP32C3 and ESP32C6 are very similar, they differ in RISCV instruction set with atomics, peripheral layout, and chip ID. Still to give it a go I replicated the CI QEMU setup and ran the example image on the ESP32C3 ROM but it fails when checking the image chip ID, as expected.
|
Looks good, thanks for adding this. Would it be possible to add example that shows how to connect to a WiFi network? |
I am very excited to see RTIC esp32c6 support in progress! I tried running the esp32c6 example from this PR on my esp32c6 hardware. Unfortunately, the hardware task does not appear to work. I trimmed it down to a minimal broken example: Source code: Entire project including all cargo configurations: I build and run this code by using Expected behavior: Actual behavior: Further debugging:
|
Wassasin pointed out that my example was not working because I was using esp-hal 0.17. It works fine with esp-hal 0.16. However, there is a snag which currently prevents the use of esp-wifi with RTIC:
The issue would be solved by supporting esp-hal 0.17, because:
Cheers! |
@jessebraham Sure, no problem. I think it would be easier to start a new branch and take what you need from this PR. As mentioned above there are some issues with this branch. |
I'll add some new background context - @jessebraham already fulfilled some prerequisites to make it happen, but it requires adding additional settings file to |
I have started adding the additional RISC-V settings files to We are actively working on getting a new |
@@ -0,0 +1,33 @@ | |||
### ESP32-C3 RTIC template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed a C3->C6 replacement
### ESP32-C3 RTIC template | |
### ESP32-C6 RTIC template |
Quickly ported the ESP32C3 support and example to the ESP32C6 HP core.
TODO
LP core support.