This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Flashing USB example in 5515ezdsp

Hi,

 

I am trying flashing at nor_flash the example USB (mouse) supplied by Spetrum Digital of 5515ezdsp (v1). I changed the .cmd more than ten times but it does not work (.cmd is below). I elaborated my .cmd mixing the .cmd supply by Spetrum Digital at EZDSP_Sample and the .cmd of the example USB. I am ok with the procedure to record flash, I did it a couple of times changing the EZDSP_Sample.

 

In all my tries I corrupted the memory (error is below) and the CCS stops to connect to target, so, “What I did was to corrupt the data lines of the NOR-Flash chip at the boot time so that the DSP boot-loader will fail to read the boot signature from the flash chip. This prevented the faulty code to load to the DSP and run from it.” according posted by Anand CV on Tue, Jul 27 2010 1:32 AM onTI E2E Community about Flashing in C5505 eZdsp.

 

After this action I flash the EZDSP_Sample and it works correctly but when I flash the USB example it does not work and the memory is corrupted again.

 

I believe that the problem is in .cmd file but I cannot find this error. Please, could anybody help me?

 

Regards,

 

Andrea

 

Error:

C55xx: Error connecting to the target: Error 0x80000242/-1143 Fatal Error during: Memory, Initialization, OCS,  The memory at 0x000000BE continually indicated it was 'not ready' All memory operations currently in progress were aborted in order to regain control of the processor. This is considered a catastrophic event, but the debugger should  still be able to access memory and CPU registers. System state has been altered.  It is strongly advised that the processor should be reset before resuming execution, 

 

File.cmd

/*-stack                   0x1000*/

/*-sysstack             0x1000*/

/*-heap                   0x1000*/

 

MEMORY

{

    MMR     (RW) : origin = 0000000h length = 0000c0h /* 192 bytes memory-mapped registers*/

    VEC     (RX) : origin = 00000c0h length = 000300h /* 768 bytes on-chip ROM vectors   */

    DARAM_0 (RW) : origin = 0000400h length = 001C00h /* 7KB  on-chip DARAM 0 */

    DARAM_1 (RW) : origin = 0002000h length = 002000h /* 8KB  on-chip DARAM 1 */

    DARAM_2 (RW) : origin = 0004000h length = 002000h /* 8KB  on-chip DARAM 2 */

    DARAM_3 (RW) : origin = 0006000h length = 002000h /* 8KB  on-chip DARAM 3 */

    DARAM_4 (RW) : origin = 0008000h length = 008000h /* 32KB on-chip DARAM 4 */

   

    SARAM_0 (RW) : origin = 0010000h length = 020000h /* on-chip 256KB SARAM 0 */

    USBBUF  (RW) : origin = 0030000h length = 020000h /* USB buffer allocation */

               

    SAROM_0 (RX) : origin = 0fe0000h length = 008000h /* on-chip ROM 0 */

    SAROM_1 (RX) : origin = 0fe8000h length = 008000h /* on-chip ROM 1 */

    SAROM_2 (RX) : origin = 0ff0000h length = 008000h /* on-chip ROM 2 */

    SAROM_3 (RX) : origin = 0ff8000h length = 008000h /* on-chip ROM 3 */

   

   EMIF_CS0 (RW): origin = 0050000h length = 07B0000h /* mSDR */

   EMIF_CS2 (RW): origin = 0800000h length = 0400000h /* ASYNC1 : NAND */

   EMIF_CS3 (RW): origin = 0C00000h length = 0200000h /* ASYNC2 : NAND  */

   EMIF_CS4 (RW): origin = 0E00000h length = 0100000h /* ASYNC3 : NOR */

   EMIF_CS5 (RW): origin = 0F00000h length = 00E0000h /* ASYNC4 : SRAM */

}

 

SECTIONS

