-
Notifications
You must be signed in to change notification settings - Fork 33
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-S3 bootloader stub #72
Conversation
duncandrennan
commented
Jun 9, 2022
- Can read and write flash with this code
- Also has some improvements for the ESP32-C3, but the write to -C3 is not yet working
- Work toward Support for ESP32-S3 cesanta/mongoose-os#597
|
i've made the C3 stub work and cleaned up some stuff in the process. |
Working on this to align it with what you've done |
I don't quite follow your EFUSE system in esp32c3.go. You have
but when I look at the technical manual it has EFUSE base as 0x6001_A000, and I don't really follow the
With each efuse block being 256 bits (32 bytes, 8 32-bit words), I'm not making the connection to the 0x44 and (3 * 4) The -S3 has the PGK_VERSION in the same location within the efuse as the -C3, but the base address is different. Could you please clarify as I'd like to get this correct for the -S3. |
Ok, I get it now. soc.h has the base address (which for the -C3 differs from the technical manual), and I understand the 0x44 + (3 * 4) |
I've rebased and tested that it works to read/write flash for both the -S3 and the -C3. I did have to rebuild the 4.4.1-r2 docker image to make it work (the one on docker hub doesn't have the -S3 files in it) |
re: efuse address - tbh, i drew my inspiration from esptool.py directly, and masterfully borrowed the formula it is using :) ok, this looks good. we should probably dedup uart.c as it's a copy-paste job across 3 platforms, but this can be done later. |
i built and pushed 4.4.1-r2. i'm not updating sdk.version yet, will do along with basic C3 support |