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.

XINTF in 28335



Hi every boady,

I wrote a program that works with XINTF in the 28335 ezdsp starter kit.

I  configure XINTF to use SARAM in Zone7 without USEREADY signal.

I define an array in XZone7.

I  write in the array order number:"array[i]=i" that i increase  in for loop

But when  I run and emulate my program,My array don't change correct.

First index of array is 0 second is 1 ...but in 6 or 7 it change suddenly and the 1th to 4th index is changed.

I don't know why.

can every boady help me.

thanks.

  • Ali Karbasi said:

    Hi every boady,

    I wrote a program that works with XINTF in the 28335 ezdsp starter kit.

    I  configure XINTF to use SARAM in Zone7 without USEREADY signal.

    I define an array in XZone7.

    I  write in the array order number:"array[i]=i" that i increase  in for loop

    But when  I run and emulate my program,My array don't change correct.

    First index of array is 0 second is 1 ...but in 6 or 7 it change suddenly and the 1th to 4th index is changed.

    I don't know why.

    can every boady help me.

    thanks.

    Ali,

    Is this a eZdsp with a socket?  I've seen the device on that board not be seated properly.  Sometimes it just requires a check to see if it is in the socket nicely and making good contact. 

    If there is a pattern to the errors then it will help debug - what data was written vs what data was seen?  It could be the XINTF is configured for x32 data lines, but the eZdsp hardware uses only 16-data lines, for example.

    Regards,

    Lori

     

  • Hi lori,

    I thout like you that DSP isn't seated on the board properly but I cheked it and it seated on the board properly.

    I checked configure of XINTF and it's correct.I don't khonw what is the problem.some times it works properly and the most of times it doesen't work.when I debug it step by step, in the 5th or 6th data it is destroied.I guess maybe the pointer to that aadress is changed but I cant find any pointer.I think the address is changed but for what I don't khonw.

    thanks alot for your suggestion.

    If you findout any soloution please tell me. my email is AKARBASI63@gmail.com

    with best regards.

    ali

  • I guess u might not define ur array in ZONE7 properly.

    If you want to access SRAM with XINTF, using pointer rather than array to access.

    for example,

    #define Tzone7 0x123456 (this address needs to be consisitent with ZONE7 mapping in Delfino)

    volatile float *ptrArray;

    void main()

    {

        ptrArray=(float *)Tzone7;

        ...................

    }

     

    And then play with your array with graphic tool. This can run in 2812 ezDSP or customized target board properly either with 16 or 32 bit data. I believe it would be able to work on Delfino as well.

  • Hi Yu Cai,

    I chacked pointer and it had problem too.

    I don't know why address changed?

    I never changed address in program but it changed itself.the pointer and it's content is true but previous address that pointer pointed them are changed suddnly.

    thanks for your answer.

    with best regards

    Ali