Post Go back to editing

Init Code for SHARC boot through SPI Master mode


Iam booting my processor using Realterm software.

In that after loading the ldr code through UART slave mode, changing the switch to SPI master boot mode has no effect..

It is told that while generating the ldr file, initialization file to be added in the loader settings.

Is there any init code to be added while compiling my ldr file..

Please provide me the knowledge to do the same.



Parents Reply
  • Hi,

    As you might known, EE-387 application note discusses hardware and software guidelines for interfacing DDR3/DDR2/LPDDR devices with ADSP-SC5xx/ADSP-215xx processors and please note that, All code examples have been written and tested with CrossCore Embedded Studio.

    Please refer the readme file available for examples to know more details.

    Best Regards,

  • Hi,

    Whether i need to generate init dxe along with boot code or with my application code,



  • Hi Vignesh,

    You can make a local copy of examples of EE-note or 2156x_Init project available in below CCES installation path and modify configuration as per your requirement and build project separately to generate init.dxe that suitable for your board.
    [installation]\Analog Devices\CrossCore Embedded Studio <version>\SHARC\ldr\init_code\2156x_Init

    After generating init code dxe successfully, you can include an init code dxe into the *.ldr file built for your application via below project properties.
    Project properties > C/C++ Build > settings > Tool settings tab> CrossCore sharc loader > Initialization. Please refer the attached screenshot for reference.

    Please follow the below steps to include/browse an init code dxe into loader file of your application.

    1.Assuming your executable project is already loaded into CCES,select the Project > Properties > C/C++ Build > Settings > Build Artifact tab.
    There you will see "Artifact Type". From the drop down menu select "Loader File".
    2.Click on the "Tool Settings" tab and select "CrossCore sharc Loader" then "General".
    Select the boot mode, boot format as needed and specify the SPIMCODE value for SPI master.
    3.Click on the “Initialization”. you can browse your newly generated or browse appropriate "Initialization file" (init.dxe) and build project.