From 172295fb38e35e511fee7e5d487ffab74a09443b Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 28 Mar 2024 22:12:29 +0100 Subject: [PATCH] spiFlashdb: added M25P32 chip --- src/spiFlashdb.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index 409e1bc..6ffa461 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -126,6 +126,20 @@ static std::map flash_list = { .bp_len = 3, .bp_offset = {(1 << 2), (1 << 3), (1 << 4), 0}} }, + /* https://pdf1.alldatasheet.com/datasheet-pdf/download/104949/STMICROELECTRONICS/M25P32.html */ + {0x00202016, { + .manufacturer = "ST", + .model = "M25P32", + .nr_sector = 64, + .sector_erase = true, + .subsector_erase = false, + .has_extended = false, + .tb_otp = true, + .tb_offset = 0, // unused + .tb_register = STATR, + .bp_len = 3, + .bp_offset = {(1 << 2), (1 << 3), (1 << 4), 0}} + }, {0x0020ba16, { .manufacturer = "micron", .model = "N25Q32",