MQX 3.8 - twrk60n512 - ADC Bug

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

MQX 3.8 - twrk60n512 - ADC Bug

428 Views
bob_grice
Contributor I

I believe that there is a bug in adt_period_prescaler in $MQX$/source/io/adc/kadc

 

The statement at line 370 :

 pdb_external.prescaler = (int_8) pdb_prescaler;

 

uses pdb_prescaler which is not initialised unless the code has previously gone through the 'if' block starting at line 291 (i.e. on the second and subsequent calls to the function the variable is not initialised). This in turn can cause ADC_ERROR_BAD_PARAM to be returned as it corrupts pdb_external.prescaler in later calls to the function (in the else case).

 

I believe the line should be moved to the end of the 'if' block

0 Kudos
2 Replies

216 Views
DavidS
NXP Employee
NXP Employee

Hi Bob,

Good catch.

This has been fixed and will be release next month in the MQX3.8.1 release June 15th target date.

Thank you,

David

0 Kudos

216 Views
Teckna
Contributor V

Is there any news about MQX 3.8.1?

 

Teckna

0 Kudos