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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

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.
 
Procedure
  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'.

    pastedImage_1.png

  2. Check that correct project is selected 

    pastedImage_2.png

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

    pastedImage_3.png

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

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

      pastedImage_4.png

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

      pastedImage_6.png

    3. In Bitfields, select 'INITREQ'

      pastedImage_7.png

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

      pastedImage_8.png

  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'.

    pastedImage_2.png

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

    pastedImage_3.png

  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.

    pastedImage_15.png

  9. You are done! DCD image file is created in binary format and ready to be imported to IVT Tool.
 
100% 有帮助 (1/1)
版本历史
最后更新:
‎04-13-2021 12:04 PM
更新人: