Replies: 4 comments 5 replies
-
Using https://docs.rs/static_cell/2.0.0/static_cell/macro.make_static.html on the descriptors should help with the lifetime issue |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! |
Beta Was this translation helpful? Give feedback.
-
You should be able to configure our driver without CS like this |
Beta Was this translation helpful? Give feedback.
-
I haven't managed to get it running yet, unfortunately. Currently, I also don't have much time... However, I would like to resume the project in two or three weeks. If you make any breakthroughs, please let me know! :-) |
Beta Was this translation helpful? Give feedback.
-
I'm quite new to embedded rust and I'm not sure if what i want to do is currently even possible.
I would appreciate if you can help me either fix this or just tell me to postpone this project for x month (either is ok :-) )
Thank you in advance!
Background:
I want to build a EspNow-Ethernet-Gateway with an ESP32 and a Wiznet W5500 Ethernet module, which should replace my Arduino EnigmaIOT setup i'm currently running at home.
Problem
My naive assumption was that i can quite easily get a very basic version of this to work by combining these two examples:
https://github.com/esp-rs/esp-hal/blob/v0.16.1/examples/src/bin/embassy_spi.rs
https://github.com/embassy-rs/embassy/blob/embassy-net-wiznet-v0.1.0/examples/rp/src/bin/ethernet_w5500_tcp_client.rs
by first creating a SpiDma (lines 44-74 in embassy_spi.rs) and feeding this into
ExclusiveDevice::new
(line 65 of ethernet_w5500_tcp_client.rs).However, i'm unable to get this to compile (see code comments below)
Cargo.toml:
main.rs
Beta Was this translation helpful? Give feedback.
All reactions