From 222e3f40034508343f48855cceeab666c63d9303 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 2 Sep 2020 17:10:39 +0200 Subject: [PATCH] tools/remote/comm_uart: fix offset on write bursts. --- litex/tools/remote/comm_uart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/tools/remote/comm_uart.py b/litex/tools/remote/comm_uart.py index 4747abc3f..8c2a7c2e9 100644 --- a/litex/tools/remote/comm_uart.py +++ b/litex/tools/remote/comm_uart.py @@ -79,7 +79,7 @@ class CommUART: "fixed": CMD_WRITE_BURST_FIXED, }[burst] self._write([cmd, size]) - self._write(list(((addr+offset)//4).to_bytes(4, byteorder="big"))) + self._write(list(((addr//4 + offset).to_bytes(4, byteorder="big")))) for i, value in enumerate(data[offset:offset+size]): self._write(list(value.to_bytes(4, byteorder="big"))) if self.debug: