Re: [flashrom] Problem while erasing chip prior write bin file.

2018-03-06 Thread Luca Bacci Bonotti
Thanks a lot. I'll try and I'll let you know.

Il 6 mar 2018 23:13, "Nico Huber"  ha scritto:

> On 06.03.2018 22:13, Luca Bacci Bonotti wrote:
> > In your opinion is better the raspberry pi or ch341a to reach my goal?
>
> I don't know. I doubt it makes much of a difference. If one fails, you
> can try the other. Though, the RPi is much faster.
>
> >
> > Should I buy a breadboard for create better connections ?
>
> Better than what?
>
> >
> > Can you draw a schematic that I can follow?
>
> Sigh, I guess I can.
>
> Programmer SPI Flash
>
>   /CS     /CS
>
>   MISO  ---50-Ohm---  MISO
>
>   GND     GND
>
>   MOSI    MOSI
>
>   CLK     CLK
>
>   VCC     VCC
> \
>  `-10kOhm--- /WP
>   \
>`-10kOhm- /HOLD
>
> This is about the minimum setup I'd use for a plain (unsoldered)
> chip. Resistor ratings may vary.
>
> Nico
>
> >
> > Il 6 mar 2018 21:55, "Nico Huber"  ha scritto:
> >
> >> Hello Luca,
> >>
> >> On 06.03.2018 07:25, Luca Bacci Bonotti wrote:
> >>> I tried with chip soldered and unsoldered. Same results.
> >>
> >> same results? probably due to very different problems. Especially when
> >> the chip is not part of a circuitry (that might already take care), you
> >> have to connect all input pins of the chip. Also, very often, a series
> >> resistor at least on the MISO output is required.
> >>
> >>> I previously tried programming with raspberry PI but it was unable to
> see
> >>> my chip.
> >>> I have both CH341A and Raspberry Pi.
> >>
> >> When you use the Raspberry Pi, make sure you set the `spispeed` parame-
> >> ter of linux_spi to something reasonable (I'd start trying around 1000,
> >> i.e. 1MHz), the default is OS dependent and often not reliable.
> >>
> >>> Where should i connect /HOLD /WP on the CH341A ?
> >>
> >> /HOLD should be pulled up towards VCC (i.e. using a series resistor,
> >> 10kOhm maybe), state of /WP usually only matters when the chip has some
> >> write-protection set up, so either pull up towards VCC or down towards
> >> GND (if in doubt, up).
> >>
> >> Nico
> >>
> >
>
>
___
flashrom mailing list
flashrom@flashrom.org
https://mail.coreboot.org/mailman/listinfo/flashrom

Re: [flashrom] Problem while erasing chip prior write bin file.

2018-03-06 Thread Nico Huber
On 06.03.2018 22:13, Luca Bacci Bonotti wrote:
> In your opinion is better the raspberry pi or ch341a to reach my goal?

I don't know. I doubt it makes much of a difference. If one fails, you
can try the other. Though, the RPi is much faster.

> 
> Should I buy a breadboard for create better connections ?

Better than what?

> 
> Can you draw a schematic that I can follow?

Sigh, I guess I can.

Programmer SPI Flash

  /CS     /CS

  MISO  ---50-Ohm---  MISO

  GND     GND

  MOSI    MOSI

  CLK     CLK

  VCC     VCC
\
 `-10kOhm--- /WP
  \
   `-10kOhm- /HOLD

This is about the minimum setup I'd use for a plain (unsoldered)
chip. Resistor ratings may vary.

Nico

> 
> Il 6 mar 2018 21:55, "Nico Huber"  ha scritto:
> 
>> Hello Luca,
>>
>> On 06.03.2018 07:25, Luca Bacci Bonotti wrote:
>>> I tried with chip soldered and unsoldered. Same results.
>>
>> same results? probably due to very different problems. Especially when
>> the chip is not part of a circuitry (that might already take care), you
>> have to connect all input pins of the chip. Also, very often, a series
>> resistor at least on the MISO output is required.
>>
>>> I previously tried programming with raspberry PI but it was unable to see
>>> my chip.
>>> I have both CH341A and Raspberry Pi.
>>
>> When you use the Raspberry Pi, make sure you set the `spispeed` parame-
>> ter of linux_spi to something reasonable (I'd start trying around 1000,
>> i.e. 1MHz), the default is OS dependent and often not reliable.
>>
>>> Where should i connect /HOLD /WP on the CH341A ?
>>
>> /HOLD should be pulled up towards VCC (i.e. using a series resistor,
>> 10kOhm maybe), state of /WP usually only matters when the chip has some
>> write-protection set up, so either pull up towards VCC or down towards
>> GND (if in doubt, up).
>>
>> Nico
>>
> 


