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.
Procedure
- 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'.
![pastedImage_1.png pastedImage_1.png](/t5/image/serverpage/image-id/102247iC68C18A44E190D4E/image-size/large?v=v2&px=999)
- Check that correct project is selected
![pastedImage_2.png pastedImage_2.png](/t5/image/serverpage/image-id/102331i1471C95B7E7792F2/image-size/large?v=v2&px=999)
- In DCD Commands panel, select Command Type 'Write', then click 'Set'
![pastedImage_3.png pastedImage_3.png](/t5/image/serverpage/image-id/95030iDD1643BF4656FE81/image-size/large?v=v2&px=999)
- Click 'Add Register', then set the following settings. Can start typing the names to filter the list for faster setting selection.
![pastedImage_3.png pastedImage_3.png](/t5/image/serverpage/image-id/102378i9E1ED9FDA8FA7D04/image-size/large?v=v2&px=999)
- For Peripheral setting, select 'SRAMC'. You can search for it by typing the name.
![pastedImage_4.png pastedImage_4.png](/t5/image/serverpage/image-id/102421i7C5CA0F6EB73DE52/image-size/large?v=v2&px=999)
- Register setting, select 'PRAMCR'. The list is short, so it is not necessary to type the name.
![pastedImage_6.png pastedImage_6.png](/t5/image/serverpage/image-id/102556i1FA243F4A391F42F/image-size/large?v=v2&px=999)
- In Bitfields, select 'INITREQ'
![pastedImage_7.png pastedImage_7.png](/t5/image/serverpage/image-id/102599iD7395029F2D4B157/image-size/large?v=v2&px=999)
- Now click on the highlighted bit to set it.
![pastedImage_8.png pastedImage_8.png](/t5/image/serverpage/image-id/102636i448041EEDC240F08/image-size/large?v=v2&px=999)
- Again using 'New Command' box, repeat settings of steps 3 & 4, however, this time select Peripheral 'SRAMC_1'.
- If everything was done correctly, in the DCD Binary panel to the right, should appear as shown. If so, click 'Export'.
![pastedImage_2.png pastedImage_2.png](/t5/image/serverpage/image-id/98322i6B5E16ABEFCD07F3/image-size/large?v=v2&px=999)
- The generated DCD file will be displayed. By default, C format is selected. Select Binary format and click OK.
![pastedImage_3.png pastedImage_3.png](/t5/image/serverpage/image-id/98244i3212F66891370050/image-size/large?v=v2&px=999)
- Select a location to save the file (such as the project folder in the workspace directory) and give it a meaningful name. Click Save.
![pastedImage_15.png pastedImage_15.png](/t5/image/serverpage/image-id/98321iF9659B837F54FDC6/image-size/large?v=v2&px=999)
- You are done! DCD image file is created in binary format and ready to be imported to IVT Tool.