From 0675cadfe7efa0c313cb8851010ac3179d868057 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sun, 5 Mar 2023 13:14:01 +0100 Subject: [PATCH] spiFlashdb: ST M25P16 --- src/spiFlashdb.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index 48eb38c..a7ecdfb 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -99,6 +99,20 @@ static std::map flash_list = { .bp_len = 4, .bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 5)}} }, + /* https://datasheet.octopart.com/M25P16-VME6G-STMicroelectronics-datasheet-7623188.pdf */ + {0x00202015, { + .manufacturer = "ST", + .model = "M25P16", + .nr_sector = 32, + .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",