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

How can I debug a ROMized program correctly?

Latest Updated:12/05/2012

Question:

When executing a ROMized load module in the CubeSuite+ environment, program execution stops at the _rcopy function and the program cannot be debugged.
How can I debug a ROMized program correctly?

Applicable MCU:RL78 Family

Answer:

If no particular settings have been made in the CubeSuite+ environment, the load module to be downloaded at debugging is the load module that has been created from the file specified to be built in the main project or a sub project. To download a load module file after it has been converted to ROM and debug it, change the settings as follows:

  1. Select the debug tool on the Project Tree panel.

  2. Select the property by right-clicking.

  3. Select [Download files] in the [Download File Settings] tab and click the [...] button that is displayed at the right edge in the column.

  4. Select the ROMized load module from the Download file list in the [Download Files] dialog box.

    If no ROMized load module is displayed in the list, click on the [Add] button to register and select a file.

  5. Set the following in the [Download file property] area.
    Download object: Yes
    Download symbol information: Yes

  6. Select a load module file other than the ROMized load module, and change the Download file property settings as follows:
    Download object: No
    Download symbol information: No
Suitable Products
CS+ (formerly CubeSuite+)
E1 [R0E000010KCE00]
E20 [R0E000200KCT00]
MINICUBE2[QB-MINI2]
MINICUBE
IE850 (formerly IECUBE2)
IECUBE