Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18548

Re: a strange bug between "trace" and "ADC" in edison arduino

$
0
0

step1: modify main.cpp in arduino-1.5.3-Intel.1.0.4\hardware\arduino\edison\cores\arduino by adding trace_enable(0);


     TODO: derive trace level and optional IP from command line

     trace_init(VARIANT_TRACE_LEVEL, 0);

     trace_target_enable(TRACE_TARGET_UART);

     trace_enable(0);

 

step2, use the arduino IDE to upload adc examples such as example->basic->AnalogReadSerial

 

the ADC value is always 0.

=====================================================

or

step 1:modify main.cpp by changing the trace leval

     trace_init(TRACE_LEVEL_ERROR, 0);

     trace_target_enable(TRACE_TARGET_UART);

 

step 2: use the arduino IDE to upload AnalogReadSerial

 

the ADC value is always 0


Viewing all articles
Browse latest Browse all 18548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>