{

    vectors                (NOLOAD)

    .bss                    : > DARAM_1 /*, fill = 0*/

    vector                  : > DARAM_1  ALIGN = 256

    .text                    : > SARAM_0  ALIGN = 4

    .stack                 : > SARAM_0  ALIGN = 4

    .sysstack            : > SARAM_0  ALIGN = 4

    .data                   : > DARAM_1

    .cinit                   : > DARAM_2

    .const                 : > DARAM_2

    .sysmem            : > DARAM_3

    .buffer1               : > DARAM_0

    .buffer2               : > DARAM_0

    .switch               : > DARAM_4

    .cio                    : > DARAM_1

    .usbBuffer           : > USBBUF

    .emif_cs0           : > EMIF_CS0

    .emif_cs2           : > EMIF_CS2

    .emif_cs3           : > EMIF_CS3

    .emif_cs4           : > EMIF_CS4

    .emif_cs5           : > EMIF_CS5

}

  • Hi,

     

    Can you share with your GEL file? 

     

    Regards,

    Hyun

  • Hi Hyun, both projects (EZDSP_Sample and usb) are using the same file usbstk5515.gel supply by Spectrum Digital.

     

    Sorry, but I do not understand what to do, please, could you give more details?

    Thanks,

    Andrea

     

  • Hi Hyun, I still trying flash the NOR-Flash of my 5515ezdsp and I have new information.

     

    I included the vector.asm file from EZDSP_Sample to USB example. I edited the vector.asm including the usb_isr interrupt according bellow but does not work:

    .global _usb_isr

    USB:                       .ivec    _usb_isr                                                    ; USB Transmit Interrupt.

     

    I tried the suggestion of Rafael (link below) and edited the vector.asm again, but it does not work.

    http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/110/p/33709/117751.aspx#117751

     

    I configured the Build Properties of USB example and now it is identical of EZDSP_Sample (except the include paths) according bellow.

     

    C5500 Compiler of EZDSP_Sample

    -vcpu:3.3 -g --define="_DEBUG" --define="C55X" --include_path="C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="../../../../include" --include_path="C:/USBSTK5515_demo/source/USB_Stick_Sample/inc" --include_path="C:/USBSTK5515_demo/source/USB_Stick_Sample/EZDSP_Sample/Debug" --include_path="C:/Arquivos de programas/Texas Instruments/bios_5_41_02_14/packages/ti/bios/include" --include_path="C:/Arquivos de programas/Texas Instruments/bios_5_41_02_14/packages/ti/rtdx/include/c5500" --diag_warning=225 --ptrdiff_size=32 --algebraic --memory_model=large --asm_source=algebraic

     

    C5500 Linker of EZDSP_Sample

    -z -m"EZDSP_Sample.map" --stack_size=1000 --warn_sections -i"C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/include" -i"C:/USBSTK5515_demo/source/USB_Stick_Sample/EZDSP_Sample/../../../lib" -i"C:/Arquivos de programas/Texas Instruments/bios_5_41_02_14/packages/ti/rtdx/lib/c5500" -i"C:/Arquivos de programas/Texas Instruments/bios_5_41_02_14/packages/ti/bios/lib" -i"C:/USBSTK5515_demo/source/USB_Stick_Sample/EZDSP_Sample" -i"C:/CCSTUD~1.3/C5500/csl/lib" --reread_libs --entry_point=reset_isr --rom_model --sys_stacksize=1000

     

    C5500 Compiler of USB

    -vcpu:3.3 -g --define="_DEBUG" --define="C55X" --include_path="C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="C:/USBSTK5515_demo/source/USB_Stick_Sample/inc" --diag_warning=225 --ptrdiff_size=32 --algebraic --memory_model=large --asm_source=algebraic

     

    C5500 Linker of USB

    -z -m"usb.map" --stack_size=1000 --warn_sections -i"C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"C:/Arquivos de programas/Texas Instruments/ccsv4/tools/compiler/c5500/include" --reread_libs --entry_point=reset_isr --rom_model --sys_stacksize=1000

     

    Unfortunately the problem still, no error occurring during the compilation and it runs (Debug windows) without problem, but after flash the memory the program does not work and the memory is corrupted.

     

    Please, could you have any suggestion about this issue?

     

    Thanks.

     

    Regards,

     

    Andrea

     

    PS: I am very worried about the possibility of damage the kit because I short two data lines at boot time trying make the memory works again.

     

  • Hi Hyun, how are you?

     

    Sorry, I imagine that you have a lot of things to do but did you have time to analyze the new information sent on Aug 15 2010? What do you think about the person of Spectrum Digital that elaborated the EZDSP_Sample help me? It is possible?

     

    Many thanks,

     

    Andrea