I have tested both erase and write functionality on this chip and it is working properly. verified md5sum of the image I flashed as well as a read back afterwards.
0✓ xenoxaos racktop [ ~ ] $ sudo flashrom --programmer ch341a_spi -E flashrom v1.2-148-g976d0fc0 on Linux 5.9.1-arch1-1 (x86_64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found Atmel flash chip "AT25SF321" (4096 kB, SPI) on ch341a_spi. === This flash part has status UNTESTED for operations: ERASE WRITE The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. Thanks for your help! Erasing and writing flash chip... Erase/write done. 0 ✓ xenoxaos racktop [ ~ ] $ sudo flashrom --programmer ch341a_spi -r shouldbeblank.bin flashrom v1.2-148-g976d0fc0 on Linux 5.9.1-arch1-1 (x86_64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found Atmel flash chip "AT25SF321" (4096 kB, SPI) on ch341a_spi. === This flash part has status UNTESTED for operations: ERASE WRITE The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. Thanks for your help! Reading flash... done. 0 ✓ xenoxaos racktop [ ~ ] $ less shouldbeblank.bin 1 ✓ xenoxaos racktop [ ~ ] $ sudo flashrom --programmer ch341a_spi -w ./orbit_esp32.firmware.bin flashrom v1.2-148-g976d0fc0 on Linux 5.9.1-arch1-1 (x86_64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found Atmel flash chip "AT25SF321" (4096 kB, SPI) on ch341a_spi. === This flash part has status UNTESTED for operations: ERASE WRITE The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. Thanks for your help! Reading old flash chip contents... done. Erasing and writing flash chip... Erase/write done. Verifying flash... VERIFIED. 0 ✓ xenoxaos racktop [ ~ ] $ sudo flashrom --programmer ch341a_spi -r checkingafterwrite.bin flashrom v1.2-148-g976d0fc0 on Linux 5.9.1-arch1-1 (x86_64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found Atmel flash chip "AT25SF321" (4096 kB, SPI) on ch341a_spi. === This flash part has status UNTESTED for operations: ERASE WRITE The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. Thanks for your help! Reading flash... done. 0 ✓ xenoxaos racktop [ ~ ] $ md5sum checkingafterwrite.bin ./orbit_esp32.firmware.bin 7291decdb2d25c2bea7dea5eb87df460 checkingafterwrite.bin 7291decdb2d25c2bea7dea5eb87df460 ./orbit_esp32.firmware.bin 0 ✓ xenoxaos racktop [ ~ ] _______________________________________________ flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-le...@flashrom.org