Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
Hi all. I am trying to run a c-code in CCS3.1, on the c64xx CPU cycle accurate simulator. At a pont I get the following error message: Trouble running Target CPU: *** Runtime error at PC = 00000008 Resource(s) D Unit/Read Port, D Unit Write Port on side A in conflict in E1 phase. Ref SPRU189F Sec 3.7, Sec 5.6 Stepping through the code in disassembly mode I found that the problem occured at the below 3 lines of code. As far as I can figure out the problem comes from the parallel execution of line 1 and 3 below, as both lines load from the A0 register. 00000004 00000027 LDB.D1T2 *-A0[0x0],B0 00000008 ___edata__, edata, ___data__, .data: 00000008 00000025 || LDB.D1T1 *-A0[0x0],A0 The asm code is generated from my c-code, and I find it strange if incorrect code is generated...but if that is the case, is there any way to edit the assembler code within CCS? Best regards, Esben.
esben, --- s...@hotmail.com wrote: > Hi all. > > I am trying to run a c-code in CCS3.1, on the c64xx > CPU cycle accurate simulator. At a pont I get the > following error message: > > Trouble running Target CPU: *** Runtime error at PC > = 00000008 Resource(s) D Unit/Read Port, D Unit > Write Port on side A in conflict in E1 phase. Ref > SPRU189F Sec 3.7, Sec 5.6 > > Stepping through the code in disassembly mode I > found that the problem occured at the below 3 lines > of code. As far as I can figure out the problem > comes from the parallel execution of line 1 and 3 > below, as both lines load from the A0 register. > > 00000004 00000027 LDB.D1T2 > *-A0[0x0],B0 > 00000008 ___edata__, edata, ___data__, > .data: > 00000008 00000025 || LDB.D1T1 > *-A0[0x0],A0 > > The asm code is generated from my c-code, and I find > it strange if incorrect code is generated...but if > that is the case, is there any way to edit the > assembler code within CCS? I think the problem is that you are executing data - not code. Your problem occurred sometime previous to this. 1. Did you ever execute any valid C code?? 2. After you load your program, where is the PC [at what label]?? 3. Can you perform a 'debug->go main' with out 'getting lost'?? 4. Have you successfully run 'hello world' on the simulator?? or any other 'simple program'?? mikedunn > > Best regards, Esben. > > c...@yahoogroups.com > >