Creating Target Board Projects for 56800/E (DSC)

To create a new target board project for a DSC derivative using the New Bareboard Project wizard:

  1. Launch the Workbench.
    Note: For information about launching the Workbench, refer to the topic Launching Workbench.
  2. Select File > New > Bareboard Project, from the IDE menu bar.

    The Create an MCU bareboard Project page of the New Bareboard Project wizard appears.

  3. Specify a name for the new project. For example, enter the project name as Project_3.
    Note: If you do not want to use the default location, clear the Use default location checkbox. In the Location text box, enter the full path of the directory in which you want to create your project including the project name. Alternatively, click Browse and select the desired location from the Browse For Folder dialog box and click OK. Ensure that you append the path with the name of the project to create a new location for your project.
    Figure 1. New Bareboard Project Wizard - Create an MCU Bareboard Project Page
    New Bareboard Project Wizard - Create an MCU Bareboard Project Page
  4. Click Next.

    The Devices page appears.

  5. Expand the desired tree control and select the derivative or board you would like to use. For example, select 56800/E (DSC) > MC56F824x > MC56F8245.
    Figure 2. New Bareboard Project Wizard - Devices Page
    New Bareboard Project Wizard - Devices Page
  6. Click Next.

    The Connections page appears.

    Figure 3. New Bareboard Project Wizard - Connections Page
    New Bareboard Project Wizard - Connections Page
  7. Select the desired connection.
    Note: You can select multiple connections by checking appropriate checkboxes in the Connections page. By default, the P&E USB MultiLink Universal [FX] / USB MultiLink connection checkbox is checked.
    Note:

    You can use the DSC Simulator Statistic view to get information on the number of instructions and cycles simulated, when you are debugging with DSC simulator target.

    To display this view from the Debug perspective: Select Window > Show View > Other and navigate to Debug > DSC Simulator Statistic. Alternatively, you can type DSC Simulator Statistic in the Search textbox to filter the list. Select DSC Simulator Statistic, the DSC Simulator Statistic view appears.

    The DSC Simulator statistic view displays the number of instructions executed by simulator and number of cycles those instructions take, use the Reset button zero out the current machine-cycle and machine-instruction readings.

    Cycle counting is not accurate while single stepping through source code in the debugger. It is only accurate while running. Thus, the cycle counter is more of a profiling tool than an interactive tool.

  8. Click Next.

    The Languages and Build Tools page appears.

    Figure 4. New Bareboard Project Wizard - Languages Page
    New Bareboard Project Wizard - Languages Page
  9. Select the programming language you want to use. By default, the Simple C option is selected.
  10. Click Next.

    The Rapid Application Development page appears.

    Figure 5. New Bareboard Project Wizard - Rapid Application Development Page
    New Bareboard Project Wizard - Rapid Application Development Page
    Note: The Processor Expert option is disabled, if you select the Simple Assembly option in the Connections page.
  11. Select the appropriate option to support rapid application development.
    • None - Select to generate only startup code.
    • Processor Expert - Select to generate the device initialization code, including low-level drivers.
  12. Click Finish.

    The wizard creates a new target board project for the DSC architecture according to your specifications. You can access the project from the CodeWarrior Projects view in the Workbench window.

    Figure 6. CodeWarrior Projects View
    CodeWarrior Projects View

The new project is ready for use. You can now customize it by adding your own source code files, changing debugger settings, or adding libraries.

Note: You can click Finish at any step in the Project Wizard to save the project with the default settings.