Read of flash not working

Hi all,

I am trying to read the original firmware of my box, but I always get the following message from flashrom:

(.venv) pi1@Testsystem:~ $ lsusb
Bus 001 Device 063: ID 1a86:5512 QinHeng Electronics CH341 in EPP/MEM/I2C mode, EPP/I2C adapter
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(.venv) pi1@Testsystem:~ $ sudo flashrom -p ch341a_spi -r backupCC3235-1.bin -V
flashrom unknown on Linux 6.12.25+rpt-rpi-v8 (aarch64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
flashrom was built with GCC 12.2.0, little endian
Command line (5 args): flashrom -p ch341a_spi -r backupCC3235-1.bin -V
Initializing ch341a_spi programmer
Device revision is 3.0.4

cb_out: error: LIBUSB_TRANSFER_STALL
config_stream: Failed to write 3 bytes
Could not configure stream interface.
Error: Programmer initialization failed.

I followed the newbie page: Teddycloud CC3235 Newbie HowTo

Besides the green LED from the board is on and not flickering.

I am using a CH341A Programmer with clamp with a Raspberry Pi 3 and I also tried to reconnect the clamp already very often.

Does someone has a hint for me which I missed or any other solution to get it work?

thanks in advance

Hi all,

I could solve the problem by using the SPI of the RPI3 and not the CH341A Programmer.

the following 2 web addresses helped a lot to handle it direct with the PI.
link: How to flash bios chips with Raspberry Pi - #Tom's Weblog
link: GPIO 8 (SPI Chip Select 0) at Raspberry Pi GPIO Pinout

Thanks a lot.

1 Like