Post Go back to editing

Init Code for SHARC boot through SPI Master mode

Hi,

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.

regards,

Vignesh.

Parents Reply Children
  • 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.

    Regards,
    Santhakumari.K