| |||
| Home > Configuring Custom Memory Maps, Registers and Peripherals > Creating a BCD file to use as a template | |||
To create definitions for the memory map, memory mapped registers, and peripheral registers of your development platform, you are recommended to create a BCD file. You can then use this BCD file as a template for all future BCD files you create. You might want to create a different template for each vendor-specific target used on your development platform.
The template BCD file created in this procedure is used as the starting point for many of the examples described in this chapter.
To create a BCD file to use as a template:
Select Connection Properties... from the Target menu to display the Connection Properties window. Figure 4.10 shows an example.
Expand the (*.bcd) Board/Chip Definitions group
in the left pane. A list of existing BCD files is displayed.
Save a copy of an existing BCD file:
Right-click on the AP.bcd file
group to display the context menu.
Select Save As... from the context menu to display the Enter New Name dialog box.
Locate your RealView Debugger home directory.
Enter the name for your new BCD file, for example, aatemplate.bcd.
Click Save to save the BCD file and close the Enter New Name dialog box.
Select Save Changes from the File menu from the Connection Properties window menu to save your changes.
Select Refresh from the File menu to update the list of BCD files.
Expand the (*.bcd) Board/Chip Definitions group
again to show the list of BCD files.
Rename the BOARD= group as appropriate:
Expand the entry for the new BCD file, ...\aatemplate.bcd in
this example.
Right-click on the BOARD= group
in the left pane to display the context menu.
Select Rename from the context menu to display the Group/Type Name Selector dialog box.
Enter an appropriate name, for example ARM_TEMPLATE.
Click OK to close the dialog box.
Clear all settings that are currently configured:
Right-click on the BOARD=ARM_TEMPLATE group
in the left pane to display the context menu.
Select Reset Contents from
the context menu. All settings in the BOARD=ARM_TEMPLATE group
are reset to the default settings.
Click the BOARD=ARM_TEMPLATE group.
The group settings are displayed in the right pane.
Change the Description in the
right pane to an appropriate description:
Right-click
on the Description to display the context menu.
Select Edit Value... from the context menu.
Enter Template BCD File. Make sure you press Enter to complete the entry.
Add a new Advanced_Information group:
Expand the BOARD=ARM_TEMPLATE group.
Expand the Advanced_Information group.
Right-click on the Advanced_Information group
in the left pane to display the context menu.
Select Make New... from the
context menu to display the Enter Name of New object dialog box.
The name default is inserted.
Enter a name that is appropriate to the target for which this template is to be used. For this example, enter ARM.
Click Create to close the dialog box.
Delete the Default group:
Right-click on the Default group
in the left pane to display the context menu.
Select Delete from the context
menu. The Default group is deleted.
Select Save and Close from the File menu to save your changes and close the Connection Properties window.