<p dir="ltr">Thank you for answering. </p>
<p dir="ltr">Regards</p>
<br><div class="gmail_quote">Il giorno ven 3 apr 2015 17:39 Stefan Tauner <<a href="mailto:stefan.tauner@alumni.tuwien.ac.at">stefan.tauner@alumni.tuwien.ac.at</a>> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 30 Mar 2015 15:56:06 +0000<br>
Riccardo Delpopolo Carciopolo <<a href="mailto:rdelpopolo@gmail.com" target="_blank">rdelpopolo@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> I've used flashrom with pickit2 in past.<br>
> I'm a newbie but I'd like to add support for this MCUs by myself.<br>
> On Internet exist some parallel programmer but I want to program a 78k0s<br>
> flash my with the uart protocol.<br>
> We're can I start from?<br>
> It requires some vpp pulses to enable the uart programming mode.<br>
<br>
I don't think that flashrom is the right tool for the job of writing<br>
the flash memory of a microcontroller. Usually there are dedicated tools<br>
for this... but I guess the 78k0s are not really popular? You can of<br>
course use flashrom or at least its serial.c as a base for your tool.<br>
<br>
The protocol seems to be documented in a public application note:<br>
<a href="http://documentation.renesas.com/doc/DocumentServer/U17739EJ3V0AN00.pdf" target="_blank">http://documentation.renesas.<u></u>com/doc/DocumentServer/<u></u>U17739EJ3V0AN00.pdf</a><br>
<br>
I am not sure about pulses thing. AFAICT the flash mode is enabled if<br>
FLMD0 is high when reset is released. I am however unsure if the<br>
following pulses on the same pin (FLMD0) are to be output by the<br>
programmer or are a way for the chip to indicate how it needs to be<br>
accessed... the language in the AN is abysmal. I would apply VCC to<br>
FLMD0 on reset release with a pull-up resistor and measure if the chip<br>
outputs anything on the port...<br>
<br>
Anyway this is rather off-topic... good luck with your project!<br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</blockquote></div>