LWADC sample in MAC57D (Halo)

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

LWADC sample in MAC57D (Halo)

3,074 次查看
OliverTian
NXP Employee
NXP Employee

Hi, 

   I tried the LWADC project under MAC57D(Halo) BSP, based on MQX4.2 which is released on website.

   It could be compiled and downloaded. After run, the code is stalled at

  '     while ((adc_ptr->MSR & ADC_MSR_ADCSTATUS_MASK) != ADC_MSR_ADCSTATUS_IDLE) {};'

 in 'static void _lwadc_restart(ADC_CONTEXT_PTR context_ptr)' function.

 

1.png

I checked the MSR and it's 0x5 which is out of specification.

Can you check which should be modified in the BSP to run it correctly?

Thanks

Oliver

标记 (3)
0 项奖励
回复
3 回复数

2,667 次查看
johnkevintoral
Contributor II

Hi Carlos and Oliver, 

Have you guys solved the problem? I had same experience with the M4 but the A5 works well. A5 core reads the potentiometer on the eval board well and other Potentiometer attached to other channels. 

But the M4 cannot go idle and satisfy the conditon above so it stays on loop regardless on which ADC channels it reads.

Best regards

Kevin

0 项奖励
回复

2,806 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Oliver,

are you running the example with A5 or M4?

Carlos

0 项奖励
回复

2,806 次查看
OliverTian
NXP Employee
NXP Employee

Hi, Carlos

   It's on M4.

Oliver

0 项奖励
回复