[stm32] H7 ethernet and example - #1366
Conversation
d9ac13d to
54e78d0
Compare
e500528 to
f16cbf9
Compare
salkinium
left a comment
There was a problem hiding this comment.
I'm a bit unhappy that we're going to FreeRTOS instead of integrating lwip in fibers, because I don't really want to maintain two HALs for cooperative and preemtive scheduling, that just seems like the worst of both worlds.
But for now, yeah ok, fine.
There was a problem hiding this comment.
Something is broken with this file, maybe you're using an old local modm-devices?
|
Will fix the modm-devices issue that is indeed a relic from my (failed) attempt to implement support for the cursed N6. Also fine with me if this doesn't get merged if there is a plan to support lwip soon? I don't like the FreeRTOS. |
|
Oh yeah, I looked at the N6 and just said nope. I'm currently working on a board that also has a LAN8742A chip but connected to a STM32H5, so there's at least a use case for me to integrate lwip. But it's not going to be soon, maybe by the end of the year. I would merge this as is as it solves a problem, and with lbuild it's not in the way of anything else. |
ce20327 to
20fe7a9
Compare
|
Split example and driver, rebased current develop |
|
Just came across the thread and figured I'd note... I have a lwip wrapper implementation of Ethernet for the H7 that I've been using locally. Doesn't have a dependency on FreeRTOS. Invokes the standard lwip periodic callbacks in a fiber. I pulled in lwip as a submodule. I have only been using UDP and TCP, no higher network layers. UDP can saturate the 100Mbit link full duplex although I've been recently working on reducing copy overhead. Tested only on H753+LAN8742A, haven't implemented any other PHYs. I've kept it private rather than opening a PR because there's some AI-generated code that I don't want to burden maintainers with until I properly review it myself. But I would be happy to spend some time reviewing/cleaning it up and post a PR if folks are interested. |
|
Yes please! You seem to not be the only one, @rleh has created a partial repo of lwip already here: https://github.com/modm-ext/lwip-partial |
20fe7a9 to
102f550
Compare
Ethernet support with FreeRTOS for H7 devices.
Tested in hardware on NUCLEO-H723ZG.