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: