Project

General

Profile

Actions

Bug #556

closed

Probing flash chip discards the "Sector erase" opcode of "ichspi" programmer

Added by Bill XIE 3 months ago. Updated 22 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Programmer
Target version:
Start date:
09/08/2024
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
W25Q128.V with "internal" programmer
Affected OS:

Description

The only difference between the flash content and the image file is an MRC cache at (20000:20fff). Writing to an N25Q128..3E with "internal" programmer correctly only get this area erased, as shown in the attached flashrom_n.log. However, as shown in the attached flashrom_w.log, writing to an W25Q128.V with "internal" programmer results a whole chip erase overhead.

flashrom_w.log shows that flashrom tries to manipulate write protection to W25Q128.V, but read from register 2 and 3 not supported by the "internal" programmer, but older version of flashrom can use smaller erase functions via "internal" programmer against W25Q128.V, and flashrom v1.4.0 can use smaller erase functions against W25Q128.V, and can manipulate write protection, via a serprog programmer(stm32-vserprog). It the incapability of "internal" programmer to manipulate write protection related to smaller erase functions being disabled? If so, is it possible to add an option to ignore the wp capability of the chip, as if wp is not implemented, provided that wp capability is known unused?


Files

flashrom_w.log (47.5 KB) flashrom_w.log writing log against W25Q128.V Bill XIE, 09/08/2024 05:05 AM
flashrom_n.log (8.12 KB) flashrom_n.log writing log against N25Q128..3E Bill XIE, 09/08/2024 05:05 AM
flashrom_ww.log (12.1 KB) flashrom_ww.log writing log against explicitly selected W25Q128.V Bill XIE, 09/08/2024 05:38 PM
Actions

Also available in: Atom PDF