Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Modifying a device description file

In this section:

C-SPY uses device description files provided with the product to handle several of the target-specific adaptations, see Selecting a device description file. Device description files contain device-specific information such as:

  • Memory information for device-specific memory zones, see C-SPY memory zones. If you are using a C-SPY hardware debugger driver, the memory information retrieved from the device description file is not always sufficient, see Memory configuration for C-SPY hardware debugger drivers.

  • Definitions of memory-mapped peripheral units, device-specific CPU registers, and groups of these.

  • Definitions for device-specific interrupts, which makes it possible to simulate these interrupts in the C-SPY simulator, see Interrupts.

Normally, you do not need to modify the device description file. However, if the predefinitions are not sufficient for some reason, you can edit the file. Note, however, that the format of these descriptions might be updated in future upgrades of the product.

Make a copy of the device description file that best suits your needs, and modify it according to the description in the file. Reload the project to make the changes take effect.

Tip

If you are using an I-jet or I-jet Trace debug probe, and the modified device description file contains modified memory ranges, make sure to select the option Use Factory in the Memory Configuration dialog box.

For information about how to load a device description file, see Selecting a device description file.