___
flashrom mailing list
flashrom@flashrom.org
https://mail.coreboot.org/mailman/listinfo/flashrom


Re: [flashrom] Problem while erasing chip prior write bin file.

2018-03-06 Thread Luca Bacci Bonotti
In your opinion is better the raspberry pi or ch341a to reach my goal?

Should I buy a breadboard for create better connections ?

Can you draw a schematic that I can follow?

Il 6 mar 2018 21:55, "Nico Huber"  ha scritto:

> Hello Luca,
>
> On 06.03.2018 07:25, Luca Bacci Bonotti wrote:
> > I tried with chip soldered and unsoldered. Same results.
>
> same results? probably due to very different problems. Especially when
> the chip is not part of a circuitry (that might already take care), you
> have to connect all input pins of the chip. Also, very often, a series
> resistor at least on the MISO output is required.
>
> > I previously tried programming with raspberry PI but it was unable to see
> > my chip.
> > I have both CH341A and Raspberry Pi.
>
> When you use the Raspberry Pi, make sure you set the `spispeed` parame-
> ter of linux_spi to something reasonable (I'd start trying around 1000,
> i.e. 1MHz), the default is OS dependent and often not reliable.
>
> > Where should i connect /HOLD /WP on the CH341A ?
>
> /HOLD should be pulled up towards VCC (i.e. using a series resistor,
> 10kOhm maybe), state of /WP usually only matters when the chip has some
> write-protection set up, so either pull up towards VCC or down towards
> GND (if in doubt, up).
>
> Nico
>
___
flashrom mailing list
flashrom@flashrom.org
https://mail.coreboot.org/mailman/listinfo/flashrom

Re: [flashrom] Problem while erasing chip prior write bin file.

2018-03-06 Thread Nico Huber
Hello Luca,

On 06.03.2018 07:25, Luca Bacci Bonotti wrote:
> I tried with chip soldered and unsoldered. Same results.

same results? probably due to very different problems. Especially when
the chip is not part of a circuitry (that might already take care), you
have to connect all input pins of the chip. Also, very often, a series
resistor at least on the MISO output is required.

> I previously tried programming with raspberry PI but it was unable to see
> my chip.
> I have both CH341A and Raspberry Pi.

When you use the Raspberry Pi, make sure you set the `spispeed` parame-
ter of linux_spi to something reasonable (I'd start trying around 1000,
i.e. 1MHz), the default is OS dependent and often not reliable.

> Where should i connect /HOLD /WP on the CH341A ?

/HOLD should be pulled up towards VCC (i.e. using a series resistor,
10kOhm maybe), state of /WP usually only matters when the chip has some
write-protection set up, so either pull up towards VCC or down towards
GND (if in doubt, up).

Nico

___
flashrom mailing list
flashrom@flashrom.org
https://mail.coreboot.org/mailman/listinfo/flashrom


Re: [flashrom] Problem while erasing chip prior write bin file.

2018-03-05 Thread Nico Huber
Hello Luca,

On 05.03.2018 19:33, Luca Bacci Bonotti wrote:
> Hi I need help with flashrom . I'm unable to write a firmware using CH341A
> programmer, test clip pomona 5252 .

flashing in-system (ISP) is sometimes a very delicate procedure. How
and if it will work, depends on many things: 1. is the board designed
for ISP; if, follow the manual; if not 2. how do you power the flash
chip? through the board's regular power supply (strongly advised)? or
through the ch341a (discouraged unless you know exactly what you are
doing)? 3. are all input pins of the flash chip in a defined state?
(e.g. don't forget /HOLD and /WP). See also [1] and [2].

> The EEPRom I'm trying to write is
> S25FL128SAGMFI000.

Regarding ISP, the board the chip is soldered to matters more than the
chip. What board is it?

Hope that helps,
Nico

[1] https://flashrom.org/ISP
[2] https://flashrom.org/Common_problems

___
flashrom mailing list
flashrom@flashrom.org
https://mail.coreboot.org/mailman/listinfo/flashrom