[flashrom] serprog with arduino UNO

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Fri Jul 19 19:25:13 CEST 2013


On Fri, 19 Jul 2013 12:01:52 -0300
Hugo Petrucci <hugopetrucci at hotmail.com> wrote:

> Hi,
> I followed the steps in this link http://flashrom.org/Serprog/Arduino_flasher for write the SST25LF040A flash chip
> 
> run first time and asked to specify which chip was using
> 
> run specifying the chip, the error not found the chip
> 
> 
> follows the commands executed
> 
> 
> hugo at hugo-linux ~/flashrom $ sudo ./flashrom -p serprog:dev=/dev/ttyACM0:2000000
> flashrom v0.9.6.1-r1701 on Linux 3.5.0-17-generic (i686)
> flashrom is free software, get the source code at http://www.flashrom.org
> 
> Calibrating delay loop... OK.
> serprog: Programmer name is "serprog-duino"
> Found SST flash chip "SST25LF040A" (512 kB, SPI) on serprog.
> Found SST flash chip "SST25VF040" (512 kB, SPI) on serprog.
> Multiple flash chips were detected: "SST25LF040A", "SST25VF040"
> Please specify which chip to use with the -c <chipname> option.
> 
> 
> specified the chip and verbose
> 
> hugo at hugo-linux ~/flashrom $ sudo ./flashrom -c "SST25LF040A" -V -p serprog:dev=/dev/ttyACM0:2000000
> flashrom v0.9.6.1-r1701 on Linux 3.5.0-17-generic (i686)
> flashrom is free software, get the source code at http://www.flashrom.org
> 
> flashrom was built with libpci 3.1.9, GCC 4.7.2, little endian
> Command line (5 args): ./flashrom -c SST25LF040A -V -p serprog:dev=/dev/ttyACM0:2000000
> Calibrating delay loop... OS timer resolution is 1 usecs, 1004M loops per second, 10 myus = 10 us, 100 myus = 100 us, 1000 myus = 999 us, 10000 myus = 10002 us, 4 myus = 4 us, OK.
> Initializing serprog programmer
> Baud rate is 2000000.
> serprog: connected - attempting to synchronize
> .....
> serprog: Synchronized
> serprog: Interface version ok.
> serprog: Bus support: parallel=off, LPC=off, FWH=off, SPI=on
> Warning: Automatic command availability check failed for cmd 0x08 - won't execute cmd
> Warning: Automatic command availability check failed for cmd 0x11 - won't execute cmd
> serprog: Programmer name is "serprog-duino"
> serprog: Serial buffer size is 65535
> serprog: Warning: Programmer does not support toggling its output drivers
> The following protocols are supported: SPI.
> Probing for SST SST25LF040A, 512 kB: probe_spi_res2: id1 0x0, id2 0x0
> No EEPROM/flash device found.
> Note: flashrom can never write if the flash chip isn't found automatically.
> 

From that little output it is hard to tell but I would bet on a bad
connection between the flash chip and the Arduino.
Check the output of ./flashrom -V -p serprog:dev=/dev/ttyACM0:2000000
The replies to the same commands should be the same. If they are
varying then the connection is bad. See http://flashrom.org/ISP for
some hints that might apply to your situation.

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner




More information about the flashrom mailing list