Post Go back to editing

ADSP-SC58x/2158x Simple Led- Example code for Boot Testing

Attached folder comprises of a simple LED blink code for all the 3 cores in ADSP-SC58x processor. Apart from that it also has a loader stream generated for SPI master boot mode for various combination.

These loader streams can be programmed into the flash and SPI master boot can be tested.

Boot_Code.zip
Parents
  • Hmm..... the problem has been solved....

    It turned out that the example *-ldr file puts the Core0 (ARM-Cortex A5)
    into thumb state.

    How to debrick:

    Start OpenOCD (the one from ADI's Linux CCES AddIN).

    Open GDB:

    target remote :3333

    (issue this command when you release the reset push button) - so the SW from SPI-NOR won't start.

    (gdb) set $cpsr = 0x1D3
    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/init-sc58x-ezkit-lpc.elf
    C

    Ctrl+C

    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/u-boot-sc58x-ezkit-lpc

    C

    And you should see the output from serial console :-)

    After that one can restore the original u-boot/Linux.

    Sorry for the noise :-)

    Best regards,

    Łukasz

Reply
  • Hmm..... the problem has been solved....

    It turned out that the example *-ldr file puts the Core0 (ARM-Cortex A5)
    into thumb state.

    How to debrick:

    Start OpenOCD (the one from ADI's Linux CCES AddIN).

    Open GDB:

    target remote :3333

    (issue this command when you release the reset push button) - so the SW from SPI-NOR won't start.

    (gdb) set $cpsr = 0x1D3
    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/init-sc58x-ezkit-lpc.elf
    C

    Ctrl+C

    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/u-boot-sc58x-ezkit-lpc

    C

    And you should see the output from serial console :-)

    After that one can restore the original u-boot/Linux.

    Sorry for the noise :-)

    Best regards,

    Łukasz

Children
No Data