2024-06-26 01:18 AM
Hi,
I want to send and receive data using Ethernet.
I tried this Linux version code, but it didn't works. https://gist.github.com/austinmarton/1922600
After I failed to try, I found this header code, STMMAC.
Should I make a program based on this code??
I've searched a lot, but I couldn't find any related cases.
I'm not good enough to make the whole program code.
If you have any relevant content or examples, please let me know....
2024-06-28 05:19 AM
Hi @inkong ,
Not sure to get your question
Ethernet can be manage by OpenSTLinux
refer to How to configure ethernet interface - stm32mpu
Olivier
2024-07-16 07:38 AM
If you want to generate data over the ethernet port (just to validate or something) you could use for instance command line from linux (e.g. wget)
https://linux.die.net/man/1/wget
To download an image in an endless while loop for instance:
while [ 1 ]; do wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.42.tar.gz; done;
(it will do forever (untill stopped) a download of the kenrnel archive in tar.gz format, which is ~200 MB of size. )