-
Notifications
You must be signed in to change notification settings - Fork 96
chore: update embassy's executor rev sync to 0.2 #163
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
Conversation
Signed-off-by: Lachezar Lechev <[email protected]>
|
Yes, I think it should also be done in esp-hal This unfortunately breaks the build |
|
@bjoernQ yes, a given feature should be enabled depending on the platform |
|
I see - probably it's easiest to set the feature in the |
|
Okay great. I will make sure to update the pull request. |
Signed-off-by: Lachezar Lechev <[email protected]>
|
I'd also like to update the revision of |
I guess there shouldn't (hopefully) be a problem since embassy-net is now using smoltcp from crates.io - would be good to have it updated since there is now also DHCP support in embassy-net |
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
|
seems that there's an issue when building
Also, I've messed up the name of the feature for riscv, so I've pushed a fix for that too. |
|
The fix for atomics is another apparently, I've added the configuration to riscv examples: embassy-rs/embassy#1381 (comment) I've also enabled the Should be ready for review 👍 |
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
|
The RISCV-IMC targets still run into some problems with atomics when linking |
|
Since I'm not very competent with those targets can you elaborate what can be causing this issue? Edit: I double checked the |
Signed-off-by: Lachezar Lechev <[email protected]>
Good catch! Thanks Seems like we need to also modify the options for S2 😢 Sorry for the inconvenience! |
|
No worries @bjoernQ. Here's the hal crate's config.toml I've taken the atomic operations enabling from: |
|
Oh, you already added that line, I somehow missed that. So, I tried it locally and it builds fine with the Xtensa-Rustc 1.68 but with 1.69 I get the same errors we see in CI I cannot make sense of this yet - will try to look into that. If I don't find a clue, probably my colleague (who in on vacation this week) will definitely know what to do |
|
And also ... this isn't related to your PR but is a 1.68 vs 1.69 thing 😲 |
|
Okay ... seems I got it to compile with the following in [target.xtensa-esp32s2-none-elf]
runner = "espflash flash --monitor"
rustflags = [
"-C", "link-arg=-Tlinkall.x",
"-C", "link-arg=-Trom_functions.x",
# enable the atomic codegen option for Xtensa
"-C", "target-feature=+s32c1i",
# Tell the `core` library that we have atomics, even though it's not
# specified in the target definition
"--cfg", 'target_has_atomic',
"--cfg", 'target_has_atomic="8"',
"--cfg", 'target_has_atomic="16"',
"--cfg", 'target_has_atomic="32"',
"--cfg", 'target_has_atomic="ptr"',
]
[build]
target = "xtensa-esp32s2-none-elf"
[unstable]
build-std = [ "core" ]Basically just added |
Signed-off-by: Lachezar Lechev <[email protected]>
|
Fixed. I might have missed a few lines* when copy-pasting I suppose |
|
Nice! Everything seems to work fine (besides some problems with optimization levels introduced by Xtensa-Rust 1.69) There is one little annoyance introduced: Seems like in that commit Not the end of the world however |
|
Is there a reason to not use the commit of the executor that is used in esp-rs/esp-hal#488 ? |
|
Yes, it's best to keep them aligned as I've experienced issues with wifi Device impl when there are 2 different version of the a given trait. Let me update the revision. |
|
Oh sorry, I only meant to set the embassy revision to |
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
|
I've patched the esp hal versions with the ones from the repo. |
|
Probably better to go for the later version of embassy. I hope the next release of the HAL will be in not-too-distant future. |
|
I can also take over this ... just let me know |
|
Closed in favor of #166 |
Closes #162
I'm not 100% how to test this change and probably the same should be done for
esp-halcrate as well.