2023-12-22

This video uses the RX671 as an example to explain how to set the access window using flash module FIT and how to set a RX microcontroller with access window enabled back to default shipment state.
Application note: RX Family Flash Module Using Firmware Integration Technology Rev.5.12 (PDF | English, 日本語)

00:00 Opening
00:31 Part 1: Setting the access window
00:46 Part 2: Setting a RX microcontroller with access window enabled back to default shipment state

Transcript

This video uses the RX671 as an example to explain how to set a RX microcontroller with access window enabled back to default shipment state.

PART 1 explains how to configure the access window, and PART 2 explains how to set a RX microcontroller with access window enabled back to default shipment state.

Part 1: Setting the access window
The access window is set using the R_FLASH_Control function of the flash module FIT.
Coding shown on the screen sets the access window for block 3 in the code flash memory.

Part 2: Setting a RX microcontroller with access window enabled back to default shipment state
Next, we will explain how to set a RX microcontroller with access window enabled back to default shipment state.

First, create the source code to disable the access window.

Use a text editor to write the contents shown on the screen.
On the second line, specify the address of the Flash Access Window Setting Register (FAW) as the operand of the Address Directives (.ORG).
The address of the RX671's FAW register is shown on the screen.
The address of FAW register should be changed according to the RX microcontroller used.
Save the file with the extension .src.

Next, build the .src source code created earlier with CC-RX compiler to generate a mot file.

To do so, run the command prompt and execute the command displayed on the screen.
The first command sets the CC-RX path. Set the CC-RX path according to your environment.
The second command builds the source code and generates the mot file.

Finally, use Renesas Flash Programmer to program the generated mot file which will set the RX microcontroller to default shipment state.

To do this, run Renesas Flash Programmer and select [File] > [New Project].
In the [Create New Project] screen, select the [Microcontroller] to be used, and enter the [Project Name] and [Project Folder].
Select the [Tool] and [Interface] according to the type of emulator and environment you are using, then click [Connect].
In the [Authentication] dialog, click [OK].
Under [Operation Settings], uncheck [Erase] in the [Command] checkbox.
Under [Operation], enter the path of the mot file and click [Start].
In the [Authentication] dialog, click [OK].
Under [Operation Settings], check [Erase] in the [Command] checkbox, uncheck [Program] and [Verify], and change the [Erase Options] setting to [Erase Chip]
Under [Operation], click [Start].
In the [Authentication] dialog, click [OK].

The access window is now disabled and the RX microcontroller is set to the default shipment state.