From 8337a926fb15a39da466703b3649132c6e56577b Mon Sep 17 00:00:00 2001 From: Stephan Ruloff Date: Mon, 28 Mar 2022 17:54:43 +0200 Subject: [PATCH] Removed TOP/BOTTOM settings from SST25VF040B --- src/spiFlashdb.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index 478a364..e4b2c21 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -15,7 +15,7 @@ typedef enum { STATR = 0, /* status register */ FUNCR = 1, /* function register */ CONFR = 2, /* configuration register */ - NONER = 99, /* configuration register */ + NONER = 99, /* "none" register */ } tb_loc_t; typedef struct { @@ -132,9 +132,9 @@ static std::map flash_list = { .sector_erase = true, .subsector_erase = true, .has_extended = false, - .tb_otp = true, - .tb_offset = (1 << 1), - .tb_register = FUNCR, + .tb_otp = false, + .tb_offset = 0, + .tb_register = NONER, .bp_len = 4, .bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 5)}} },