50Mhz processor upgrade

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

50Mhz processor upgrade

Post by nroff-man » Fri Oct 24, 2014 5:21 pm

Hi

This topic may sound like it's been in a timewarp and
comes from the 1990s but using my PIC32 programming
software mentioned in my previous post I have upgraded
the chipKITPi

The base system comes with a PIC32MX250F128B and
the upgrade is a PIC32MX270F256B-50I/SP

This upgrades the chipKITPi from 40MHz, 128KB flash and
32KB RAM to 50MHz, 256KB flash and 64KB RAM. Quite
a useful improvement all round.

To perform the upgrade you simply install the chipKITPi
bootloader but, to utilise the new features of the chip
an object linker script will need to added to your IDE.

Adding the linker script is left as an exercise for those
bold enough to upgrade the CPU.

Bye

Quick overview.

After installing the k8048 pic programmer and correctly
setting it up you can query the PIC32MX250

% k32 id
[1D000000] [PROGRAM] 00008000 WORDS
[1F80F220] [DEVICEID] 14D00053 PIC32MX250F128B
[1FC00000] [BOOT] 00000300 WORDS
[1FC00BF0] [DEVCFG3] CFFFFFFF
[1FC00BF4] [DEVCFG2] FFF9FFD9
[1FC00BF8] [DEVCFG1] FF6ACEDB
[1FC00BFC] [DEVCFG0] 7FFFFFFB
[PE] RIPE_11_000301.hex

After replacing the chip a new query should reveal:

% k32 id
[1D000000] [PROGRAM] 00010000 WORDS
[1F80F220] [DEVICEID] 26600053 PIC32MX270F256B
[1FC00000] [BOOT] 00000300 WORDS
[1FC00BF0] [DEVCFG3] FFFFFFFF
[1FC00BF4] [DEVCFG2] FFFFFFFF
[1FC00BF8] [DEVCFG1] FFFFFFFF
[1FC00BFC] [DEVCFG0] 7FFFFFFF
[PE] RIPE_11_000301.hex

You can then install the firmware with:

% k32 program chipKIT_Pi.hex

Good luck, bye-bye

EDIT: PS: only replace the chip with the R-Pi power removed.

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

Re: 50Mhz processor upgrade

Post by nroff-man » Sat Oct 25, 2014 1:49 pm

Lo

Today i have taken the bootloader sources and with the mpide compiler
built an MX270 specific chipKIT firmware.

The project can be found here:

http://dev.kewl.org/k8048/Src/asm/chipKITPi/firmware/

The main edit for the MX270 was a pseudo EEPROM address. I don't
know anything about the MPIDE or any other ARDUINO IDE because
I never use them but this may fix any problem with that.

Also, it's noticeable, that to get full speed out of this CPU then it
would need to be reconfigured.

Bye-bye

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: 50Mhz processor upgrade

Post by Jacob Christ » Sat Oct 25, 2014 3:50 pm

nroff,

Do you use git? If so you should do some pull requests to get these changes into the repo so they are in a central location.

https://github.com/chipKIT32/PIC32-avrdude-bootloader

If you need help let the thread know...

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

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

Re: 50Mhz processor upgrade

Post by nroff-man » Sat Oct 25, 2014 4:17 pm

Hi there.

This chipKITPi only project uses the free MPIDE GCC compiler
and GNU make and it's not compatible with the build using the
commercial MPLAB-X GCC compiler in the GIT repo.

The directory I published above is a clone of my own development
repo I have in MERCURIAL (which is superior to git etc :-)

If anyone finds any of this useful then they are urged to use it
and copy it as I may or may not update it or even delete it.

Bye-bye

EmbeddedMan
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: 50Mhz processor upgrade

Post by EmbeddedMan » Thu Oct 30, 2014 12:36 am

The bootloader project that Jacob mentioned (which has code for all bootloaders for all chipKIT boards) does not use the MPIDE C compiler. It uses XC32 from Microchip, under MPLAB X. Your changes should work just fine. Issue a pull request for the changes you made, and I'll merge them in to the repo.

Thanks for your work in this area!

*Brian

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

Re: 50Mhz processor upgrade

Post by nroff-man » Thu Oct 30, 2014 1:10 am

hi :-)
EmbeddedMan wrote:The bootloader project that Jacob mentioned (which has code for all bootloaders for all chipKIT boards) does not use the MPIDE C compiler. It uses XC32 from Microchip, under MPLAB X. Your changes should work just fine. Issue a pull request for the changes you made, and I'll merge them in to the repo.
Please re-read what I wrote, this chipKITPi only bootloader project uses the MPIDE compiler
and definitely not the MPLAB-X xc32 compiler which I have no intention of paying for.

I re-factored the Makefiles in this project should anyone wish to expand upon it
and those makefiles are definitely not compatible with what's in GIT and they may need
some optimisation.
Thanks for your work in this area!

*Brian
No problem. Thanks for all the work supporting this bootloader.

I have decided to keep it online for the foreseeable future, in fact, I have
created a new tool to upload to it which I am testing now.

Bye-bye

EDIT:typos

EmbeddedMan
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: 50Mhz processor upgrade

Post by EmbeddedMan » Sun Nov 02, 2014 2:28 pm

nroff-man - Sorry, I missed that. It's really cool that you've written a bootloader using the MPIDE version of XC32. Nice job! Hopefully it will be useful to people running the chipKIT Pi and get more folks excited about the board.

*Brian

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

Re: 50Mhz processor upgrade

Post by nroff-man » Wed Jan 07, 2015 1:59 am

Hi

For the record this project didn't need to change much to enable
compilation with the MPIDE PIC32 compiler.

I am posting now though to explain that the URL above will
soon be removed but new documentation can be found here:

http://wiki.kewl.org/dokuwiki/boards:chipkitpi

This page refers to the new location of the project.

Bye-bye

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:09 am

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
Attachments
chipKIT-DP32-48MHZ-bootloader.hex.zip
(6.27 KiB) Downloaded 40 times

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

Re: 50Mhz processor upgrade

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

From my understanding the -50 is a non -50 that passes the tests at a higher temperature range. The datasheet makes no distinction between the 40MHz and 50MHz versions any more - they just have "the chip" running at 40MHz or 50MHz, and 40MHz allows a greater temperature range than 50MHz.

I run pic32mx250f128b-I/ML chips at 48MHz all the time with no issues at all. In fact, the -50I/ML chips are getting hard to get hold of. MCHP Direct only has a handful of them, and they're not available as samples at the moment.
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