-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix transmute #30
Fix transmute #30
Conversation
switch to
|
Linux build: cargo +nightly -vV:
lsb_release -a:
|
Ok, did another fix in this branch. Please update. It seems you were running on an older version of nrf-modem. The no_std_net crate is no longer used in favor of the recently stabilized core::net module. |
I cloned the main branch to start, and then tested with your fix-transmuted branch - is there a different repo that’s newer?On Dec 26, 2024, at 4:37 PM, Dion Dokter ***@***.***> wrote:
Ok, did another fix in this branch. Please update.
It seems you were running on an older version of nrf-modem.
If you go through the readme, you'll see the setup you need to do.
The no_std_net crate is no longer used in favor of the recently stabilized core::net module.
And the application irq doesn't exist anymore, so no need to set that up and call it.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No, I mean your application. You were calling some old APIs that don't exist anymore in the currently released version. That's the source of your errors. |
Oh - that was your repo - nrf91-2.0.1-test …On Dec 26, 2024, at 6:02 PM, Dion Dokter ***@***.***> wrote:
No, I mean your application. You were calling some old APIs that don't exist anymore in the currently released version. That's the source of your errors.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yeah, we talked about that. It was the most up-to-date example I had. But it's not very up-to-date. Your errors are easily fixed if you go through the readme and make sure your code matches what it does |
“My” code ;) — got it … I’ll hack at it and submit a PR when I get it working!On Dec 26, 2024, at 6:23 PM, Dion Dokter ***@***.***> wrote:
Yeah, we talked about that. It was the most up-to-date example I had. But it's not very up-to-date. Your errors are easily fixed if you go through the readme and make sure your code matches what it does
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The nrf-modem crate itself can be compiled with stable just fine |
okay,
I’m down to the following error - and not sure why or how to resolve it. I’m going to fork the nrf91-2.0.1-test code so you can see the main.rs
```
error: item does not constrain `Fut::{opaque#0}`, but has it in its signature
--> src/main.rs:20:1
|
20 | #[embassy_executor::main]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ in this procedural macro expansion
|
::: /home/robert/.cargo/git/checkouts/embassy-c08a80187403f815/4b30394/embassy-macros/src/lib.rs:41:1
|
41 | pub fn task(args: TokenStream, item: TokenStream) -> TokenStream {
| ---------------------------------------------------------------- in this expansion of `#[::embassy_executor::task]`
|
= note: consider moving the opaque type's declaration and defining uses into a separate module
note: this opaque type is in the signature
--> src/main.rs:20:1
|
20 | #[embassy_executor::main]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: could not compile `nrf9160-rust-starter` (bin "nrf9160-rust-starter") due to 1 previous error
```
… On Dec 26, 2024, at 7:13 PM, Dion Dokter ***@***.***> wrote:
The nrf-modem crate itself can be compiled with stable just fine
—
Reply to this email directly, view it on GitHub <#30 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6D74F6AQ3KTTG34S4L2HSLUNAVCNFSM6AAAAABUHLGSFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTGE4DKNZSGY>.
You are receiving this because you were mentioned.
|
Ok, I updated the nrf91-2.0.1-test repo to the newest nrf-modem version on master |
Excellent - thank you very much. I think you need to remove the explicit panic function or it won’t compile - did that and ran it - worked as expected on the nRF9151-DK.
In the mean time, I was modifying your code to run in secure mode, and get everything compiled and flashed but get an assertion error on the nrf9120_pac for RAM > 32k
the repo is https://github.com/rabarar/nrf91-2.0.1-test
I believe I’ve followed the process your required - but perhaps I’ve misread or misunderstood something.
Also, I WANT TO THANK YOU for your kind feedback and assistance. Was a bit surprised by the response from the “gentleman” on matrix - not everyone’s willing to be helpful…
Best,
Rob
… On Dec 27, 2024, at 9:17 AM, Dion Dokter ***@***.***> wrote:
Ok, I updated the nrf91-2.0.1-test repo to the newest nrf-modem version on master
—
Reply to this email directly, view it on GitHub <#30 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6H2R4234SIAZ4IICHL2HVOPTAVCNFSM6AAAAABUHLGSFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTG42DINBUGY>.
You are receiving this because you were mentioned.
|
Not sure about that. There might a difference between the 60/61/51.
No problem, but I do want to stick up for Dario. He's done an incredible amount of work for the community and is generally very helpful. Beyond reasonable even. Not just for embassy, but for the greater embedded Rust ecosystem too. I'm gonna be blunt and say your question was kinda bad. When you're asking for someone else's time, you should spend time on your question yourself too. Examples of things you could've done:
If you take these tips to heart, I'm sure you'll be more successful in getting your questions answered. |
Released 0.6.1 with these changes |
points taken - nonetheless, I respectfully disagree. I've certainly not asked anyone to "do my work" as evidenced by the repo I've forked/modified/etc... having been in the community for over 40 years - I've come to understand some people are more thoughtful/helpful than others. No one owes anyone anything - but assistance especially at the inception of a new ecosystems goes a long way to creating a community of inclusion... just sayin' and btw - it wasn't my code - it was the code in the example that was in the repo! lol |
Fixes #29
@rabarar could you try this out to see if it compiles for you now?