Bootloader Programmer

Hi,

I burned my RA4 uC and replaced it.

Now I try to find SW for the ESP32 to program the RA4.

The RA4 does not have a bootloader yet and I do not have a E2 lite programmer yet.

I think all the necessary HW connections are available to program the RA4.
With the right ESP32 SW could the ESP32 program the RA4 - right?

Does anyone know a project for the ESP32 to program the RA4?

THANKS A LOT FOR YOUR HELP.

https://github.com/arduino/ArduinoCore-renesas/tree/main/bootloaders/UNO_R4#rocket-how-to-load-bootloader-uno-r4-wifi

Hi Juraj,

thanks a lot for your fast response and helpful link.

I try.

!!!!!!!

ewo@DELLOptiPlex:~/linux-x64$ ./rfp-cli -device ra -dtr -port /dev/ttyACM0 -p dfu_wifi.hex
Renesas Flash Programmer CLI V1.09
Module Version: V3.15.00.000
Load: "/home/ewo/linux-x64/dfu_wifi.hex" (Size=35095, CRC=E01B5903)

Connecting the tool (COM port)
Tool: /dev/ttyACM0
Interface: 2 wire UART

Connecting the target device

[Error] E3000105: The device is not responding.
The target device is not connected or has not returned a response. Confirm that the connection to the target device and the operating mode are correct. The security functions of the target device may have prevented the connection.
Refer to Renesas Flash Programmer Error Guide | Renesas, Problems during Operation.

Disconnecting the tool

!!!!!!

I see Start-ACK on UART (sent by rfp-cli ) but the RA4 does not answer.

Reset Signal and MD Signal was not activated automatically.

I set the signals in a second try manually but unfortunately without success.

Looks like, no bootlader is up/active on RA4. RA4 sent no answer.

Does anyone know a project for the ESP32 to program the RA4 with the SWD interface, Reset, P108 SWDIO and P300 SWCLK?

did you run stty -F $portname 2400?

1 Like

Hi Juraj,

Yes, I tried 1200 and 2400 baud.

Always no answer from RA4.

the esp32 has the standard firmware?

Hi Juraj,

Yes, I use the ESP32 with the standard firmware.

Hi,

the only way I have found to recover the default bootloader was
to erase the RA4 flash with SWD programmer.

It looks like the flash content prevented the bootloader from starting

THANKS A LOT FOR YOUR HELP.

Does it mean, you had to erase the flash using ST-Link, and then you were able to flash the bootloader as described? Because I have the same error message when trying to flash the bootloader on a new chip through USB. The chip is recognized as COM port after activating boot mode, but I can't install the bootloader.

I have erased the flash using ST-Link.
I have programmed the flash with the bootloader using St-Link.