Pular para o conteúdo principal
Knowledgebase
Home
Renesas Brasil - Knowledgebase

Write and Retain Data: What to use Renesas Flash Programmer or PG-FP5

Latest Updated:12/01/2014

Question:

I want to use one of the following flash programming tools to rewrite some data in flash memory. However, I want to retain data in the areas (such as the data area) that are not to be rewritten.

  • Renesas Flash Programmer
  • PG-FP5

Answer:

When you wish to rewrite only some data in flash memory, the procedure is to set the range to be rewritten in the flash programming tool and then issue the required commands (e.g. the commands for erasure or programming). How to set the range to be rewritten differs with the target microcontroller and the flash programmer you are using.

For an RX MCU that is to be erased and has the ID code protection function, rewrite the flash memory after this function has been enabled. If the setting is “disabled” and flash memory is rewritten, since the RX MCU will erase all blocks of the ROM (flash memory for storing code) and data flash memory (flash memory for storing data) or enter the state of being ready for erasure on connection with the flash programming tool, data that are not to be rewritten cannot be retained.

The following is a summary of how to set the range for rewriting flash memory.

MCU

Family

MCU

ID Code Protection Function

Flash Programming Tool

PG-FP5

Flash Programming Tool

Renesas Flash Programmer

Notes on ID Code Protection Function

RX Yes
(with erasure)
Make the setting in the [Operation Mode] area on the [Standard] tabbed page of the [Device Setup] dialog box. Setting by the Renesas Flash Programmer is not required.

Executing a write command erases and writes blocks (only those to which writing has proceeded) corresponding to the addresses of the program file that has been read by the Renesas Flash Programmer.
After ID code protection has been enabled, rewrite flash memory by connecting the MCU to the flash programming tool.

If the ID code protection function is disabled, all blocks are erased or in the state of being ready for erasure on connection with the flash programming tool, so data that are not to be rewritten cannot be retained.
RX Yes
(without erasure)
Make the setting in the [Operation Range] area on the [Advanced] tabbed page of the [Device Setup] dialog box. Make the setting in [Write Mode] on the [Other Settings] tabbed page of the [Project Settings] dialog box. No
RH850 No Make the setting in the [Operation Range] area on the [Advanced] tabbed page of the [Device Setup] dialog box. Make the setting in [Write Mode] on the [Other Settings] tabbed page of the [Project Settings] dialog box. No
RL78 No Make the setting in the [Operation Mode] area on the [Standard] tabbed page of the [Device Setup] dialog box. Make the setting in [Operation mode] on the [Other Settings] tabbed page of the [Project Settings] dialog box. No
 
78K No Make the setting in the [Operation Mode] area on the [Standard] tabbed page of the [Device Setup] dialog box. Make the setting in [Operation mode] on the [Other Settings] tabbed page of the [Project Settings] dialog box. No
V850 No Make the setting in the [Operation Mode] area on the [Standard] tabbed page of the [Device Setup] dialog box. Make the setting in [Operation mode] on the [Other Settings] tabbed page of the [Project Settings] dialog box. No

For more information, refer to the user's manual of the flash programming tool you are using.

  • Click here for the user’s manual of the Renesas Flash Programmer.
  • Click here for the user’s manual of the PG-FP5

For more information on ID code protection on the RX MCU you are using, refer to the User's Manual: Hardware for the target device.

Suitable Products
PG-FP5
Renesas Flash Programmer