Everything
2.3.4 Create a project for multi-core [RH850]

A project for multi-core consists of a boot loader project and an application project. The application project creates programs for each CPU core, and the boot loader project manages activation of those programs.

CS+ has a feature for creating the whole of a project with a default structure.

The way to use this is described below.

Remark

Create a project in the usual way if you want to freely configure the whole of a project.

 

On the tool bar, click to open the Start panel.

Figure 2.11

Start Panel

 

Click the [GO] button in the [Create New Multi-core Project] area to open the Create Project dialog box.

Remark

The [Create New Multi-core Project] area is minimized by default; click to resize the area.

Figure 2.12

Create Project Dialog Box (When First Started)

 

Set the items in the order below.

(1)

Confirm the microcontroller type

[RH850] is selected on [Microcontroller].

(2)

Select the microcontroller

Select the microcontroller to use in the project on the [Using microcontroller] area.

If your microcontroller is not in the [Using microcontroller] area, click the [Update...] button.

You can open the CS+ Update Manager window, and check for microcontroller information updates via the network.

Caution

The [Update...] button is only enabled when this product is installed using the installer. It is disabled when a packaged item is being used.

(3)

Confirm the project type

[Boot Loader for Multi-core(CC-RH)] is selected on [Kind of project].

(4)

Specify the project name and location to create the project file

Specify the name of the project and the location to create the project file in [Project name] and [Place].

If you don’t create a folder with the project name under the specified location, clear the [Make the project folder] check box.

Caution 1.

When directly entering the location to create the project file, enter it as an absolute path.

Caution 2.

The name of a network path cannot be used for [Place]. Assign the name of a path on a drive.

(5)

Specify simultaneous creation of a structure of startup files for each core

When simultaneously creating a structure of startup files for each core, select the [Create a structure of startup files including main functions for each core.] check box.

When the [Create a structure of startup files including main functions for each core.] check box has been selected, select either of the following:

-

Case where a structure of startup files for each core is created as an application project for the number of cores

Select [Create them as application projects].

-

Case where a single project that includes structures of all startup files is created

Select [Create them as a single project].

 

An image of the dialog box after setting the items is shown below.

Figure 2.13

Create Project Dialog Box (After Setting Items)

 

When you click the [Create] button, the project file is created in the location specified in (4) and the structure of the created project is displayed as a tree in the Project Tree panel.

Figure 2.14

Project Tree Panel (After Creating a New Project)

 

The start-up source files for each project are also created in the project folder and registered in the project tree.

(1)

When [Create a structure of startup files including main functions for each core.] check box is not selected

File Name

Description

bootn.asmNote

For defining the processing from the occurrence of a reset to a branch to each application project and defining the interrupt vector table

iodefine.h

For defining I/O registers

Note

The core number n is sometimes included in the file name of a startup file for a core.

(2)

When [Create a structure of startup files including main functions for each core.] check box and [Create them as application projects] radio button are selected

(a)

Start-up source files for the boot loader project

File Name

Description

bootn.asmNote

For defining the processing from the occurrence of a reset to a branch to each application project and defining the interrupt vector table

iodefine.h

For defining I/O registers

(b)

Start-up source files for the application project

File Name

Description

cstartn.asmNote

For defining the start-up routine for each application

iodefine.h

For defining I/O registers

mainn.cNote

For defining the empty main function

Note

The core number n is sometimes included in the file name of a startup file for a core.

(3)

When [Create a structure of startup files including main functions for each core.] check box and [Create them as a single project] radio button are selected

File Name

Description

boot.asm

For defining the processing from the occurrence of a reset to a branch to each application project and defining the interrupt vector table

cstartn.asmNote

For defining the start-up routine for each application

iodefine.h

For defining I/O registers

mainn.cNote

For defining the empty main function

Note

The core number n is sometimes included in the file name of a startup file for a core.

 

Remark 1.

The application project name is “boot-loader-project-name_App1”.

Remark 2.

Add further application projects as subprojects.
See "2.3.3 Add a new subproject" and "2.4.2 Add an existing subproject", for how to add subprojects.