AnsweredAssumed Answered

SC589 Hangs when testing MCAPI Test Code

Question asked by Deepak_Agasibagil on Jun 29, 2017
Latest reply on Oct 23, 2017 by Gregchen

I am following 'Multicore support->Loading of multicore apps by the boot ROM' from Document 'Linux_Add-in_User's_Guide-1.1.0'  to Generate LDR image.If the generated LDR image is flashed the device hangs/does not boot.

Below is the message displayed after board reset.


sc # reset
resetting ...
Below are steps followed :
1) To generate LDR image  
    elfloader.exe -proc ADSP-SC589 -si-revision 0.1 -b spimaster -f binary -width 8 -bcode 1 -init init-sc58x-ezkit-hpc.elf -core0=u-boot-sc58x-ezkit-hpc -core1=mcapi_send_recv_Core1.dxe -NoFinalTag=u-boot-sc58x-ezkit-hpc -o u-boot-sc58x-ezkit-hpc-init-sc58x-ezkit-hpc-elf-mcapi.ldr
    The init and u-boot files are copied taken from Linux environment after installing adi-CrossCoreEmbeddedStudio-linux-x86-2.3.0.deb and adi-LinuxAddinForCCES-linux-x86-1.1.0.deb files (PATH:\opt\analog\cces-linux-add-in\1.1.0\uboot-sc58x-1.1.0\bin\)
    The mcapi_send_recv_Core1.dxe file is generated using import function from CCES studio (PATH:/opt/analog/cces-linux-add-in/1.1.0/examples/cces_mcapi_test)
2) To flash generated LDR image
    The generated LDR image is copied to SD card for writing it into flash
    a) ext2load mmc 0:1 ${loadaddr} u-boot-sc58x-ezkit-hpc-init-sc58x-ezkit-hpc-elf-mcapi.ldr
    b) sf probe 2:1
    c) sf erase 0 0x80000
    d) sf write ${loadaddr} 0 ${filesize}
3) TO flash dtb command
    The dtb file is copied to SD card for writing it into flash
    a) ext2load mmc 0:1 ${loadaddr} sc58x-ezkit-hpc.dtb
    b) sf probe 2:1
    c) sf erase 0x900000 0x40000
    d) sf write 0xc2000000 0x900000 ${filesize}
4) TO boot Linux
    To save environment and reset
    a) set sdargs set bootargs root=/dev/mmcblk0p1 rw rootwait rootfstype=ext3 clkin_hz=(25000000) earlyprintk console=ttySC0,57600
    b) set sdboot 'run sdargs; sf probe 2:1;sf read 0xc4000000 0x900000 0x40000;ext2load mmc 0:1 0xc2000000 vmImage-sc58x-ezkit-hpc;bootm ${loadaddr} - ${dtbaddr}'
    c) set bootcmd run sdboot
    d) save
    e) reset


Please help me to resolve this issue.
Thank You,
Deepak Agasibagil