LWADC sample in MAC57D (Halo)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LWADC sample in MAC57D (Halo)

1,527 Views
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

Tags (3)
0 Kudos
3 Replies

1,120 Views
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 Kudos

1,259 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Oliver,

are you running the example with A5 or M4?

Carlos

0 Kudos

1,259 Views
OliverTian
NXP Employee
NXP Employee

Hi, Carlos

   It's on M4.

Oliver

0 Kudos