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.

6748 problem occur.

Hi, I have several questions. I tried to use the EEPROM by SPI1. I dont use BIOS or any other library and use XDS100 V2 on CCS4.

 

I've defined the variable, EEP_Test_Go that is used to switch the statements which the values are controlled by only watch in CCS4. But EEP_Test_Go changed a garbage value that is always 0x01E26090. Furthermore, I found EEP_Test_Go and A4 in Core Registers linked each other (meaning the EEP_Test_Go and A4 value is identical).

Question 1 : Why EEP_Test_Go and any other variables are changed during DSP run?

Question 2 : What is A and B registers? I can not find these registers in 6748's data sheet.

Source is below; 

 

 

 

main(void)

{

while(1)

{

switch(EEP_Test_Go)

{

case 1 :

EEP_Test_Go = SPI1_EEP_WREN();

break;

case 2 :

EEP_Test_Go = SPI1_EEP_RDSR();

break;

case 3 :

EEP_Test_Go = SPI1_EEP_MFID();

break;

case 4 :

EEP_Test_Go = SPI1_EEP_WRSR();

break;

default :

EEP_Test_Go = 0;

break;

}

}

}

 

 

Thank you.

  • Which board are you using for your C6748?

    pilhwan doe said:
    Question 1 : Why EEP_Test_Go and any other variables are changed during DSP run?

    Your program snippet above shows that you intend to change EEP_Test_Go, so this is expected behavior.

    pilhwan doe said:
    Question 2 : What is A and B registers? I can not find these registers in 6748's data sheet.

    If you intend to write programs in C and avoid the assembly language of the C6748's DSP core, you will not need to know anything about these registers. In fact, I am surprised that you were viewing the Core Registers. To learn about the CPU in greater detail (recommended for advanced users), please read the CPU and Instruction Set Reference Guide and the DSP Megamodule Reference Guide.

  • Thank you, RandyP.

    I understand because of your answer #1. So, I changing the EEP_Test_Go value in timer interrupt service routine, then DSP operate very well. 

    In addition, I decide to neglect the A and B registers.  :-)

    In fact, I'm not American. And I have limited English skills. Therefore, C6748 is very hard to me.

    nyway, thank you RandyP again.