MindSDK_MM32F5270/driver_examples/enet/enet_basic
Yilin Sun 3977144e90
Initial MM32F527x commit.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-03-27 21:54:40 +08:00
..
build Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
main.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
readme.md Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00

enet_basic

实验过程

  • 初始化 enet 实例配置MAC、DMA初始化状态。
  • 主函数中以太网共进行5次帧接收操作并将对应帧中的内容进行发送。
  • 用户通过wireshark等帧捕获工具可查看到两个内容大致相同的帧其中发送帧比接收帧多4位CRC校验数其余数值相同。

实验结果

通过wireshark查看数据接收帧数据

01 80 c2 00 00 00 e8 13 6e 59 b3 f0 00 69 42 42 03 00 00 03 02 7c 80 00 28 68 d2 f5 20 80 00 00 9c 40 80 00 e8 13 6e 59 b3 f0 80 31 02 00 14 00 02 00 0f 00 00 00 40 00 65 38 31 33 36 65 35 39 62 33 66 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ac 36 17 7f 50 28 3c d4 b8 38 21 d8 ab 26 de 62 00 00 00 00 80 00 e8 13 6e 59 b3 f0 14

发送帧数据:

01 80 c2 00 00 00 e8 13 6e 59 b3 f0 00 69 42 42 03 00 00 03 02 7c 80 00 28 68 d2 f5 20 80 00 00 9c 40 80 00 e8 13 6e 59 b3 f0 80 31 02 00 14 00 02 00 0f 00 00 00 40 00 65 38 31 33 36 65 35 39 62 33 66 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ac 36 17 7f 50 28 3c d4 b8 38 21 d8 ab 26 de 62 00 00 00 00 80 00 e8 13 6e 59 b3 f0 14 20 53 73 8c