Runtime warning.

Questions and discussions about our Arduino add-on board for the Raspberry Pi

Runtime warning.

Postby yorkshiretyke » Wed May 07, 2014 11:42 pm

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?
yorkshiretyke
 
Posts: 2
Joined: Wed May 07, 2014 10:55 pm

Re: Runtime warning.

Postby Alan » Thu May 08, 2014 8:55 pm

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
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: Runtime warning.

Postby yorkshiretyke » Fri May 09, 2014 7:45 am

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
yorkshiretyke
 
Posts: 2
Joined: Wed May 07, 2014 10:55 pm


Return to Pi Co-op

Who is online

Users browsing this forum: No registered users and 0 guests