Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] I can only upload a program once with Pinguino4550
14-01-2014, 07:23 AM, (This post was last modified: 15-01-2014, 02:43 AM by matiaslang.)
#1
[SOLVED] I can only upload a program once with Pinguino4550
Hi, i made a Pinguino with a PIC18F4550 and i could upload a blink onto it, but when I try to reupload it or upload another program i get this error:

[sh4r3m4n@sh4r3m4n-net x.4]$ sudo ./pinguino.py -P -ul -f
examples/01.Basics/Blink/Blink.pde

(process:1381): Gdk-WARNING **: locale not supported by C library

(process:1381): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Board: Pinguino 4550
Proc.: 18f4550
File : examples/01.Basics/Blink/Blink.pde
preprocessing ...
compiling ...
linking ...
compilation done
code size: 3064 / 24575 bytes (12% used)
Uploading...
Pinguino found
Traceback (most recent call last):
File "./pinguino.py", line 197, in <module>
pobject.OnUpload(path=filename)
File "/home/sh4r3m4n/pinguino/x.4/wxgui/pinguino.py", line 297, in OnUpload
u = Uploader(self.displaymsg, filename, self.curBoard)
File "/home/sh4r3m4n/pinguino/x.4/wxgui/uploader/uploader.py", line
101, in __init__
curUploader.writeHex()
File "/home/sh4r3m4n/pinguino/x.4/wxgui/uploader/uploaderVSC.py",
line 273, in writeHex
self.handle = self.initDevice()
File "/home/sh4r3m4n/pinguino/x.4/wxgui/uploader/uploaderVSC.py",
line 80, in initDevice
handle.setConfiguration(self.VSC_ACTIVE_CONFIG)
usb.USBError: Numerical result out of range

I tried with bootloaders 2.12, 4.8 and 4.12 and with different PICs and boards and I get the same error. The only way to solve it is erasing all data with a PIC programmer and programming the bootloader again (also I can't get ICSP work so I have to remove an plug the PIC many times).
I hope you to help me if it isn't a problem.

PD: Sorry for the english Wink
Reply
14-01-2014, 01:40 PM,
#2
RE: I can only upload a program once with Pinguino4550
Are you sure you selected the right board with the right bootloader version in the Board Selector Menu ? The detection is not yet automatically done so you have to tell it to the IDE.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
15-01-2014, 12:57 AM,
#3
RE: I can only upload a program once with Pinguino4550
(14-01-2014, 01:40 PM)regis Wrote: Are you sure you selected the right board with the right bootloader version in the Board Selector Menu ? The detection is not yet automatically done so you have to tell it to the IDE.

Yes, after reprograming the PIC i can upload something but only once, after ir i can't and i have to reprogram the PIC again via serial port
Reply
15-01-2014, 02:46 AM,
#4
RE: [SOLVED] I can only upload a program once with Pinguino4550
I figured out i had to press the reset button before uploading to don't get any errors, so the problem was main. I updated the wiki and explained it. Developers (i have not access to the source code) should handle this exception and print something like 'Pinguino not in bootloader mode' to avoid confussions.
Reply
15-01-2014, 09:33 AM,
#5
RE: [SOLVED] I can only upload a program once with Pinguino4550
Something like this ?
   
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
17-01-2014, 06:23 PM,
#6
RE: [SOLVED] I can only upload a program once with Pinguino4550
(15-01-2014, 09:33 AM)regis Wrote: Something like this ?

Sometimes it say Pinguino found in the IDE and it doesn't do anything, but when i try to run pinguino.py from the command line it shows the error i posted and might be confused.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)