How to create a bootable LDR file of Lockbox Security example?

Document created by PrasanthR Employee on Jul 1, 2011Last modified by PrasanthR Employee on Jul 19, 2011
Version 1Show Document
  • View in full screen mode

The Lockbox overlay project in the Visual DSP++ installation (...\VisualDSP 5.0\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\lockbox) requires some

additional process in order to create a proper bootable LDR image. Without this, booting the original code fails with authentication failure.


Apparently, the post build command for digital signing of the secure sections in application dxe was called after Loader file (LDR) generation, thus failing any subsequent authentication. In order to overcome this, you could have the Project Options set for Executable file, and then generate LDR file by explicitly invoking the elfloader with another post build command.


Note that you will need to extract the exact elfloader.exe options for this new post build command. For that, you should first set the Project Options for Loader file, turn on verbose through “Settings: Preferences: Project: Verbose build output”, and then copy the entire relevant line from the VDSP verbose output after a project build (you can see the verbose being printed on the VDSP console, when the project is being built with the VDSP toolchain).


Once you capture the options you can copy the same to your post build command - which is generally a one-time procedure. Example build command tested for 0.2 Si with VDSP Update 8 is given below:


Serial boot:


"C:\Program Files\Analog Devices\VisualDSP 5.0\elfloader.exe" .\temp\Debug\pre-collaudo_92530.dxe -b SPI -f HEX -Width 8 -init "C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\ldr\ezkitBF527_initcode_ROM-V02.dxe" -o .\temp\Debug\pre-collaudo_92530.ldr -No2Kernel -si-revision any -proc ADSP-BF527


Parallel boot:


"C:\Program Files\Analog Devices\VisualDSP 5.0\elfloader.exe" .\temp\Debug\pre-collaudo_92530.dxe -b Flash -f HEX -Width 16 -init "C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\ldr\ezkitBF527_initcode_ROM-V02.dxe" -o .\temp\Debug\pre-collaudo_92530.ldr -No2Kernel -si-revision any -proc ADSP-BF527


The same issue and workaround should be applicable for BF548 Lockbox example as well.

...\VisualDSP 5.0\Blackfin\Examples\ADSP-BF548 EZ-KIT Lite\lockbox