-
Notifications
You must be signed in to change notification settings - Fork 28
ESP32-C3 support #53
Comments
I'm also curious about this. I have access to the evaluation hardware and have done a HAL before, but am completely unfamiliar with the ESP32 register definitions. Are they mostly compatible, or does it make more sense to write a completely separate HAL for the RISC-V version? I found there is already a PAC: https://github.com/imheresamir/esp32c3 so in an ideal world where the registers are completely backwards compatible, it would probably be minimal work to port it? |
Hard to say at the moment, as I do not have access to a C3 dev kit, nor can I find a reference manual for the C3. I am guessing it's not been released yet. |
Looking at the PAC documentation for esp32 and esp32c3 it seems they are far from compatible. The leaflet that came with the dev hardware confirms that documentation has not yet been released, and instructs to use the master branch of esp-idf together with the documentation of es32-s2 for setup. It seems the PAC was generated from the headers in https://github.com/espressif/esp-idf/tree/master/components/esp32c3 but I'm not sure how much info is there to do the HAL. |
This comparison is quite misleading, as the esp32 crate has had a number of patches applied to clean up the output. Looking a bit further and taking GPIO as an example, the Of course I cannot verify this until I have hardware/ official docs from Espressif. |
Oh interesting! Let's ping @imheresamir to get their input. Maybe the same patches can be applied to esp32c3? FYI https://twitter.com/EspressifSystem was offering free developer hardware, so I'm sure they'd be happy to send you one. |
Hi, I haven't looked at those patches but it would be great if they were adaptable for the C3. I only got to the first step of getting an initial SVD so far. I'd be happy to help out with the cleanup work on this pac, will try to find some time over the next few days. |
Hi there! Are there any good news about ESP32-C3 hal crate progress? Thanks. |
Hi, I have just seen @MabezDev blog post about hello world on a C3 chip and just received a devkit. I'm going to run https://github.com/MabezDev/esp32c3-experiments with intention of creating a branch of Any hints? |
Awesome! We now have an PAC for the esp32c3: https://github.com/esp-rs/esp32c3 btw :) As for hints, unlike stm,nrf etc most registers have different names across chips (i.e something on the esp32, will be called something different on esp32c3) so they may need to be a glue layer that abstracts over these small differences. I'm keen to see where you get to! :) |
@mchodzikiewicz there has been a little bit of discussion on this topic, this comment should hopefully summarize what we've been thinking: |
yep, I am going to use it :) @jessebraham thanks, I have posted my view on it. Playing around I have found a small issue already - I wanted to add |
Hello there!
Have you heard about
ESP32-C3
which isRISC-V
based?I guess it removes major obstacle for ESP32 Rust adoption which is lack of upstream LLVM support for
xtensa-lx
. Do you plan any work on support for this chip anytime soon?Assuming that peripherals are more or less the same I guess it would be fairly easy to make esp32-hal and esp32-wifi support the new chip.
Do you expect any major obstacles to run it on the new chip? (wifi stack binary blob bindings, proper linker magic to jump from the bootloader and so on)
The text was updated successfully, but these errors were encountered: