-
Notifications
You must be signed in to change notification settings - Fork 34
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
Could not find xtensa_lx6 with no_std #39
Comments
It looks like this line is not correct: Line 154 in 283dcad
It should be let m: Option<&'static mut _> = $crate::xtensa_lx::singleton!( because that's what the re-export is called here: Line 137 in 283dcad
I don't have xtensa hardware on hand so I can't test this. Could you verify if this is indeed the problem and, if it works, send a PR? |
Well the correction you suggested compiles however the controller resets as soon as I try to use the bus with a wdt error. I'm not sure what the issue is as these calls worked while the app was std. Do you think the issue may still be with the shared_bus library or should I just submit the pr and continue debugging in another direction? |
I think it must be an unrelated issue. I'm not familiar with the platform so I don't have any ideas here, unfortunately. Do you also get a watchdog reset when e.g. busy-spinning without doing anything? Do you have a way to catch CPU faults (the equivalent to a |
Without using shared_bus there isn't any crash, something with how the bus is exposed after the new_xtensa! macro is causing a crash. Do I need to change my code at all other than replacing the macro? I can't debug extensively as I'm not currently set up for that. |
@Gazedo Are you using it with in If you're doing the latter (which seems so because of the wdt), I guess there is a a bad interaction between the However if you're using |
Anyway, if my guesses are correct, I would open a PR to complete the documentation of the xtensa implementation and direct users to use the |
You are correct in that I am trying to use esp_idf_hal and esp_idf_sys with a no_std app. I basically have the app working in std so I wanted to try to convert over with minimal changes but I guess that wont work. My app requires espnow which isn't working under a full no_std app as far as I can find. I'll continue investigating for ways to make this work, I'm still newish to Rust so thanks for the help figuring out whats going on! I'll submit that pr with the one line change. I tried updating xtensa_lx to 0.7 but that requires adding a feature flag for which esp32 you're targeting, I don't know yet how to best to do that so I'm going to leave xtensa_lx at 0.6.0 for the pr. |
Sorry for having to ask: With commit b78409b, the original issue here should be fixed, right? Or is there anything else remaining? |
It should resolve the compilation bug on this crate. However, I am not sure it could be put into use as esp32 crates depends on I'm willing to submit a PR with an upgrade to |
I guess it is not a problem to upgrade to I'm not sure I'm following your comment about board-specific features. Isn't it enough to support the correct version of the underlying architecture HAL crate? For Cortex-M based boards, we also only need the |
I'm running into the following issue:
Am I missing an import or something? I've tried the following:
with one of the following:
Thats the line that worked back when the app was std with the new_std! macro and I don't think I'm calling it incorrectly, this is the code I'm using:
The text was updated successfully, but these errors were encountered: