PIC32MX220F032B Pinguino to chipkit

Talk about anything you want!
Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

PIC32MX220F032B Pinguino to chipkit

Post by Marevealous » Fri Jul 29, 2016 3:07 pm

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/Pin ... e_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!

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Fri Jul 29, 2016 3:16 pm

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Fri Jul 29, 2016 3:21 pm

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Fri Jul 29, 2016 3:30 pm

Here is a *possible* bootloader that *might* work for you.
Attachments
Olimex_PIC32_Pinguino_DIY.zip
(6.34 KiB) Downloaded 20 times
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

Re: PIC32MX220F032B Pinguino to chipkit

Post by Marevealous » Fri Jul 29, 2016 4:17 pm

majenko wrote:Here is a *possible* bootloader that *might* work for you.
Is this for this product: https://www.olimex.com/Products/Duino/P ... INO-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?

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Fri Jul 29, 2016 4:19 pm

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

Re: PIC32MX220F032B Pinguino to chipkit

Post by Marevealous » Fri Jul 29, 2016 4:28 pm

majenko wrote: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-dp ... ler-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?

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Fri Jul 29, 2016 5:15 pm

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Marevealous
Posts: 17
Joined: Tue Jul 19, 2016 10:41 am

Re: PIC32MX220F032B Pinguino to chipkit

Post by Marevealous » Tue Aug 02, 2016 10:19 am

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!

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: PIC32MX220F032B Pinguino to chipkit

Post by majenko » Tue Aug 02, 2016 1:39 pm

Marevealous wrote: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.
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....
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.
3. 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.
4. 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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply