Page 1 of 1

Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

Posted: Thu Feb 16, 2017 5:39 pm
by honio
Hi,

i was using the ADC API from your SDK version 2.0.0(656edbf) (NONOS).
If i read the documentation and the .h file i see that the argument adc_num in:

Code: Select all

void   system_adc_read_fast   (uint16   *adc_addr,   uint16   adc_num,   uint8   
adc_clk_div)


is a 16bit unsigned integer. Interestingly it behaves though like a uchar8 parameter. From 1 to 255 the
function works propperly and gives the correct results. Whenever i set the parameter higher than 255 the function
stays in a endless loop and the system restarts with the watchdog.
Could you please check and give a patch for the adc_num limitation of 255?

Thanks

Re: Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

Posted: Tue May 09, 2017 9:49 am
by ESP_Faye
Hi,

Please have a try with the latest ESP8266_NONOS_SDK_V2.1.

If your problem is still unsolved, please feel free to let us know.

Thanks for your interest in ESP8266 !