From a488d9c1f36c8bff11b51fb5ab395484cf5be071 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 14 Oct 2024 09:31:01 +0200 Subject: [PATCH] spi_flash_decode.py: add 0x4013 --- client/pyscripts/spi_flash_decode.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/pyscripts/spi_flash_decode.py b/client/pyscripts/spi_flash_decode.py index a682ddc93..b75c69c15 100644 --- a/client/pyscripts/spi_flash_decode.py +++ b/client/pyscripts/spi_flash_decode.py @@ -43,11 +43,17 @@ spi = { }, 0x40: { 0x16: { - "part": "W25Q32BVSSIG", + "part": "W25Q32BV", "size": "32mbits", "sizeB": "4MB", }, }, + 0x13: { + "part": "W25Q40BV", + "size": "4mbits", + "sizeB": "512KB", + }, + }, 0x70: { 0x22: { "part": "W25Q02JV-IM", @@ -62,7 +68,7 @@ p = pm3.pm3() p.console("hw status") -rex = re.compile("...\s([0-9a-fA-F]{2})\s/\s([0-9a-fA-F]{4})") +rex = re.compile("...\\s([0-9a-fA-F]{2})\\s/\\s([0-9a-fA-F]{4})") for line in p.grabbed_output.split('\n'): # [#] JEDEC Mfr ID / Dev ID... 85 / 6015 if " JEDEC " not in line: