Renesas RL78 F23 F24

From SEGGER Knowledge Base
Jump to navigation Jump to search

Config words

The device has 5 bytes of config words located in the first flash page beginning at address 0x0000C0.

Please pay special attention to the "On-chip Debug Option Byte" @ 0x0000C3 When bit 5 -> FLPEN is set to 0, the Flash programming mode is irreversibly locked forever!

When using test data for programming, please ensure that the config words are properly set!

ID / Password setting

To access the integrated bootloader, you must enter a 16-byte password when logging in. For an erased chip, the password is 16 bytes of 0xFF. The password is located at address 0x0000D6 in the first code flash page of the CPU. You can enter the password either byte-by-byte using the table, or as an ASCII string. Please use the "ID input format" drop-down menu to choose your favorite input style.

caption

How to connect a device

After the device has been selected in U-Flash, you can display the connection assignment via "show wiring"

caption


RL78.svg?.png

The wiring on the target side must be taken from either the boards circuit diagram or the corresponding data sheet.

To contact boards with the Renesas RL78 adapter, we offer the following adapter:

SEGGER's Renesas RL78 adapter

Please note to set up the jumper with the corresponding supply voltage.

Limitations

Read functionality

The flash content of RL78 devices can not be read back from the device. Only a verify using a CRC checksum is possible!


Troubleshooting

Sector erase of the last 2 data flash banks fails

The last 2 data flash banks can be reserved for AES keys. For programming of these 2 pages, the "security option byte" @ 0x0000C4 bit 0 must be set to 0

In this case, the bulk erase feature can be used. This first deletes flash page 0 and sets the config bytes accordingly. Then the data flash and the code flash are erased. Both areas are then programmed and verified if requested.