Renesas RA2E3
The Renesas RA2E3 are entry-level single-chip microcontroller based on the 48MHz Arm Cortex-M23 core.
Supported devices
Refer to the supported device list for a full list of all supported RA2E3 family devices, their corresponding names and connection diagrams.
Target interfaces
| Interface | J-Link support | Flasher support |
|---|---|---|
| JTAG | ||
| SWD |
Flash banks
| Flash bank | Base address | J-Link support | Flasher support | Loader | |
|---|---|---|---|---|---|
| Name | Bank size | ||||
| Internal option-setting memory | 0x01010010 | Default | 36B | ||
| Internal program flash | 0x00000000 | Default | Up to 64KB | ||
| Internal data flash | 0x40100000 | Default | 2KB | ||
Flash Programming Clock and Power Supply Requirements
Flash programming requires a suitable clock configuration and supply voltage.
If the system clock and clock dividers are still at their reset values when the flashloader starts, the flashloader automatically:
- Switches the MCU to High-speed mode.
- Configures the HOCO frequency according to the HOCOFRQ1 setting in the OFS1 registers.
- Switches the system clock to HOCO with an operation frequency between 24-48 MHz.
During flash programming, the supply voltage (VCC) must be at least 1.8 V.
If the application has already modified the system clock or clock dividers, the flashloader skips its clock initialization above and preserves the existing application-specific clock and power-control configuration.
In this case, the application developer is responsible for ensuring that the clock configuration is suitable for flash programming. In particular:
- The memory wait cycles must be configured correctly for the selected operating frequency.
- The Flash-IF Clock Notification must be configured to reflect the actual Flash Interface clock frequency.
Watchdog handling
- The device has two watchdogs: Independent Watchdog Timer (IWDT) and Watchdog Timer (WDT)
- Both watchdogs are fed during flash programming.
Device specific handling
Connect
- Authentication via IDCODE is supported
- Wake-up CPU from low-power mode is supported
- Connect under reset is supported
Reset
- The device uses normal Cortex-M reset, no special handling necessary, like described here.
Attach
Attach is a debugging feature which exclusively applies to J-Link and J-Trace and does not apply to Flasher.
- Attach is supported / desired
Limitations
Security
- The device has a debug locking feature based on the 128 bit IDCODE, programmed into option-setting memory.
- During connection, the user will be asked to specify the IDCODE code to unlock debugging access if it was previously programmed.
- Use the following IDCODE to send the ALeRASE command, which triggers erasure of the user flash (code and data) area and the configuration area: FFFFFFFFFFFFFFFFFF45534152654C41
- Important: Make sure the byte order of the ALeRASE command is correct, as above shown above. A common mistake is using the wrong byte order, which will cause the command to fail.
Flash write protection
- The device implements a program flash write protection feature based on the access window. A pair of addresses can be programmed into option-setting memory to determine a memory range, in which programming/erasing operations are permitted.
- To disable flash protection using JLink commander:
exec EnableEraseAllFlashBanks erase 0x01010010 0x01010034
- To disable flash protection using JFlash application:
1) Select "Opt flash" bank only. 2) Click Target -> Manual Programming -> Erase Sectors
- If FSPR bit of AWS register is set to 0, program flash write protection is enabled permanently.