chipKIT® Development Platform

Inspired by Arduino™

PIC32MX220F032B Pinguino to chipkit

Created Fri, 29 Jul 2016 14:07:05 +0000 by Marevealous


Marevealous

Fri, 29 Jul 2016 14:07:05 +0000

Hey guys. I have PIC32MX220F032B pinguino board. The PROGARM button is on PIN 3 and LED is on PIN 2. It has 8MHz crystal. Schematic is here: http://wiki.pinguino.cc/images/7/75/Pinguino32-DIY-schematic-corrected_june_2013.png Can I use chipkit USB bootloader for that? Where to download USB bootloader for PIC32MX220F032B? And does the pin numbers of LED /Program button matches or do I have to recompile something? Thanks in advance!


majenko

Fri, 29 Jul 2016 14:16:52 +0000

There is no bootloader for your setup. Simply because it is your setup. You need to have one specially constructed not only to suit the chip you are using (there are no pre-existing chipKIT boards using that chip) but also to suit the arrangement of buttons and LEDs that you have.

You can compile your own bootloader if you are feeling adventurous, but it's not a straight forward thing to do. I will see about constructing a suitable configuration for you.


majenko

Fri, 29 Jul 2016 14:21:32 +0000

Also the chipKIT system may well need to be tweaked to suit that chip as well - I don't think there is a linker script for it, so one will have to be made. And then a board configuration for it as well to map the IO pins and analog inputs, etc. It's not a "simple" task to do.


majenko

Fri, 29 Jul 2016 14:30:11 +0000

Here is a possible bootloader that might work for you.


Marevealous

Fri, 29 Jul 2016 15:17:54 +0000

Here is a possible bootloader that might work for you.

Is this for this product: https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO-MX220/ ? I don't want bootloader for Pinguino IDE, because I already tested it and it works, but CDC is crappy.

I want for MPIDE or chipkit-core (I dont know what is the difference).

Anyway, if that DIP chip is not supported, then which DIP chip of PIC32 is supported by chipkit and easy to setup for USB bootloader?


majenko

Fri, 29 Jul 2016 15:19:55 +0000

For that you want the DP32 really. It has everything you need in one package along with a handy prototyping area.

It uses the PIC32MX250F128B chip.


Marevealous

Fri, 29 Jul 2016 15:28:44 +0000

For that you want the DP32 really. It has everything you need in one package along with a handy prototyping area. It uses the PIC32MX250F128B chip.

This board? http://store.digilentinc.com/chipkit-dp32-dip-package-prototyping-microcontroller-board/

Ok I will try to buy a single PIC32MX250F128B and then setup it on breadboard with USB and 3.3V LDO. Is CDC on that board and Windows XP / 7 / 8 / 10 PC working flawlessly?


majenko

Fri, 29 Jul 2016 16:15:43 +0000

Yes, that board.

CDC/ACM is working about as flawlessly as possible - that is, it's flawed, but not through any bad programming, only through bad protocol design. So it's probably about as reliable as you can get using CDC/ACM.


Marevealous

Tue, 02 Aug 2016 09:19:50 +0000

Hello, I've looked into DP32 schematic and manual. It's using PIC32MX250F128B chip. Can you explain few things about DP32 schematic?

  1. Why there is a 680 Ohm resistor between OSC2 pin and 8MHz crystal? I have never seen such a construct before.
  2. Why the LED1, LED2, LED3, LED4 are driven by transistors? I don't get that, I've always seen LEDs being directly connected to IO pins....
  3. Which LED is blinking when a bootloader mode is active? Or, to put this other way, which LEDs could be ommited?
  4. The same question for buttons, because there are 2 additional buttons (and of course the RESET button) Thanks in advance!

majenko

Tue, 02 Aug 2016 12:39:00 +0000

Hello, I've looked into DP32 schematic and manual. It's using PIC32MX250F128B chip. Can you explain few things about DP32 schematic?

  1. Why there is a 680 Ohm resistor between OSC2 pin and 8MHz crystal? I have never seen such a construct before.

It reduces the signal strength from the crystal. Some crystals need it, some don't.

  1. Why the LED1, LED2, LED3, LED4 are driven by transistors? I don't get that, I've always seen LEDs being directly connected to IO pins....

To increase the input impedance of them and thus massively reduce the impact they have on the signals on those pins. It means the LEDs don't limit the maximum speed of signal that you can send down that pin.

  1. Which LED is blinking when a bootloader mode is active? Or, to put this other way, which LEDs could be ommited?

RB2 and RB3 are both used by the bootloader. One for the Bootloader LED and the other for the Download LED.

  1. The same question for buttons, because there are 2 additional buttons (and of course the RESET button) Thanks in advance!

Button RB4 is the one used to enter the bootloader.


Marevealous

Tue, 02 Aug 2016 12:55:58 +0000

Is the DP32 the same as chipkit-diy? I've just found a chipkit-diy using the same MCU - PIC32MX250F128B -and it's much simpler than DP32...


majenko

Tue, 02 Aug 2016 15:19:16 +0000

Pretty much the same I think, yes.