ESP8266 Developer Zone The Official ESP8266 Forum 2017-05-09T09:49:13+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=3356 2017-05-09T09:49:13+08:00 2017-05-09T09:49:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3356&p=12913#p12913 <![CDATA[Re: Bug in system_adc_read_fast SDK version 2.0.0(656edbf)]]>
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 !

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


]]>
2017-02-16T17:39:10+08:00 2017-02-16T17:39:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3356&p=11327#p11327 <![CDATA[Bug in system_adc_read_fast SDK version 2.0.0(656edbf)]]>
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:

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

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


]]>