Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows7 cant detect PIC32 Pinguino-OTG board
22-12-2011, 04:49 PM,
#1
Windows7 cant detect PIC32 Pinguino-OTG board
Have an OLIMEX PIC32-PINGUINO-OTG board and trying to get it to run. I installed the IDE and the LIBUSB0 and downloaded the driver but when I plug the board into windows7 64 bit PC via USB, the PC never detects the board to allow me to install the the driver. Control Panel/Device manager never shows up the PINGUINO Project.

When the board is plugged in, red led is on and the green is blinking (about 2 HZ). I have tried various USB cabes and ports but no luck in the computer detecting the board

When I try to comple the BLINK example I get the following error.

Board: PIC32 Pinguino OTG
Proc: 32MX440F256H
/bin/sh: -c: line 2: syntax error: unexpected end of file
error while linking D:\penguino\source\Blink.o

I am new to penguino but not to micros as I have written firmware mainly in assembler previously. I wanted to get into C so thought I would play with this...but having trouble just getting it to comple and detect the board.
Any help is greatly appreciated. Merry Christmas to all.

Reply
22-12-2011, 08:00 PM, (This post was last modified: 22-12-2011, 08:01 PM by pingotg.)
#2
RE: Windows7 cant detect PIC32 Pinguino-OTG board
You need the board in bootloader mode.

You haven't reset it with both buttons pressed properly. I think it's omitted from the User Manual! When you do, you'll get the green & yellow flashing alternately. At that time it's in bootloader mode and that means it has a special USB endpoint which can be used for reflashing.

John
Reply
23-12-2011, 03:20 AM,
#3
RE: Windows7 cant detect PIC32 Pinguino-OTG board
Thank you for your reply.

I put it into boot mode and it did detect the device and said it was instralled and ready to use. I could still not compile the Blink example as it would come up with the same error.

Board: PIC32 Pinguino OTG
Proc: 32MX440F256H
/bin/sh: -c: line 2: syntax error: unexpected end of file
error while linking D:\penguino\source\Blink.o

I installed the Python , WXpython and PYUSB but still comes up with the same error when compiling. I tried other examples and still the same error.

Looking in the control panel/device manager, I still cant see it in the list. I tried other USB and it detects it but not obvious it is in the list.

Any help is appreciated. Thanks
Reply
23-12-2011, 08:53 AM,
#4
RE: Windows7 cant detect PIC32 Pinguino-OTG board
Eventually I got it to compile by removing the # on line 1 in the makefile.w32 When I try to upload the compled blinjk, I get

USB HID device found: 241664 bytes free
Erasing...
Writing hex file 'D:\pinguino32X\library\source\Blink.hex':..........................................................................................................................................................................................................
Resetting device...

and the red led on forever.

Pressing the reset button does not change it and I cant make it go into boot mode. Only when I comple again can I reset it and put it into boot mode.
The code never runs as the LED never blinks.
Any suggestions???

Found the problem. The example blink had the incorrect port pin assignment. I would have thought the example would have been correct. Anyway, that is how we learn.
I am dissapointed in the lack of documentation and that it took such an effort to get things to run. It did not say in any doco that the board had to be in boot mode before the computer can detect the board is in the USB port. Also that the MAKEFILE.WIN32 had to be edited to rempove the # on the first line therewise it could not compile. Very poor especially when you are trying to get something running for the first time.

The harware (PIC32-PINGUINO-OTG) from olimex is very good but the operational side of the documentation lets it down.
Thank goodness for this forum as it has been of great help.
Reply
23-12-2011, 01:33 PM,
#5
RE: Windows7 cant detect PIC32 Pinguino-OTG board
Well done!

You found things I didn't know (I'm not using Windows, and it seems for Linux the blink code has the right port pin).

Yes, the documentation needs making better. Also the IDE and samples. It's a pity to let the good hardware down!

John
Reply
23-12-2011, 02:14 PM,
#6
RE: Windows7 cant detect PIC32 Pinguino-OTG board
Thanks for your help John and replying to the posts.
Is there a Pinguino reference manual online or PDF?
I can find stuff on Arduino but very little on Pinguino language.
I did find a cheat sheet but it is in Spanish but that is not really that helpful on using the functions.
Can someone point me in the right direction.
Many thanks
Bill

Reply
23-12-2011, 04:21 PM, (This post was last modified: 23-12-2011, 04:24 PM by pingotg.)
#7
RE: Windows7 cant detect PIC32 Pinguino-OTG board
You're welcome.

I'm guessing you have as many of these as you want:
http://sites.google.com/site/pinguinotutorial/home
http://sites.google.com/site/pinguinotut...bootloader
http://pinguino.cc/download/doc/Mapping/..._Rev.C.pdf
http://pinguino.cc/download/doc/Mapping/...apping.png
http://www.olimex.com/dev/DUINO/PIC32-PI...NO-OTG.pdf
http://www.olimex.com/dev/DUINO/PIC32-PI...ematic.pdf
http://www.olimex.com/dev/DUINO/PIC32-PI...-REV-B.pdf
http://www.olimex.com/dev/DUINO/PIC32-PI...NGUINO.pdf
http://www.olimex.com/dev/DUINO/PIC32-PI...ematic.pdf

Not sure what these are:
http://www.hackinglab.org/pinguino/index_pinguino.html
http://parallelportcon.sourceforge.net/f...inguino.sh
(I think the last has udev rules for Linux)

I guess the cheat sheet is this:
http://pinguino.cc/download/doc/Pinguino..._Sheet.pdf

The plan for the language seems to be to be like Arduino except NAME.method(args) converts to NAMEmethod(args) and uses a C function rather than C++ method. At least, seems like that. CDC seems OK (though partial), but some others are not.

Looks like help in doing the work would be useful....

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)