-
Notifications
You must be signed in to change notification settings - Fork 39
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
Enabling MTU work-around for ESP32-S3 #282
Conversation
Why not forego all the complexities and just settle on 255? What do, say, ESP32-C3 users lose, when we default MTU to 255 for them? |
With a quick check on the latest main, 255 working for both C3 and C6 on stable and S3 on esp nightly, though we need to re-add the following to .cargo/config.toml for the S3 to work. [unstable]
build-std = ["alloc", "core"] |
We could. It's a matter of how closely the code needs to follow what we know. The core of it is, however, to "just" be a temporary work-around, until esp-rs/esp-hal#2984 makes it to the I'm behind playing this "safe" (not writing any assumptions into code; rather waiting for bug reports like we did here), but "safe" for the codebase may be "annoying" for a newcomer, who's not coming in with the mindset of testing TrouBLE on the particular MCU type. I'd like the main TrouBLE maintainers (@lulf @jamessizeland ) to chime in, which way you'd like to see the PR. I'll follow. Then, I suggest we
I am still wishing for input on:
Hmm... is it written down, when one would need nightly? I'm only running TrouBLE on stable, because I can (targeting -C3 and -C6 only). If S3 needs nightly (does it?) and the above (does it?), would you write a comment, placed above |
Nightly is needed for Xtensa chips because it needs the special esp channel until llvm upstreams support for Rust Xtensa support. Hopefully that's not forever but it's not too much of a hardship as it is with It's on my to do list to add a readme in examples/esp/ |
I should have known that. In January, I seem to have suggested removing those lines (which passed). Will bring them back. Tangential to this PR though (S3 being the common factor). -- |
For my opinion, I like that you have detailed the acceptable MTU ranges (possibly worth putting a date/esp-wifi version on that comment as the underlying esp-wifi bits might change the acceptable ranges in future, we can't control that). Thanks for investigating!! The comment is in the right place now with the MTU, in my opinion. I'd keep it as /// to make it clear it's a comment associated with that specific variable. I'm inclined to say let's unify to 255 if they all work with that. I feel like that wasn't the case before? |
Bringing back a 'Cargo.toml' section accidentially removed and needed by Xtensa
3b14f2f
to
43e32b2
Compare
I squashed the commits, but would still edit the comment to be:
|
/test |
Tests pass. @lulf Should I edit the comment? You've been aside from this so would like to hear your feeling about it. It is meant to be temporary - we just don't know how temporary that'll be.. Also worth noting: what's here is just an example for people. It won't help them crash their apps if they use erroneous values themselves. I don't think we should baby-sit that much either, especially when the issue is not fully understood / might be affected by library versions. |
@jamessizeland wrote:
I condered this - thanks for suggesting. The problem is that we don't have access to all the hardware, to test. Therefore, any claim in the comment would have different dates/versions for each of the MCU types. That feels overkill. I'd go with |
I think this is fine to merge, thanks! |
Doing two things:
Three questions (before merge!!):
if_cfg::if_cfg!
as a dependency, just forexamples/esp32
? Would make the work-around condition DRY (now repeated).///
(doc comments) to normal//
ok? Wanted to leave the details out from docs.