Programmer for this Renesas IC - Page 1
Forum section: electronics / general

author: VEGETA
author_rank: Super Contributor
timestamp: May 20, 2017, 08:39:33 pm
content: Hi there,I want a programmer for this IC: r5f21257snfpI don't want to develop any projects at all, I just want to copy a software from a board and program a new chip to put it on another board.I've seen many pricey tools but since I don't want any features except burning the .hex file, then they are no match for me. If you could direct me to the software tool to do it, that would be extra good (flash programmer v3 on renesas website?)thanks!

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 20, 2017, 10:20:38 pm
content: If it's in a commercial product then it's almost certainly read protected. Do you already have a hex file?

author: VEGETA
author_rank: Super Contributor
timestamp: May 20, 2017, 10:44:34 pm
content: Quote from: Bruce Abbott on May 20, 2017, 10:20:38 pmI have already copies AVR .hex file from a commercial product successfully. I do agree with you on protection point of view but it is worth trying if the programmer is affordable.Do you know any?

author: amyk
author_rank: Super Contributor
timestamp: May 20, 2017, 11:35:33 pm
content: That's an R8C, which uses a relatively simple serial programming protocol:https://www.renesas.com/zh-tw/doc/products/mpumcu/apn/r8c/r01an0334ej0110_r8c.pdfhttp://people.redhat.com/dj/m32c/flash-guide.pdfThere is a parallel programming protocol but it's harder to find information on, although serial programming should be sufficient for your needs.

author: VEGETA
author_rank: Super Contributor
timestamp: May 21, 2017, 05:14:00 am
content: Quote from: amyk on May 20, 2017, 11:35:33 pmThat info might be interested to those who want to build diy programmers, but I only want a programmer ready to use so I can copy and burn the code.I don't know how should I use the info in your docs to my benefit.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 22, 2017, 08:16:05 pm
content: Quote from: VEGETA on May 21, 2017, 05:14:00 amYou don't need a 'programmer', just a standard TTL serial converter and a few jumpers. Wiring is described in the document:-QuoteIf the PCB is designed for in-circuit serial programming then it may already have the required connection points and jumpers. If not then you might have to cut some tracks or lift pins and solder wires onto them, or perhaps even remove the chip from the PCB and put it in an adapter.The r5f21257snfp comes in a 52 pin 0.65mm TQFP package. ZIF sockets for this size are rare and expensive. If you need to program it out of circuit and can't afford an official adapter board then you could try soldering it to a generic adapter board likethis. Only a few pins need to be soldered (the rest can be left floating) along with the 2 jumpers and TTL serial port connection.

author: VEGETA
author_rank: Super Contributor
timestamp: May 24, 2017, 02:14:54 am
content: But will it be enough to copy the firmware?You talked about hardware but what about software used? the docs mention bits that needs to be done for each move like remove or copy... For AVR I use avrdude (or one of its GUI) along with usbasp. What I need is something like this for this ic.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 24, 2017, 11:31:27 am
content: Renesas Flash Programmer V3Renesas Flash Programmer is asoftware package used to program the on-chip flash memory of Renesas microcontrollers. It provides usability and functionality optimized specifically for flash programming.Commercial Edition andFree-of-chargeEditionFeaturesEasy flash programming using a simple GUI designed specifically for developmentPC-controlled programming via the E1 emulator, E20 emulator, E2 emulator, E2 emulator Lite, aserialor USB connection

author: VEGETA
author_rank: Super Contributor
timestamp: May 24, 2017, 12:50:04 pm
content: Quote from: Bruce Abbott on May 24, 2017, 11:31:27 amGREAT!So I need the serial TTL converter, do you know a good one to buy?Do I need to make any mods or hardware\software stuff to get it done according to the docs you posted? because what is their role if hardware ttl converter and software gui is already there?Best regards,

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 25, 2017, 04:14:28 am
content: Any TTL-USB serial converter should work. I have one like this:-6PIN CP2102 STC Download Cable USB 2.0 To TTL Module Serial Converter.You shouldn't need to modify the software, but youwillneed to make the correct connections to the MCU. How hard that will be depends on whether the PCB has any provision for in-circuit programming.

author: VEGETA
author_rank: Super Contributor
timestamp: May 25, 2017, 11:17:57 am
content: good, you mean like MISO ans MOSI of the AVR? the 2 lines of data usually named TX and RX. The rest are ground, power, and reset.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 25, 2017, 09:47:02 pm
content: Quote from: VEGETA on May 25, 2017, 11:17:57 amSort of. Both are TTL logic level, but MISO and MOSI are part of a clocked synchronous serial protocol which requires a dedicated programming interface and low level driver software.The R8 uses standard 'RS232' protocol but with TTL voltage levels, similar to Arduino Pro Mini etc. Note that TX and RX means transmit and receive ateachdevice. When connecting to a TTL-USB adapter the lines must be crossed - ie. TX at one end is RX at the other. This is different from MOSI/MISO, where the designations are the same at both ends.

author: revyshht
author_rank: Newbie
timestamp: April 06, 2024, 05:34:42 am
content: Hi, were you able to copy read and copy the firmware? I have a washing machine and was thinking of doing the same, how did it go?