From 02e93ffec641df05d1d32308b1d8d64c13cedc95 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 26 Feb 2022 17:02:38 +0100 Subject: [PATCH] spiFlashdb: fix bp_offset list --- src/spiFlashdb.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index 4a81779..1dc9f53 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -12,9 +12,10 @@ #include typedef enum { - STATR = 0, /* status register */ - FUNCR = 1, /* function register */ - CONFR = 2 /* configuration register */ + STATR = 0, /* status register */ + FUNCR = 1, /* function register */ + CONFR = 2, /* configuration register */ + NONER = 99, /* configuration register */ } tb_loc_t; typedef struct { @@ -131,11 +132,11 @@ static std::map flash_list = { .sector_erase = true, .subsector_erase = false, .has_extended = false, - .tb_otp = true, + .tb_otp = false, .tb_offset = 0, - .tb_register = 0, + .tb_register = NONER, .bp_len = 0, - .bp_offset = {}} + .bp_offset = {0, 0, 0, 0}} }, {0x9d6016, { .manufacturer = "ISSI",