]> git.sur5r.net Git - openocd/blobdiff - src/flash/non_cfi.c
More robust handling of unknown target state for step/continue packet.
[openocd] / src / flash / non_cfi.c
index d80f37843c65c365762fe6207dfafcf8a7c5905b..74334126a761d8b56aec780504e6584ecbc2f531 100644 (file)
@@ -87,6 +87,20 @@ non_cfi_t non_cfi_flashes[] = {
                        0x00000000
                }
        },
+       {
+               .mfr = CFI_MFR_SST,
+               .id = 0x2780,
+               .pri_id = 0x02,
+               .dev_size = 0x13,                       /* 2^19 = 512KB */
+               .interface_desc = 0x2,          /* x8 or x16 device */
+               .max_buf_write_size = 0x0,
+               .num_erase_regions = 1,
+               .erase_region_info =
+               {
+                       0x0010007f,
+                       0x00000000
+               }
+       },
        {
                .mfr = CFI_MFR_ST,
                .id = 0xd6,                                     /* ST29F400BB */
@@ -236,8 +250,9 @@ void cfi_fixup_non_cfi(flash_bank_t *bank, void *param)
                cfi_info->pri_ext = pri_ext;
        } else if ((cfi_info->pri_id == 0x1) || (cfi_info->pri_id == 0x3))
        {
-               ERROR("BUG: non-CFI flashes using the Intel commandset are not yet supported");
+               LOG_ERROR("BUG: non-CFI flashes using the Intel commandset are not yet supported");
                exit(-1);
        }
 }
 
+