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.