AnsweredAssumed Answered

Sharc memory access using Index Register

Question asked by gopakumar on Apr 29, 2010
Latest reply on Apr 30, 2010 by gopakumar

I have an issue while trying to access the Sharc memory using the index register in this particular way.


.section/dm seg_dmda;

 

.var Test[2] = 100, 200;

 

.endseg;


.section/pm seg_pmco;


     i7 = 0;

     r1 = dm(Test,i7);

     i7 = 1;

     r2 = dm(Test,i7);

 

.endseg;

 

 

The above code works fine on the simulator. But it does not work, while connected to the dsp.

( I think the above code was working on the old 21065L Sharc processor, but not on the later SHARC's. )

 

I would be really thankful if anybody could explain why this is happening.

I would also like to know why this code is working on the simulator but not on the dsp.

 

Thanks,

 

Gopakumar

Outcomes