November 07, 2024, 08:39:57 PM

Pinguino IDE

Started by lamda, November 25, 2017, 01:07:21 PM

Previous topic - Next topic

lamda

I bought the Pinguino-OTG yersterday and I'm trying to install the Pinguino IDE using the New Windows Installer version (1.7.1.4). When I tried to compile an example (Blink) the IDE was looking for C:/pinguino/compilers/p32/bin..
There was no such directory created by the installer. I made it manually. Now, allthough that the compilation is beeing done, the upload is issuing errors: NoBackendEnd.
Mind you the old x4-easy-rev959 works fine, compiling and uploading.
Finally, could you please direct me how to use the board with the Arduino IDE? that is where can I find the appropriate HEX file to upload it on the board? Is there a chance to connect your PIC-ICSP cable with the PIC-KIT3?
Thank you in advance

LubOlimex

Hello,

It seems like some sort of libUSB or Python problem to me. First try downloading and installing libusb using the windows installer, also isntall the filter that is available. Alternatively, try using Zadig installer to accomplish the same ( http://zadig.akeo.ie/ ).

Then try reinstalling PyUSB (https://sourceforge.net/projects/pyusb/)

Notice that there a few treads in the Pinguino forums about the same problem. Google "pinguino backend". You can find more solution.

You can use the board with Arduino IDE, but this requires changing the bootloader via a PIC32-compatible programmer. You can use PIC-ICSP and PIC-KIT3. Everything is explained in the following two locations:

1. https://github.com/OLIMEX/Arduino_configurations/tree/master/PIC

2. https://www.olimex.com/Products/Duino/_resources/Arduino_instructions.pdf

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

lamda

Thank you LubOlimex,
I've just ordered the PIC-ICSP and downloaded the HEX file. Is there a difference with the hex in https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO-MICRO/resources/MPIDE_library_PIC32-Pinguino-Micro.zip ? Allthough, the second is for the MPIDE and not for Arduino.
The libUSB driver is a bit different with the one provided by Windows 7 (which is on the Human Interface Devices).
You can't have them both they are addressing the same device.
I will make the change-over to libUSB and I will keep informed you and the Forum.
Thanks again

LubOlimex

The hex for MPIDE would work with Arduino IDE. MPIDE is not updated anymore, since the same guys now support the PIC32 plugin for Arduino IDE. The additional boards manager that Arduino IDE team introduced few versions ago really made it simpler to add support for custom boards and even other architectures.

We also have a number of our boards supported via the manager (including PIC32 and STM32 boards) - search in the unofficial list for "OLIMEX":

https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls

Also this guide for AVR boards should apply for PIC32 boards (just take the PIC32 link from the unofficial list, and use it instead of the AVR link in the guide): https://www.olimex.com/Products/Duino/_resources/Arduino_instructions.pdf

Best regards,
Lub/OLIMEX

Technical support and documentation manager at Olimex

lamda

As a follow up, there was no success installing the Pinguino IDE v.11 on Windows 7. It works fine on Windows 10, although.
So, for the integrated environment the user has to select Windows 10 for OS.
If another user is eager to use the Arduino IDE has to upload the MX4-Bootloader_Olimex_PIC32_Pinguino.hex using the PIC-ICSP cable and the PIC-KIT3. The link as said is https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO-MICRO/resources/MPIDE_library_PIC32-Pinguino-Micro.zip
As LubOlimex said the instruction from the https://www.olimex.com/Products/Duino/_resources/Arduino_instructions.pdf have to be followed.
I've just tried the Blink example on the Arduino IDE and it works.