Author Topic: Using flashrom with Digispark...  (Read 3203 times)

greekhero

  • Newbie
  • *
  • Posts: 4
Using flashrom with Digispark...
« on: January 22, 2014, 10:52:06 pm »
Hello, I would like to use digispark with flashrom to read/write flash supported by flashrom. Is it possible to use digispark + littlewire, connect the digispark to a computer, wire the digispark pin properly with the flash, then use the flashrom to read/write the entire content of flash?

I am a newbee so please pardon my ignorance.

Thanks,
Jay

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Using flashrom with Digispark...
« Reply #1 on: January 22, 2014, 10:58:37 pm »
Yes but you'd need to write the I2C or SPI code to talk to the flashrom

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Using flashrom with Digispark...
« Reply #2 on: January 23, 2014, 01:28:29 am »
You should adapt this to the tiny-libraries:

http://flashrom.org/Serprog/Arduino_flasher

The difference is, that the attiny has no CORE SPI but only USI (Universal Serial Interface), which can emulate SPI/I2C but only with additional software.

When I was researching that, I went that way: http://digistump.com/board/index.php/topic,1127.0.html
So I could read/write SPI flash chips just out of the box.



greekhero

  • Newbie
  • *
  • Posts: 4
Re: Using flashrom with Digispark...
« Reply #3 on: January 27, 2014, 02:01:52 pm »
Thank you very much for your reply. I noticed that the  UM232H-B-WE you mentioned has a VCC 5V whereas the chip I am using has VCC 3.3V.  Would I need to use a resistor to bring the voltage down or 5V would be fine? I am hoping to read/write MX25L3205D http://www.macronix.com/Lists/DataSheet/Attachments/1534/MX25L6405D,%203V,%2064Mb,%20v1.5.pdf

cheers,

Jay

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Using flashrom with Digispark...
« Reply #4 on: January 27, 2014, 11:52:28 pm »
I answered in the other thread, where I believe, that answer belongs to: http://digistump.com/board/index.php/topic,1127.msg5865.html#msg5865