From 60c6077c32eb4cf0973735fa8d2ff720b0df170f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 22 Sep 2021 16:52:08 +0200 Subject: [PATCH] remote/comm_udp: Add padding bytes to Etherbone probe. Now required with LiteEth dropping exceeding payload. --- litex/tools/remote/comm_udp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/tools/remote/comm_udp.py b/litex/tools/remote/comm_udp.py index 2e30ba1fa..6e1dae0a8 100644 --- a/litex/tools/remote/comm_udp.py +++ b/litex/tools/remote/comm_udp.py @@ -42,6 +42,7 @@ class CommUDP(CSRBuilder): packet = EtherbonePacket() packet.pf = 1 packet.encode() + packet.bytes += bytes([0x00, 0x00, 0x00, 0x00]) # Add Padding as payload. self.socket.sendto(packet.bytes, (ip, port)) # ...and get/check server's response.