Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
x.2 IDE & Generic 8bit Pinguinos Problem
24-03-2012, 09:03 PM, (This post was last modified: 25-03-2012, 07:10 PM by dip6.)
#1
x.2 IDE & Generic 8bit Pinguinos Problem
Hi,

I'm trying to write programs on my 8bit Pinguinos (generic 18F2550, generic 18F4550 and my new mm8) using the new IDE x.2 but I find it impossible. I can select the board and compile the code without problems, but the WRITE button (VascoBootloader window) do nothing... (no messages at all) and I have an error in the command window:

[Image: x2error.png]

Everything works fine with the IDE Beta 9-05 (same programs, same boards).

Pinguino: X.2 rev 305
Pinguino: Beta 9-05
OS: Windows 7 32b
Boards: Generic 18F2550, Generic 18F4550


Any clue?
Reply
25-03-2012, 08:20 PM,
#2
RE: x.2 IDE & Generic 8bit Pinguinos Problem
Did you take a look at pinguino.log ?
Are you sure that pyUSB is installed ?
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
25-03-2012, 10:29 PM, (This post was last modified: 25-03-2012, 10:30 PM by dip6.)
#3
RE: x.2 IDE & Generic 8bit Pinguinos Problem
(25-03-2012, 08:20 PM)regis Wrote: Did you take a look at pinguino.log ?

Yes:

Pinguino started at Sun Mar 25 22:22:48 2012

Python version is good (>=2.5)
System host is Windows
8-bit compiler OK.
32-bit compiler OK.
wx.python successfully loaded
wx.aui successfully loaded
Regex successfully loaded
Shutil successfully loaded
Subprocess successfully loaded
GetText successfully loaded
Locale successfully loaded
WebBrowser successfully loaded
Editeur successfully loaded
ArgParse successfully loaded
Pinguino Boards List successfully loaded

Everything is OK.


(25-03-2012, 08:20 PM)regis Wrote: Are you sure that pyUSB is installed ?

Yes:

*** Installation started 2012/01/10 20:43 ***
Source: C:\Data\electro\pinguino\phyton\pyusb (for phyton 2.6)\pyusb-0.4.3.win32-py2.6.exe
999 Root Key: HKEY_LOCAL_MACHINE
020 Reg DB Key: [Software\Microsoft\Windows\CurrentVersion\Uninstall]pyusb-py2.6
040 Reg DB Value: [Software\Microsoft\Windows\CurrentVersion\Uninstall\pyusb-py2.6]DisplayName=Python 2.6 pyusb-0.4.3
040 Reg DB Value: [Software\Microsoft\Windows\CurrentVersion\Uninstall\pyusb-py2.6]UninstallString="C:\Python26\Removepyusb.exe" -u "C:\Python26\pyusb-wininst.log"
200 File Copy: C:\Python26\Lib\site-packages\pytest.py
200 File Copy: C:\Python26\Lib\site-packages\pyusb-0.4.3-py2.6.egg-info
200 File Copy: C:\Python26\Lib\site-packages\usb.pyd
200 File Copy: C:\Python26\Lib\site-packages\pytest.pyc
200 File Copy: C:\Python26\Lib\site-packages\pytest.pyo


Huh
Reply
26-03-2012, 07:04 PM,
#4
RE: x.2 IDE & Generic 8bit Pinguinos Problem
My vascoboot1.3.py (svn trunk) here has
import usb
on line 34. It should already bail out there. But if the import works, then usb should be defined... strange.

@dip6 - could you look if there is an "import usb" in that file?
Reply
27-03-2012, 06:23 PM,
#5
RE: x.2 IDE & Generic 8bit Pinguinos Problem
(26-03-2012, 07:04 PM)bjoernp Wrote: @dip6 - could you look if there is an "import usb" in that file?

Hi bjoernp

Yes, here is:


import wx
import sys
import os
import usb
import time


Reply
01-04-2012, 12:00 PM,
#6
RE: x.2 IDE & Generic 8bit Pinguinos Problem
Hi dip6

Please refer to this link:
http://forum.pinguino.cc/showthread.php?tid=3161

If you use source code version of Pinguno and modify pinguino.py,
you may work it well.


avrin
Reply
05-04-2012, 11:12 AM, (This post was last modified: 05-04-2012, 11:13 AM by dip6.)
#7
RE: x.2 IDE & Generic 8bit Pinguinos Problem
(01-04-2012, 12:00 PM)avrin Wrote: If you use source code version of Pinguno and modify pinguino.py,
you may work it well.

Thank you avrin,

I tried adding 'import usb' statement but it did'nt work.

What I did then was:
  1. uninstall Pinguino X.2 (it was the 305 rev with auto setup from Google Code)
  2. install again manually Pinguino X.2 (from here)
  3. add 'import usb' statement in pinguinobetax2.py
  4. reinstall Phyton, wxPhyton, pySerial & pyUSB
Now it works!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)