Post Go back to editing

When using the cldp.exe (device programmer), how do I set AFP_Verify to TRUE?

Category: Software

When looking at the source C:\Analog Devices\ADSP-SC5xx_EZ-KIT_Lite-Rel2.0.2\ADSP-SC5xx_EZ-KIT\Examples\Device_Programmer\sc5xx_w25q128fv_dpia.c there is a flag (AFP_Verify) that can be set somehow to make WriteData() verify the written data.

How do I set AFP_Verify to TRUE from the command line?

  • ADI North America will be on summer shutdown starting August 24, 2023; perhaps another community member can assist you until our return on September 5th.
  • Hi Marko,

    You can set the flag 'AFP_Verify' to TRUE by using "-cmd prog v" in cldp programming command.

    It can program device memory with data from a file whose name is required, with or without verification. The "[v]" denotes an optional verify flag.

    Unfortunately, There is a known issue, while using the verify flag [v]. We have already logged an issue in our bug tracking database which will be fixed in a future release.

    There is a similar option, which you can use like below in your command line to verify the program which is being flash.

    "-cmd compare"

    For example:

    cldp.exe -proc ADSP-SC584 -core 1 -emu ICE-1000 -driver sc584_w25q128fv_dpia_Core1.dxe -cmd prog -erase all -format hex -offset 0x0000 -file Button_LED_GPIO_SC584_SHARC_Core1.ldr -cmd compare -format hex -offset 0x0000 -file Button_LED_GPIO_SC584_SHARC_Core1.ldr

    This will perform the write, then when the write has completed it will compare the flash contents with the given "-file".


  • Thank you. I have tried compare but I assume this takes more time than the v-flag would.