50Mhz processor upgrade

madias
Posts: 53
Joined: Fri Nov 28, 2014 11:30 pm
Location: Vienna/Austria

Re: 50Mhz processor upgrade

Post by madias » Mon Feb 02, 2015 12:34 am

I run pic32mx250f128b-I/ML chips at 48MHz all the time with no issues at all.
Let me guess: For audio/DAC reasons? ;)

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

Re: 50Mhz processor upgrade

Post by majenko » Mon Feb 02, 2015 12:48 am

No, for USB reasons :P
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".

nroff-man
Posts: 40
Joined: Wed Oct 01, 2014 6:05 pm

Re: 50Mhz processor upgrade

Post by nroff-man » Mon Feb 02, 2015 10:31 am

Hi
madias wrote:Just as a side note:
The PIC32MX250F128B (without-50) runs for several weeks @48MHZ on my test board. I've read that this MCU goes up to @60+ without problems (not tested).
I've included my *.hex file for the supa-dupa-overclocked@48MHZ-PIC32MX250F128B
hi, did you use the MPIDE compiler to create this? I don't think you
did, but if so then please provide some detail of how you done it.

btw, I don't actually know what a DP32 is.

Thx,

madias
Posts: 53
Joined: Fri Nov 28, 2014 11:30 pm
Location: Vienna/Austria

Re: 50Mhz processor upgrade

Post by madias » Mon Feb 02, 2015 10:54 am

I've done it with mplab not mpide, just modified the BoardConfig.h, I used the Chipkit DP32 (for sure, it would be smarter to add a new board)
#elif defined(_BOARD_CHIPKIT_DP32_) // 48MHZ mod!! fpllmul + cpu freq!!!

#if defined(PUT_CONFIG_BITS_HERE)

//* Oscillator Settings
#pragma config FNOSC = PRIPLL // Oscillator selection
#pragma config POSCMOD = XT // Primary oscillator mode
#pragma config FPLLIDIV = DIV_2 // PLL input divider
#pragma config FPLLMUL = MUL_24 // PLL multiplier
#pragma config FPLLODIV = DIV_2 // 20!! PLL output divider
#pragma config FPBDIV = DIV_1 // Peripheral bus clock divider
#pragma config FSOSCEN = OFF // Secondary oscillator enable

Another step is to add a new board for MPIDE or, better UECIDE and enter the new CPU_F(requency)

DP32: I use this bootloader for my self build PIC32MX250F128B board. The original preprogrammed PIC32MX250F128B (the one with bootloader) has some problems, so I always update a fresh MCU with the "DP32" bootloader.

nroff-man
Posts: 40
Joined: Wed Oct 01, 2014 6:05 pm

Re: 50Mhz processor upgrade

Post by nroff-man » Thu Feb 05, 2015 10:48 am

Hi

I fail to see how it's possible to justify spending > 650 UK pounds
to compile a boot loader for a breadboard project.

Consequently, I looked at the USB bootloader for the DP32 and
have added it to my project files.

The boot loader compiles OK but I am not able to test it right now.

The instructions are the same as before, found at:
http://wiki.kewl.org/dokuwiki/boards:chipkitpi

The hex file is named, CHIPKIT_DP32_48.hex

Please test it if you can, I will see about testing on the ChipKIT Pi
at a later time.

Bye

nroff-man
Posts: 40
Joined: Wed Oct 01, 2014 6:05 pm

Re: 50Mhz processor upgrade

Post by nroff-man » Thu Feb 26, 2015 5:23 pm

Good day.

I got around to updating the boot loader firmware to now build
the USB boot loader for the PIC32 at 48 MHz on the chipKIT Pi.

A boot loader was already available for the MX250 but this
extends the range to the MX270 and MX250 at 48 MHz.

The USB boot loader allows the chipKITPi to either run standalone
or you can also power the RPi via the GPIO header whilst connected
to a powered hub on a separate computer.

The boot loader now has it's own page here:
http://wiki.kewl.org/dokuwiki/projects:chipkit32

The original chipKIT Pi page with the pinouts is still here:
http://wiki.kewl.org/dokuwiki/boards:chipkitpi

I will add the SDXL target later when I get around to it.

I have also created a 6502 simulator (downgrade?) which works
on the chipKIT Pi. This is mostly for fun but can be interesting
otherwise. I will post a new thread once it is documented
correctly. The page will be an update of this:
http://wiki.kewl.org/dokuwiki/projects:ape65

Bye-Bye

nroff-man
Posts: 40
Joined: Wed Oct 01, 2014 6:05 pm

Re: 50Mhz processor upgrade

Post by nroff-man » Mon Mar 09, 2015 11:38 am

Reply to self:
nroff-man wrote:Good day.
I will add the SDXL target later when I get around to it.
This target has been added and is working ok.

Bye-bye

GastonLagaffe
Posts: 101
Joined: Sun Oct 26, 2014 2:50 pm

Re: 50Mhz processor upgrade

Post by GastonLagaffe » Sun Mar 15, 2015 3:11 pm

Salut,

I have a humble question:
I would like to replace the PIC32MX250 on my DP32 with a PIC32MX270. I scanned through the threads here and what google presented me but I could not find a bootloader for the PIC32MX270. I only found the sources but I am not used to build my own bootloader.
Before diving into building the bootloader I want to check first if there is a bootloader hex file that I can load onto the PIC32MX270 using PicKit3?

Thanks in advance for any help (and apologies if this sound stupid)

Ciao, Mathias

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

Re: 50Mhz processor upgrade

Post by majenko » Sun Mar 15, 2015 3:22 pm

The MX270 isn't currently supported by the chipKIT core. It needs adding to the cpudefs.h file, as well as implementing any special settings for it in the rest of the core.

While it would be simple enough to compile a bootloader for it (the MX250 bootloaders should just work fine regardless) you won't really be able to use it with chipKIT yet.
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".

nroff-man
Posts: 40
Joined: Wed Oct 01, 2014 6:05 pm

Re: 50Mhz processor upgrade

Post by nroff-man » Mon Mar 16, 2015 9:26 am

LO
GastonLagaffe wrote:Salut,

I have a humble question:
I would like to replace the PIC32MX250 on my DP32 with a PIC32MX270. I scanned through the threads here and what google presented me but I could not find a bootloader for the PIC32MX270. I only found the sources but I am not used to build my own bootloader.
Before diving into building the bootloader I want to check first if there is a bootloader hex file that I can load onto the PIC32MX270 using PicKit3?

Thanks in advance for any help (and apologies if this sound stupid)

Ciao, Mathias
There is currently no boot loader hex file for the MX270 at 40 or 48 Mhz for the DP32 or equivalent.
Creating one is simple enough and I will do it in a moment and you can test it.

As previously stated by Majenko, there is no linker script for the MX270 as a chipKIT
application. Creating one is simple though and an example exists in LED demo directory
of this firmware although I have not tested it (in MPIDE) nor do I know how you install it, you
can find out and tell us if it is possible.

Bye-bye

I will create a new post when I have created a hex file for testing purposes.

Post Reply