HOWTO: Use DCD Tool To Create A Device Configuration Data Image

Showing results for 
Search instead for 
Did you mean: 

HOWTO: Use DCD Tool To Create A Device Configuration Data Image

100% helpful (1/1)

HOWTO: Use DCD Tool To Create A Device Configuration Data Image

On reset, all module registers have default values. These settings are typically not ideal for achieving optimal system performance. Also, some peripherals must be configured before they can be used. DCD is the configuration information contained in the DCD image that BootROM uses to configure peripherals on the device. BootROM determines the location of the DCD table from the associated pointer in the IVT.


The main functionality of the DCD Tool is to generate the Device Configuration Data (DCD) image using the format and constraints as specified in the Boot ROM reference manual.

In the steps below, an example process for creating the DCD binary for initializing SRAM is shown. To initialize the SRAM, a logic '1' must be written to the INITREQ bit within the PRAMCR register of the SRAMC and SRAMC_1 peripherals.
  1. With a project open in project explorer (C/C++ perspective), switch to DCD perspective. Click on the arrow next to the 'Open S32 Configuration' button and select 'Open DCD'.


  2. Check that correct project is selected 


  3. In DCD Commands panel, select Command Type 'Write', then click 'Set'


  4. Click 'Add Register', then set the following settings. Can start typing the names to filter the list for faster setting selection.

    1. For Peripheral setting, select 'SRAMC'. You can search for it by typing the name.


    2. Register setting, select 'PRAMCR'. The list is short, so it is not necessary to type the name.


    3. In Bitfields, select 'INITREQ'


    4. Now click on the highlighted bit to set it.


  5. Again using 'New Command' box, repeat settings of steps 3 & 4, however, this time select Peripheral 'SRAMC_1'.
  6. If everything was done correctly, in the DCD Binary panel to the right, should appear as shown. If so, click 'Export'.


  7. The generated DCD file will be displayed. By default, C format is selected. Select Binary format and click OK.


  8. Select a location to save the file (such as the project folder in the workspace directory) and give it a meaningful name. Click Save.


  9. You are done! DCD image file is created in binary format and ready to be imported to IVT Tool.
Version history
Revision #:
2 of 2
Last update:
‎04-13-2021 12:04 PM
Updated by: