我用 pure path studion 调试3254EVK的时候出现这个问题, Error: MiniDSP failed to change adaptive buffer, pending bit remains set, reset target.
如何解决?
2 我参考TI给的驱动,写了算法模块的控制函数,但是出现了以下问题, 读写都正常,就是数据不生效,如何解决?
void ModuleLoadBa(uint8_t ModuleADDR ,uint8_t I2CPageADDR,uint8_t *ModuleCoeffs,uint8_t ByteCount)
{
uint8_t ReadRegTmp[1];
int i=0;
for(i=0;i<2;i++)
{
NUC123_I2C_ReadOneByte(AIC3254, 0x00,ReadRegTmp);
if(ReadRegTmp[0] == I2CPageADDR)
break;
}
NUC123_I2C_WriteOneByte(AIC3254, 0x00,I2CPageADDR);
NUC123_I2C_WriteMultBytes(AIC3254,ModuleADDR,ModuleCoeffs,ByteCount);
NUC123_I2C_ReadOneByte(AIC3254, 0x00,ReadRegTmp);
if(ReadRegTmp[0]==I2CPageADDR)
NUC123_I2C_WriteOneByte(AIC3254, 0x00,0x00);
NUC123_I2C_ReadOneByte(AIC3254, 0x7F,ReadRegTmp);
printf("-------------------------------------------------------------\n");
NUC123_I2C_WriteOneByte(AIC3254, 0x00,0x2c);
NUC123_I2C_ReadOneByte(AIC3254, 0x01,ReadRegTmp);
ReadRegTmp[0] |= 0x01;
NUC123_I2C_WriteOneByte(AIC3254, 0x01, (unsigned char)ReadRegTmp[0]);
NUC123_I2C_ReadOneByte(AIC3254, 0x01,ReadRegTmp);
printf("-------------------------------------------------------------\n");
NUC123_I2C_WriteOneByte(AIC3254, 0x00,I2CPageADDR);
NUC123_I2C_WriteMultBytes(AIC3254,ModuleADDR,ModuleCoeffs,ByteCount);
}
其中AIC3254_x618.7z 有pps 工程。
Dsp3254.7z 有对这个工程的加载和参数控制。