Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Discussion Groups

Discussion Groups | TMS320C6x | Editing asm-code.

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

Editing asm-code. - snar...@hotmail.com - Apr 3 8:01:25 2006



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.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Editing asm-code. - Mike Dunn - Apr 3 11:46:59 2006

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
> 
>



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )