From 2285a9083adf587507aa12802ce0ff763628ce9e Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 7 Apr 2022 17:25:54 -0700 Subject: Make download test data const. (#378) That way it can go into flash. --- debug/gdbserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug') diff --git a/debug/gdbserver.py b/debug/gdbserver.py index c6b7641..96ba326 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1470,8 +1470,8 @@ class DownloadTest(GdbTest): self.download_c.write(b"#include \n") self.download_c.write( b"unsigned int crc32a(uint8_t *message, unsigned int size);\n") - self.download_c.write(b"uint32_t length = %d;\n" % length) - self.download_c.write(b"uint8_t d[%d] = {\n" % length) + self.download_c.write(b"const uint32_t length = %d;\n" % length) + self.download_c.write(b"const uint8_t d[%d] = {\n" % length) self.crc = 0 assert length % 16 == 0 for i in range(length // 16): -- cgit v1.1