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.

Problem with C6A8168 EVM when loading the DSP with Hello World program.

Other Parts Discussed in Thread: SYSBIOS

Hi,

I am using CCS V5.1 to test run my C6A8168 EVM board. I compiled the example program "Hello World" and tried to load it into C674x DSP. The error message is as follows:

C674X_0: Error connecting to the target: (Error -1180 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.353.0)

How do i lift the DSP out of reset so that I can load my program into it? 

The entire directory is zipped as attachment here. The board info is Spectrum Digital 816X/389X DDR2 EVM, ASSY 513830 Rev C.

Thanks,

Zhao

1207.DSP_sysbios_Hello_example.zip

 

 

  • I believe that you need to do some additional initialization to pull the DSP out of reset. There should be a GEL function (called from the 'Scripts' menu of CCS) to do this defined in the GEL startup script for the A8 your device. Are you doing this step?

    Thanks

    ki

  • Hi Ki,

    My CCS Scripts menu is grayed out, there is no initialization script in the target configuration either. Can you please help me with the proper initialization script for C674x DSP in the C6A8168 processor? Or please tell me where to find the GEL scripts.

    Thanks,

    Zhao

  • if you see any reset buttons on the board (it might be a number of three) then try pressing them and remember which one resolved the problem for you.

  • Hi Ki,

    I must have done something wrong. I could not get the C674x connected by following the steps in the wiki link. In step 2, what do you mean by "

    2.Launch debug session with this configuration. Once you see the emulator connection. You can connect to the cortex-A8. ". Can I launch debug session without loading the .out file? I always hit the green bug icon to start my debug session, is this right?  Any way, I could start my ARM Hello World program and then load the GEL file and finish step 4. Then it comes the error message, I could not proceed with step 5.

    CortexA8: Output: PRCM for C674x is in Progress, Please wait.....

    CortexA8: Trouble Writing Memory Block at 0x48140650 on Page 0 of Length 0x4: (Error -1065 @ 0x48140650) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Release 5.0.353.0)

    C674x() cannot be evaluated.

    The snapshot is below:

     

     Thanks,

    Zhao

     

  • Zhao Li said:
    Can I launch debug session without loading the .out file? I always hit the green bug icon to start my debug session, is this right?

    You can launch a 'project-less' debug session. One way to do that is from the target configuration view. Slide 38 of: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/workshops/CCSv5/CCSv5_AdvancedWorkshop.pdf has an example of this.

    Can you try connecting to the A8 first? I usually do that before running the GEL function.

  • Hi Ki,

    I forgot to mention that I had to stop the EVM board from booting Linux from the SD card. I simply typed a key to stop that booting. If i let the linux to boot up, then i will not be able to load the ARM with my program. It was even worse if I let the Linux started.

    I am not sure what state the board should be when trying to connect to the DSP.

    Thanks for your help

    Zhao

  • Zhao Li said:
    I forgot to mention that I had to stop the EVM board from booting Linux from the SD card.

    hmmm... then you should not be using any GEL files. That reinitialization can screw up the environment. The target initialization should be already done by the boot loader

    Zhao Li said:
    I am not sure what state the board should be when trying to connect to the DSP.

    what exactly are you trying to do? If you want to run some simple hello world on the DSP, I would not boot from the card.

     

  • I am trying to run the "Hello World" example on the DSP.

    Once I have this simple program done, i would like to try Inter Processor Communication (IPC) messageQ example that bounce messages between ARM and DSP. This is my goal.

    I was able to run "Hello World" example on ARM Cortex A8. But somehow the DSP is in reset, it prevented me from talking to it.

    Thanks,

    Zhao

  • ARM is probably the master in your boot setup and DSP is probably a slave that only starts up when ARM does request it.