| |||
| Home > Debug Configuration Tutorial > Creating a concatenated register | |||
In this part of the tutorial, you create a concatenated register C_R8_R9_concat for
the EthernetRouter Debug Configuration. The concatenated
register has the following attributes:
the high byte of the core register R8 forms the
low byte of C_R8_R9_concat
the low byte of the core register R9 forms the high
byte of C_R8_R9_concat.
To create the C_R8_R9_concat concatenated
register:
Right-click on the EthernetRouter Debug Configuration in the Connect to Target window to display the context menu.
Select Properties... from the context menu to display the Connection Properties dialog box.
Click the Advanced button
to display the Connection Properties window. The settings group
for the Debug Configuration is selected (in this example, CONNECTION=EthernetRouter).
Locate the BCD file where you want to define the custom memory mapped registers:
Right-click
on the *BoardChip_name EtherRouter setting in
the right pane to display the context menu.
Select Jump to Definition from the context menu.
The BOARD=EtherRouter group is selected
in the BCD file.
Expand the following groups in turn:
BOARD=EtherRouter
*Advanced_Information
*ARM
Concat_Register.
Create the concatenated register as follows:
Rename the Default block to C_R8_R9_concat.
Select C_R8_R9_concat in the
left pane.
The settings for the concatenated register are displayed.
Change the C_R8_R9_concat settings
to the values shown in Table 5.1.
Table 5.1. R8_R9_concat settings
| Setting | Value |
|---|---|
Low_name | R8 |
Low_shift | 16 (Ox0010) |
Low_mask | 0xFFFF |
High_name | R9 |
High_shift | -16 (left shift) |
High_mask | 0xFFFF0000 |
Add the concatenated register to the EtherRouter tab:
Expand the Register_Window group
in the left pane.
Select EtherRouter to display
the related settings.
Right-click on the first Line setting
to display the context menu.
Select Edit Value... from the context menu.
Enter C_R8_R9_concat. Remember to press Enter to complete the entry.
Select Save and Close from the File menu to save your changes and close the Connection Properties window.
Click the OK button to close the Connection Properties dialog box.
See also: