Hi,
I would like to ask if there is a possibility to program a RL78 family microcontroller (R5F100) without any Renesas programmer? Using some diy programmer or another housing method?
Thanks in advance.
Marcin
You can use serial bootloader to flash rl78 microcontrollers.
Software to upload firmware can be found here -> https://github.com/msalov/rl78flashIt is in sources and it is for linux, maybe cygwin.
Hardware is rather trivial: UART, 2 diodes and wires (see schematics in hw folder).
Maxim.
Wow! that would be really nice. I have to try that.
Maybe we can do some simple open programmer with buffers and USB power/data connectivity?....
Hello,
Nice idea. Thanks.
At the moment I use off-the-shelf USB-UART board (ioMate-USB, based on CP2102) and it is verified to work with UB232R (based on FT232R) board, with added diodes of course.
Yes that's what I really intended to say. FT232RL + some 74series buffer would work.
What those diodes are intended to do? Only for data routing or powering also?
I could prepare some schematisc and PCB also.
Those diodes are used to convert push-pull outputs into open-drain. On RESET pin resistor makes high level (normal state), and open-drain DTR or RTS makes reset state. In single-wire mode TOOL pin is bidirectional and have a pullup. So TXD pulls pin low only when required (during transmit) and does not obstruct line during receive.
Note for Windows users:
Since rl78flash is a linux tools that heavily relies on POSIX syscalls (ioctl, etc.) it cann't be directly used under Windows OS.
But it can be used through Cygwin library. Precompiled binary for windows is available in downloads section: https://github.com/msalov/rl78flash/downloads
Cygwin library is included. If you have cygwin already installed and it is accessable with PATH, you don't need cygwin1.dll from archive.
Example (read information about device, use single-wire connection through COM10, reset is generated by DTR pin):
rl78flash.exe -m1 -vvi /dev/ttyS9
Small update.
I've made board " with buffers and USB power/data connectivity" :)
Here is schematic (click to view full-size image)
Host software is the same: https://github.com/msalov/rl78flash
Support for Windows OS has been added already. Native precompiled version for Windows (no cygwin, or other POSIX emulation layer) can be downloaded here: https://sites.google.com/site/eemaxfiles/rl78flash
Maxim
@Maxim, I've got the RL78 cross compiler built, built up DJs flash util, but am having a bit of a time getting your source to compile under OSX. I keep getting errors in serial.c from what looks like issues with one of the includes but can't seem to figure out which one it's missing. I've added term.h to reference TCFLSH which seams to be giving me problems but still has issues. which environment were you building it under on GCC?
Maxim Salov:
I'd like to read-write RL78 / G13
made to the hardware by your scheme
I have to have the axis of software that can run rl78flash software in Win XP?
thank you
I use it with the FT232, no issue, made an "adaptor" to connect my board to the 14 positions cable used on Renesas kits.
The circuit is the mode 1, I don't use the DTR diode, just a 1N4148 on the TX: