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
  • Hi Harshit,

    I've used your code on sc584-ezbrd LPC (to test if I can program SHARC code and see if it works).

    I've flashed the SPI-NOR with Boot_Code/SPI_Master_Boot_Streams/SPIMASTER_Single_ARM_SHARC1.ldr 

    After reset I do see two blinking LEDs...... LED10 and LED12.

    This is good :-)

    However, I would like to come back to my u-boot/Linux setup (I've followed ADI's CCES Linux manual).

    I've reset the board with the push button, and before LEDs started blink I typed:

    (gdb) target remote :3333

    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/init-sc58x-ezkit-lpc.elf

    (gdb) c
    Continuing.
    ^C
    Program received signal SIGINT, Interrupt.
    0x00005470 in ?? ()

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

    Loading section .text, size 0x2af54 lma 0x89200000
    Loading section .rodata, size 0xabb9 lma 0x8922af54
    Loading section .hash, size 0x2c lma 0x89235b10
    Loading section .data, size 0x216a lma 0x89235b3c
    Loading section .got.plt, size 0xc lma 0x89237ca8
    Loading section .u_boot_list, size 0x840 lma 0x89237cb4
    Loading section .rel.dyn, size 0x6ce8 lma 0x892384f4
    Loading section .dynsym, size 0x60 lma 0x8923f1dc
    Loading section .dynstr, size 0x2a lma 0x8923f23c
    Loading section .dynamic, size 0x80 lma 0x8923f268
    Loading section .interp, size 0x11 lma 0x8923f2e8
    Start address 0x89200000, load size 258802
    Transfer rate: 30 KB/sec, 10783 bytes/write.
    (gdb) c

    Unfortunately, I do not see any output on the serial console (with u-boot prompt).  

    I can only see the blinking LEDs when I reset the board.

    Also OpenOCD do not show any errors:

    target halted in Thumb state due to debug-request, current mode: Supervisor
    cpsr: 0x400001f3 pc: 0x00001840, semihosting
    MMU: disabled, D-Cache: disabled, I-Cache: disabled
    semihosting is enabled

    Could you help me with debricking the devel board?

    Thanks in advance,

    Łukasz

Reply
  • Hi Harshit,

    I've used your code on sc584-ezbrd LPC (to test if I can program SHARC code and see if it works).

    I've flashed the SPI-NOR with Boot_Code/SPI_Master_Boot_Streams/SPIMASTER_Single_ARM_SHARC1.ldr 

    After reset I do see two blinking LEDs...... LED10 and LED12.

    This is good :-)

    However, I would like to come back to my u-boot/Linux setup (I've followed ADI's CCES Linux manual).

    I've reset the board with the push button, and before LEDs started blink I typed:

    (gdb) target remote :3333

    (gdb) load /opt/analog/cces-linux-add-in/1.1.0/uboot-sc58x-1.1.0/bin/init-sc58x-ezkit-lpc.elf

    (gdb) c
    Continuing.
    ^C
    Program received signal SIGINT, Interrupt.
    0x00005470 in ?? ()

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

    Loading section .text, size 0x2af54 lma 0x89200000
    Loading section .rodata, size 0xabb9 lma 0x8922af54
    Loading section .hash, size 0x2c lma 0x89235b10
    Loading section .data, size 0x216a lma 0x89235b3c
    Loading section .got.plt, size 0xc lma 0x89237ca8
    Loading section .u_boot_list, size 0x840 lma 0x89237cb4
    Loading section .rel.dyn, size 0x6ce8 lma 0x892384f4
    Loading section .dynsym, size 0x60 lma 0x8923f1dc
    Loading section .dynstr, size 0x2a lma 0x8923f23c
    Loading section .dynamic, size 0x80 lma 0x8923f268
    Loading section .interp, size 0x11 lma 0x8923f2e8
    Start address 0x89200000, load size 258802
    Transfer rate: 30 KB/sec, 10783 bytes/write.
    (gdb) c

    Unfortunately, I do not see any output on the serial console (with u-boot prompt).  

    I can only see the blinking LEDs when I reset the board.

    Also OpenOCD do not show any errors:

    target halted in Thumb state due to debug-request, current mode: Supervisor
    cpsr: 0x400001f3 pc: 0x00001840, semihosting
    MMU: disabled, D-Cache: disabled, I-Cache: disabled
    semihosting is enabled

    Could you help me with debricking the devel board?

    Thanks in advance,

    Łukasz

Children
No Data