-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update to latest HALs, various fixes/cleanup #39
Conversation
|
Now uses the latest published HALs. Also spent some time improving the |
I really like this feature so we don't have to manually covert from JSON to TOML for |
Okay, at least for the ESP32-C2 the issue was that I was testing on a 26MHz version instead of 40MHz (oops 😁). The stub worked successfully with the 40MHz version. I don't have a 26MHz ESP32 to test on, but I assume the story is the same there. |
To make the Also for me the xtask doesn't work when run via |
Seems like the |
I think S2 also doesn't work for me before this commit I'd say the problem is the linker script. Especially
Here we want to reserve the memory taken by text (in IRAM) in DRAM I guess the fact it works for other chips (except C6/H2) is just because we are lucky there To prove my theory we can replace
and do
tada ... there is the greeting from the stub (and I also see logs on UART1) UNFORTUNATELY that still doesn't make the stub work in espflash for me ... but at least I see some debug messages on UART1 now |
The Thanks for the info regarding the S2, can at least try to dig into this when I get some time now 😁 |
I've applied the two fixes suggested by @bjoernQ and the stub is now working! Thanks for that, this should be ready for final review now. |
@@ -45,8 +46,9 @@ cargo +esp build --release --features=esp32s3 --target=xtensa-esp32s3-none-elf | |||
In order to generate the JSON stub files for one or more devices, you can again use the `xtask` package: |
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.
In order to generate the JSON stub files for one or more devices, you can again use the `xtask` package: | |
In order to generate the JSON and TOML stub files for one or more devices, you can again use the `xtask` package: |
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.
Did another round of testing and everything seems to be working fine:
Chip | UART | USB Serial JTAG |
---|---|---|
ESP32 | ✅ | N/A |
ESP32-C2 (40MHz) | ✅ | N/A |
ESP32-C3 | ✅ | ✅ |
ESP32-C6 | ✅ | ✅ |
ESP32-H2 | ✅ | ✅ |
ESP32-S2 | ✅ | N/A |
ESP32-S3 | ✅ | ✅ |
Still needs some more thorough testing, but at least for me this resolved the UART issues with the ESP32-C6 and ESP32-S3. We will need to test the other devices and the USB Serial JTAG too, I suppose, so will leave this as a draft for now.
Closes #37 (I hope 😁)
(Sorry about the noise in the TOML files, had forgotten to disable formatting for them and was too lazy to revert the changes 😅)