Open aykevl opened 5 months ago
Update: I got a bit further.
Connected to /dev/ttyACM0. Press Ctrl-C to exit.
entry 0x4038a5b8
initializing radio...
espradio pp: pp rom version: (null)
espradio net80211: net80211 rom version: (null)
I (1002) wifi:wifi driver task: 3fc8b2d4, prio:253, stack:6656, core=0
W (1012) wifi:pp q full: 6-3fc8baf4
W (1012) wifi:ioctl: failed to post WiFi task 38
W (1022) wifi:pp q full: 15-0
espradio TODO: delete task 0x3fc8b2d4
could not enable radio: espradio: unknown wifi error
So apparently a send on a queue timed out (pp q full
and failed to post WiFi task 38
).
I think the next step is implementing the various interrupt handlers and setting up the system timer (it probably times out because it expects one of those interrupts to trigger). This requires a change in gen-device-svd because it doesn't list some required interrupts in the generated Go file (while they exist in the SVD file).
EDIT: actually the interrupts aren't present in the SVD file, they need an update: https://github.com/cmsis-svd/cmsis-svd-data/pull/3
@aykevl the SVD file was updated, so this PR should be unblocked. :smile_cat:
This is a work in progress. It does not yet work. It supersedes #320.
It is based on the work done by Rust people: https://github.com/esp-rs/esp-wifi/tree/main/esp-wifi-sys
To compile, use:
Right now it doesn't quite work yet: