SSI_LDD clock bug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SSI_LDD clock bug

跳至解决方案
1,221 次查看
bowerymarc
Contributor V

Setting the "Master Clock" to "Input Pin" in SSI_LDD results in this code in Audio0_Init (default name):

  /* I2S0_MCR: MOE=0 */

  I2S0_MCR &= (uint32_t)~(uint32_t)(I2S_MCR_MOE_MASK); /* Disable MCLK divider */

  while ((I2S0_MCR & I2S_MCR_MOE_MASK) != 0U) {} /* Wait for MCLK disable*/

  /* I2S0_MDR: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,FRACT=0,DIVIDE=0xF9 */

  I2S0_MDR = (I2S_MDR_FRACT(0x00) | I2S_MDR_DIVIDE(0xF9)); /* Configure Mclk divide ratio */

  /* I2S0_MCR: DUF=0,MOE=1,??=0,??=0,??=0,??=0,MICS=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */

  I2S0_MCR = (I2S_MCR_MOE_MASK | I2S_MCR_MICS(0x00)); /* Configure Mclk source */


Last line: MOE is set, making the MCLK line an output.


标签 (1)
标记 (4)
0 项奖励
回复
1 解答
1,043 次查看
vfilip
NXP Employee
NXP Employee

Hello,

thanks for reporting this bug to us. We will fix it for next release (I am not sure about CW V10.6 because we are close to this release. However this fix is going to be part of DriverSuite 10.4).

Best regards

Vojtech Filip

Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,044 次查看
vfilip
NXP Employee
NXP Employee

Hello,

thanks for reporting this bug to us. We will fix it for next release (I am not sure about CW V10.6 because we are close to this release. However this fix is going to be part of DriverSuite 10.4).

Best regards

Vojtech Filip

Processor Expert Support Team

0 项奖励
回复
1,043 次查看
bowerymarc
Contributor V

any workaround?

0 项奖励
回复
1,043 次查看
vfilip
NXP Employee
NXP Employee

Hello,

sorry I have omitted that. I think there are two possible ways how to workaround it. Either freeze generated code of this component by right click on component and use "Dont Write...." menu command or write the correct value into I2S0_MCR just after calling initialization method.

I2S0_MCR = I2S_MCR_MICS(0x00);       /* Configure Mclk source */

Best regards

Vojtech Filip

Processor Expert Support Team

0 项奖励
回复