Everything
2.4.14 Change the microcontroller

You can change the microcontroller to be used in the created project.

(1)

Select the change for the microcontroller

Select the Microcontroller node and select [Change microcontroller...] on the context menu.

The following message dialog box will open.

Figure 2.46

Message Dialog Box

 

The project needs to be saved before making the following steps (The current project is overwritten by clicking the [OK] button).

To continue the process, click the [OK] button.

Remark

When multiple Microcontroller nodes for the projects using the same microcontroller are selected, the microcontroller settings can be changed at one time.

(2)

Select the new microcontroller

The Change Microcontroller dialog box will open.

At this time, the current microcontroller is selected in the [Change microcontroller to] area.

Figure 2.47

Change Microcontroller Dialog Box

 

After selecting the new microcontroller, click the [OK] button.

Remark

The [OK] button becomes valid when the selected microcontroller differs from the current microcontroller.

Figure 2.48

Change Microcontroller Dialog Box (After Selecting New Microcontroller)

 

(3)

Change the microcontroller

The current microcontroller is changed to the selected microcontroller.

Remark 1.

The microcontroller can only be changed to another from the same family (RH850, RX, and RL78) that is compatible with the same build tools.

Remark 2.

When the microcontroller is changed, it must be disconnected from the debug tool.

Remark 3.

When the microcontroller is changed, the project must be saved.

Remark 4.

After the microcontroller is changed, information for the pin configurator (design tool), code generator (design tool), and debug tool (except for registration of the Watch panel) is not maintained.

Remark 5.

The settings of the properties of the build tool are changed to those for the specified microcontroller. iodefine.h and the start-up source files of the specified microcontroller are copied as sample source files. For the start-up files, create a folder named "<device name after change>.nnn" (nnn = 000, 001, …) and copy them to that folder. The details of the changes are displayed in the Output panel.
If you have selected a microcontroller that has a different ROM size from that set in the source project, the differences between the ROM sizes may not be reflected in the value of the [Section start address] property on the [Link Options] tabbed page. Check the value of the [Section start address] property.

Caution

Although the [Section start address] property on the [Link Options] tabbed page is changed to the value for the specified microcontroller, the specification of addresses with #pragma address is not supported. If a section start address is changed, the size of the resulting section may extend beyond the capacity of the ROM or RAM.