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.

f2812 trap

hello....

we are  using tms320lf2812 for last 3to4 years.right now we have a problem while downloading.

while debugging ,dsp is programmed  successfully.output clk is ok .the problem is that while we run the program in debudding mode,dsp goes into trap while executing disassembly.so dsp does not out data and addresss.

  • You will need to provide more information than that - i.e. code snippets, what the DSP is doing when it goes into a TRAP, recent code/hw changes - anything relevant.

    Also, have a read of the section on this page in the wiki labelled "How to debug an ITRAP". 

    http://processors.wiki.ti.com/index.php/Interrupt_FAQ_for_C2000

    Find the return address and attempt to locate any causes.  If you can't see any post the code (where the return address) and as much information as you can and someone may be able to help you.

    Tim

  • helllo...     

                    we have interfaced ram ds1258w (100ns  read/write access time)with dsp2812 via cold and 245 latch.right now we want to use a different ram MR0A1AYSs35(35ns)

    the problem we r facing are with both of these ram.is it neccessory to to have a read and write access time in lead,active and trail cycle to be less than 100ns(ds1258w) or 35 ns(mr0a16ays35)

                    in debug mode,when we run a code

                     it start at

                    3D8000  28AD  mov @sp,#0X8000

                    when we halt the program it stops at

                    3FFC00 28AD    mov @sp,#0X0400

                     then after reset program comes at

                     3FFC00 28AD    mov @sp,#0X0400

    now when we go step by step execution it goes into infinite loop in memcpy instrunction.

     it also sometimes stops at  0002A8 0008 BANZ 0,AR--

  • If you slow down the XINTF accesses does the issue go away?

    -Lori

  • no......

    with ds1258w ram

    we have

    WRLEAD=6*XTIMCLK=XRDLEAD

    WRACTIVE=14*XTIMCLK=XRDACTIVE

    WRTRAIL=6*XTIMCLK=XRDTRAIL

    THIS CONFIGURATION IS WORKING WITH DS1258 RAM AND SYSTEM IS RUNNING.SOMETIMES IT HAS PROBLEM.

    BUT WITH MR0A16AYS35 WE NEVER SUCCEED.

    AFTER DISCONNECTING RAM DSP GOES IN TRAP EVERYTIME.

     

  •  

    hello...

    the other thing we observed is that as soon as we run the code output frequency disappears.

    we cannot decide wether output clock goes first or program goes in to trap first.

     

  • What are you using the external RAM for?  Data or code or both?

    Tim