Hi TJF,
No errors. Warnings when compiling with g++ all similar to each other:*
testRB.c:28:61: warning: ISO C++ forbids converting a string constant to
‘char*’ [-Wwrite-strings]*
* if (pruio_rb_start(io)) {emsg = "rb_start"; i
= 4; break;*
no warnings, nor errors when compiling with gcc.
io Esize = 8388608
But the output still has the same problem. About 9 bits get converted but
the least significant last three bits stay at 111(7).
Oh, and the loop goes on. The problem is not there.
Sampling 100 times slower, delay to the maximum and short buffer:
pruIo *io = pruio_new(PRUIO_DEF_ACTIVE, 4, 0x98, 0);
while (!io->Errr) {
if (pruio_adc_setStep(io, 7, 0, 1, 255, 0)) {emsg = "step 7"; i = 2;
break;} //Step 7, AIN-0
if (pruio_adc_setStep(io, 8, 1, 1, 255, 0)) {emsg = "step 8"; i = 2;
break;} //Step 8, AIN-1
if (pruio_adc_setStep(io, 9, 2, 1, 255, 0)) {emsg = "step 9"; i = 2;
break;} //Step 9, AIN-2
if (pruio_adc_setStep(io, 10, 3, 1, 255, 0)) {emsg = "step 10"; i = 2;
break;} //Step 10, AIN-3
if (pruio_adc_setStep(io, 11, 4, 1, 255, 0)) {emsg = "step 11"; i = 2;
break;} //Step 11, AIN-4
if (pruio_adc_setStep(io, 12, 5, 1, 255, 0)) {emsg = "step 12"; i = 2;
break;} //Step 12, AIN-5
if (pruio_adc_setStep(io, 13, 6, 1, 255, 0)) {emsg = "step 13"; i = 2;
break;} //Step 13, AIN-6
if (pruio_adc_setStep(io, 14, 7, 1, 255, 0)) {emsg = "step 14"; i = 2;
break;} //Step 14, AIN-7
// upload settings, prepare MM mode
if (pruio_config(io, 2205, 255<<7, 4535200, 0)) {emsg = "config"; i =
3; break;}
No difference either.
initialized, io size = 8388608
F88 F3 8CF 7 F3 23 1 67
ABF CF 5AB F 7F 27 3 6F
7FF AF 3FF 17 63 2F 7 77
64F 9F 35F 17 5F 2F B 77
537 8F 317 17 5F 2F F 7F
48F 7F 2FF 1F 67 37 F 7F
427 7F 2F7 1F 67 37 F 7F
3EF 7F 2EF 1F 67 37 17 7F
3CF 7F 2EF 1F 67 37 F 7F
3BF 7F 2EF 1F 67 37 17 7F
3BF 7F 2F7 1F 67 37 17 7F
3B7 7F 2EF 1F 67 37 17 7F
3AF 7F 2EF 1F 67 37 17 7F
3AF 7F 2EF 1F 67 37 17 7F
Best, Hans.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/fbfc6ac9-ece7-41c9-b804-63996a98ab39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.