Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

honio
Posts: 2
Joined: Fri Feb 10, 2017 12:57 am

Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

Postby honio » Thu Feb 16, 2017 5:39 pm

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

ESP_Faye
Posts: 1573
Joined: Mon Oct 27, 2014 11:08 am

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

Postby ESP_Faye » Tue May 09, 2017 9:49 am

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 !

Who is online

Users browsing this forum: No registered users and 1 guest