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

Error Message: Target is SH family MCU when writing data using E10A-USB

Latest Updated:03/16/2011

Question:

When the target is an SH family MCU and I try to write data to the external flash memory using E10A-USB, the following message is generated and the write operation fails. Error message: [Error (Erasing memory routine)] → Error (fm tool file)] → [File: download file name]

Answer:

This message indicates that the external flash memory erase module is not operating normally. Please confirm the following as possible causes and adjust accordingly.

1.The registered write/erase module may not be successfully downloaded to the memory.

1.1 Using the memory window, confirm that the download memory for the write/erase module is write-enabled.
If you are unable to write to the memory, make sure the required settings for the register are completed.
In particular, if the download memory is an SDRAM or an external RAM, the SDRAM must be initialized and the bus controller set.
Make sure that each setting is correct.

1.2 Confirm that the write/erase module download address is within the memory area.
After the write/erase module is downloaded (see section 1.3 (1) to (5) for download method),
confirm the download address in the [Status] window from the menu by selecting [View] → [CPU] → [Status].

1.3 In addition to the above procedure, you can confirm that the write/erase module has been successfully downloaded using the following steps.

(1)Set "Loading flash memory" to disable in the [Loading flash memory] page in the [Configuration] dialog box.

(2)Register the write/erase module as the download module in the [Debug settings] dialog box.
Set offset to 0 and file format to S-Record.
Adjust the access size to match the entry point access size setting indicated on the [Loading flash memory] page.

(3)If "CPU reset after download" is selected in the lower half of the [Option] page in the [Debug settings] dialog box,remove the check mark.

(4)Perform the necessary settings for the register (initialize the SDRAM, etc.) in order to access the write/erase module download memory (SDRAM, etc.).

(5)Download the write/erase module.

(6)From the menu, select [Debug] → [Verify memory] to open the [Verify memory] dialog box.
Register the write/erase module as the file name and click the verify button.
Set file format to S-Record and offset to 0.
Adjust the access size to match the entry point access size setting indicated on the [Loading flash memory] page.

(7)If the following is displayed, the write/erase module was successfully downloaded.
File verified OK
File: module file name
If, on the other hand, the following is displayed, the write/erase module has not been successfully downloaded.

Verify failed
File: module file name

2.Confirm that the write/erase module entry point setting (program execute start address and access size) is correct.

2.1 Make sure the descriptions for the entry point ("all erasing module address" or "writing module address") on the [Loading flash memory] page in the [Configuration] dialog box are correctly set for the erase module and write module start address.

2.2 Set the access size to the access size of the write/erase module download memory.
Check for incorrect settings, such as 1 (byte access) for a memory that does not support byte access.

3.To set a smaller value for the flash memory erasing time on the [Loading flash memory] page,set the value for TIMEOUT during flash memory erase.
If this value is less than the Flash memory erase time, an error will occur.
Check the Flash memory data sheet for the correct value and adjust accordingly.

Suitable Products
E10A-USB