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.

code generated for C6743 has problems

Other Parts Discussed in Thread: TEST2

Hello

 

I have a board that uses a C6743 and i'm presented with a strange isssue.

I declare the following code:

unsigned short test2 = 0x5678;

void main( void )
{
    static unsigned short test1 = 0x1234;
       
    system.fwVersion[0] = test1 + test2;
   
    return;
}

And when i start the debug session the value that i read for test1 and test2 in memory is wrong.

To further debug the problem i ran the same code, with the same .gel file on the omap-l137EVM and the variables present the correct values.

I'm using CCS4.1, code generation tools v6.1.12, DSPBIOS 5.41.

 

Is there any specific step i need to take to get the code in the C6743 to work?

Because in the C6747 the code runs fine...

 

Thanks in advance,

Sergio Martins

 

  • Hi Sergio,

    Is the code all in internal memory? If part if the code is in external memory, it could be some problem with your board interface to the memory. If that is the case I would suggest you to put all the code in internal memory and see if the procedure is the same.

    Make sure your emulation connection is working fine.If it isl all in internal memory, you should not need to change anything, specially for a simple code like yours that does not seem to touch any peripherals. Is that all the code? What type is system.fwVersion[0]?

    Another thing that I can think of is for you to make sure your emulation connection is working fine.

     

     

  • It was a problem with the sdram interface.

    The DQM lines were exchanged which meant the 16-bit accesses were all fine and the 8-bit ones had incoerent data.

    Thanks anyway