Flash and Debug using OpenOCD & GDB on ADSP-SC584

Hello everyone,

What I want to achieve here is to use openOCD from command line to program and eventually debug an application on core 0 of ADSP-SC584 EZ-kit.

I have CCES 2.9.4 and ICE-1000. I'll use the openOCD executable that is provided with CCES, along with the appropriate scripts (f interface/ice1000.cfg -f target/adspsc58x.cfg) and ARM toolchain.

Up to now I have compiled my core 0 project with CMake. I know that a preloader file is also needed along with my binary for a successful run.

I've referred to this guide that demonstrates how to create a .ldr file. I've done this, however I'm not sure if that's the file I need to program through openOCD. I've made some failed trials.

For starters, how could I program my device with the preloader and my binary using openOCD?

  • 0
    •  Analog Employees 
    on Oct 19, 2021 7:31 AM

    Hi,

    Please note that, When using OpenOCD emulation, preload files are not used. Instead, the scripts from the following CCES installation directory perform the same SDRAM and clock initialization tasks as the preload program.
    ARM\openocd\share\openocd\scripts\board\adspsc584_ezbrd.cfg

    Please refer the below CCES help path for more details.
    CrossCore® Embedded Studio 2.9.4 > Integrated Development Environment > Debugging Targets > Debugging ADSP-SC5xx SHARC+ and ARM Projects > Initializing External Memory for an ADSP-SC5xx Application

    Also, we are able to run GDB and OpenOCD from the Command Line successfully here for CCES example project.

    Therefore, could you please ensure whether you have followed exact steps mentioned in below CCES help path for Running GDB and OpenOCD from the Command Line
    CrossCore® Embedded Studio 2.9.4 > Integrated Development Environment > Debugging Targets > Debugging ADSP-SC5xx SHARC+ and ARM Projects > Using GDB and OpenOCD Emulation for the ARM Core of an ADSP-SC5xx Application (ARM Debug) > Running GDB and OpenOCD from the Command Line

    Best Regards,
    Santhakumari.K