[En-Nut-Discussion] No A to D in V5.05

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Feb 6 18:09:46 CET 2013


>>>>> "Robert" == Robert von Knobloch <bob at engelking.de> writes:

    Robert> Hi, I have had to revive a project that was done in Ethernut
    Robert> 4.3.3.  I am using Ethernut 5.05 toolchain on Debian 6.0.6 now
    Robert> (in VirtualBox).  I appreciate that GCC may have changed in this
    Robert> timeframe, but I don't think this is my problem.

    Robert> The problem is that ADCRead(*uint16_t destination) seems to put
    Robert> 0 in the destination, where it got the value correctly in 4.3.3.
    Robert> My relevant code is:

    Robert> uint16_t adcval_u[NO_OF_RAILS]; // Values read from 'U-soll'
    Robert> analogue switch

    Robert> for (valcount = 0; valcount < NO_OF_RAILS; valcount++ ) { [Set
    Robert> up some io ports here] ADCSetChannel(ADC0); ADCBufferFlush();
    Robert> ADCStartLowNoiseConversion(); while
    Robert> (ADCRead(&adcval_u[valcount])) NutThreadYield(); // Wait for A-D
    Robert> Conversion }


    Robert> Has something changed that I need to be aware of?

Be more verbose, at least what architecture and what board.
Did you have a look in the SVN log about something suspicious? Soem
regession testing?

Bye 
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list