-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I am not able to use rl78flash for programming a device with a 104jg microcontroller.
2.b:~> rl78flash -ivvvvd -m3 /dev/ttyS0
Open port: /dev/ttyS0
Using communication mode 3
Turn MCU's power on and press any key...
Send 1-byte data for setting mode
send(1): 3A
recv(1): 3A
Send "Set Baud Rate" command (baud=115200bps, voltage=3.3V)
send(7): 01 03 9A 00 20 43 03
recv(7): 01 03 9A 00 20 43 03
recv(0):
FAILED
Initialization failed
Close port
It looks like the microcontroller is not responding.
That's exactly the same thing that happened here:
#6
In that case the problem was unconneced reset.
So I verified my circuit that it is electrically correct and it is.
This is how the signals look like (reset and tool0):
It's made after the rl78s-hw.png, but it has switches for selecting mode and power, an sp3232 chip and a 3v3 stabilizer. Powered from an usb cable.
I also have a second copy of this circuit made on a breadboard, without the switches. It's in mode 3. It doesn't work either.
It's also not the case of damaged microcontroller or device. I have access to several boards with a 104jg. None of them can be programmed with rl78flash but they all can be programmed with an E1 using the same cable.
So is the software doing something wrong? Like resetting incorrectly? timing? whatever?
Or maybe I'm using it wrong somehow?
Thanks in advance,
B