Page 1 of 1

Runtime warning.

PostPosted: Wed May 07, 2014 11:42 pm
by yorkshiretyke
I have been following the "Simple Installation Process" in the Pi Co-op manual to setup a working Raspberry Pi system. I am using a 32GB SD card setup with NOOBS 1.3.5 (ie. Raspbian 7.5), installed Arduino IDE version 1.0.1. I have selected the "blink" sketch and tried to upload it to the Pi_Co-op board, however I get the error message:-

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Binary sketch size: 1,072 bytes (of a 32,256 byte maximum)
done with autoreset
avrdude-original: stk500_recv(): programmer is not responding


I then pressed the reset button on the Pi_Co-op board (as suggested by the Trouble shooting guide); I then edited the Blink sketch to write to the Serial Monitor and uploaded this modified version only to get this message:-

Binary sketch size: 2,432 bytes (of a 32,256 byte maximum)
/usr/bin/autoreset:21: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup( pin, GPIO.OUT )
done with autoreset


The messages sent to the Serial Monitor are being displayed.

Any suggestions on how to fix these errors?

Re: Runtime warning.

PostPosted: Thu May 08, 2014 8:55 pm
by Alan
Hi there,

The first warning seems to be an occasional bug which I think is due to a timing issue when sending a reset to the Pi Co-op. Please let me know if you see it a lot.

The second warning is fairly harmless (at this point the blink sketch should have been uploaded, did you see this?). The warning happens because there wasn't a call to GPIO cleanup at the end of the auto reset script. I've uploaded a fix to try and get rid of this warning, if you've got the time, could you please try it by running

Code: Select all
cd pi_co-op
git pull
sudo python  setup_pi_co-op.py uninstall
sudo python  setup_pi_co-op.py install


Regards

Alan

Re: Runtime warning.

PostPosted: Fri May 09, 2014 7:45 am
by yorkshiretyke
Hello Alan,

Thank you for your response.

I'll keep an eye out for the re-appearence of the first warning.

I have installed your modified software as suggested, and I now do not see the second warning.

Perhaps the Pi Co-op manual should be modified to say that after a sketch is uploaded expect to see the message "done with autoreset".

I'll now try and get my head arround using "Firmata".

This board is certainly a lot easier to setup and use when compared with the GertDuino.

regards Galen