Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PINGUINO 32 DIY confusion
20-09-2015, 10:05 PM,
#1
PINGUINO 32 DIY confusion
Hey, first of all, I don't know really if it's my mistake or the bug, but please take a look:

1. I have assembled the PIC32MX220F032B on the breadboard for the PINGUINO DIY in a similiar way to the schematic on the wiki
2. I have uploaded the HIDBoot_MX220.hex bootloader
3. Nothing happened, the computer can't see any new USB device, the LED is off, pushing the buttons in various ways does nothing
======
4. I was desperate to check the USB connection, so I downloaded other, non-pinguino project and uploaded to my board without any hardware changes and... THE NON-PINGUINO USB PROJECT WORKED!
====
5. I had really no idea what was wrong but it looked like pinguino firmware(bootloader) trouble. I have tried also Bootloader_v1.0_32MX220F032D.hex, but I wasn't been able to burn it (it says that some bits are missing, DEVCFG)
6. I have tried uploading PIC32MX250F128B_-_HID_Bootloader.hex bootloader (while my device is PIC32MX220F032B) and it worked like a charm at first try! The PC recognized the new USB device and I was also able to program the BLINK led from PINGUINO IDE with it ( I have used 32MX220F032 setting in Board Selector)
7. ANOTHER strange thing is that PINGUINO seems to be trying to write the hex SECOND time which fails with USB error, take a look:

Code:
Board: Pinguino 32MX220
Proc: 32MX220F032B
File: C:\pinguino\x4-easy-rev959\examples\01.Basics\Blink\Blink.pde
compiling...
compilation done
code size: 3012 / 32768 bytes (9% used)
3.2 seconds process time
C:\pinguino\x4-easy-rev959\win32\p32\bin\mphidflash.exe Error: Device not found (is device attached and in Bootloader mode?)

C:\pinguino\x4-easy-rev959\win32\p32\bin\mphidflash.exe Error: Device not found (is device attached and in Bootloader mode?)

USB HID device found: 1610633216 bytes free
Erasing...
Writing hex file 'C:\pinguino\x4-easy-rev959\examples\01.Basics\Blink\Blink.hex':............................................................
Resetting device...

USB HID device found
C:\pinguino\x4-easy-rev959\win32\p32\bin\mphidflash.exe Error: USB write error

Any tought, ideas or what's going on?

TLDR: HIDBoot_MX220.hex does not work for PIC32MX220F032B but PIC32MX250F128B_-_HID_Bootloader.hex seems to be.
Reply
21-09-2015, 09:37 PM, (This post was last modified: 21-09-2015, 09:39 PM by pingotg.)
#2
RE: PINGUINO 32 DIY confusion
The bootloader (in bootloader mode) does not show as any typical USB device as raw packets are used.

Your first HEX looks the right one.

Pushing the right buttons should just work so if not then either you flashed the HEX wrongly or the buttons are wrong in some way (wrong pins / wrong wiring / etc) or some other hardware fault. Breadboards are prone to wiring issues...

John
Reply
22-09-2015, 12:40 AM, (This post was last modified: 22-09-2015, 12:45 AM by B4lfiz4r.)
#3
RE: PINGUINO 32 DIY confusion
Thank you for the reply.
What do you mean by "Your first HEX looks the right one."? HIDBoot_MX220.hex?
Well..
The LED and buttons connections were done according to the schematic from WIKI.
For the HIDBoot_MX220.hex, the LED was off all the time and device didn't respond to the butons. I have tried it several times on two PIC32MX220F032B chips (I tought that one might be faulty, but that's not it).
When I changed the firmware to the PIC32MX250F128B_-_HID_Bootloader.hex WITHOUT ANY HARDWARE MODIFICATIONS the buttons and LED started working, everything according to the documentation and I was able to program it from PINGUINO IDE with various blink versions (I have tested it and it works every time).

I don't know what to say more, but hardware fault/wrong wiring/wrong pins is out of the question.... UNLESS the schematic on wiki is wrong: http://wiki.pinguino.cc/index.php/PIC32_Pinguino_DIY

Well, the article says "U1 PIC32MX250F032B or PIC32MX220F032B (28-pin DIP package)" but the schematic chip is named "PIC32MX250F032B", so maybe really it's something related to pinout and the information is missing from wiki?


Also:
"The bootloader (in bootloader mode) does not show as any typical USB device as raw packets are used."
for the PIC32MX250F128B_-_HID_Bootloader.hex the device is visible in Windows Devices Manager, but only after entering the bootloader mode.
Reply
22-09-2015, 08:23 AM,
#4
RE: PINGUINO 32 DIY confusion
Maybe whoever wrote the article can say.

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)