Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:30 12 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : HELP needed: PIC32MX170 & MPLab IDE 8.90

     Page 1 of 2    
Author Message
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 06:25am 09 Aug 2014
Copy link to clipboard 
Print this post

All,

I have a really simple request for a little piece of knowledge that hopefully someone can help me with.
Google has let me down which is why I have turned to you all.

I am using MPLab IDE 8.90 and need to add a PIC32MX170F256B (and D) to the device list so that I can program it with a .hex file using a PicKit3.

Does anyone know: Is it possible to add this new PIC to MPLab IDE 8.90? And, if it is possible, then how do I add it?

I understand that MPLabX adds new parts automatically BUT let me be clear:
I don't need suggestions about using other 'tools'; nor advice about programming in C, nor advice about costs of various things, nor issues with availability, nor (valid) moans about postage costs, nor need to know the pro's and con's of . . . . . you get the picture hopefully!

Remember two things: MPLab IDE 8.90 and PIC32MX170.

(can't wait for the replies now) . . .

Please note it has been a very stressful 48hours for me so please take this post with a bit of humour as well as some seriousness!!

Thanks,
WW
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3270
Posted: 06:52am 09 Aug 2014
Copy link to clipboard 
Print this post

As far as I know you cannot simply add devices to MPLab. There is MPLab 8.92 available and you might be lucky trying that but (as far as I know) Microchip has stopped adding devices to MPLab.

So probably your only choice is to move to MPLabX.

Geoff

P.S. Red wine is known to reduce stress... recommended!!
Geoff Graham - http://geoffg.net
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 07:07am 09 Aug 2014
Copy link to clipboard 
Print this post

  Geoffg said  P.S. Red wine is known to reduce stress... recommended!!


That is my liquid of choice, and cloudy cider (in different glasses mind!)

So any wine recommendations from Australia or New Zealand? I don't mind now anyone talking about wine costs, wine availability, pro's and con's of different red wines, postage costs for wine and anything else to help reduce my stress!

In the meantime, does anyone know if 8.92 will list a PIC32MX170?

The last time I loaded MPLabX on my Windows 7 laptop it resulted in a total OS reinstall. Ironically it was immediately after a workshop I attended at MicroChip's head office where they were 'pushing' MPLabX.
I then tried installing MPLabX on my iMac but unfortunately with similar results. After these two experiences I migrated back to IDE 8.90 and never had a problem since (until now).

So I will go ahead, take the plunge, and try installing MPLabX again on my iMac. If you don't hear from me for a while then you know it has 'crashed' my machine again.

Whine over
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 11:05am 09 Aug 2014
Copy link to clipboard 
Print this post

"In the meantime, does anyone know if 8.92 will list a PIC32MX170? "

Nope, it won't. It stops at 150.Edited by vasi 2014-08-10
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 11:10am 09 Aug 2014
Copy link to clipboard 
Print this post

MplabX works fine now. If your projects doesn't involve SVN services it's fine. I'm using it as an IDE for Mplab C18 compiler under Linux. But it works well also under Win8.1


Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 11:56am 09 Aug 2014
Copy link to clipboard 
Print this post

@vasi,

Thanks for your posts. I have managed to load MPLabx latest version on MacOS and my machine survived
However, an hour later and I am making very slow progress. This led me to this question for you (or anyone else).
Is there an application in existence that can import a .hex file, then you simply select a PIC device from a list (which includes ALL PIC devices - old and new), and then after selecting a recognised programmer (PicKit3 in my case) you press a single button called 'Program' and it program the PIC with the .hex file.

Surely this kind of application must exist. I don't need to edit the .hex, don't want to set anything, don't want to set up a project environment (a simple six steps according to MicroChip!!!!!), don't need to have a degree in MPLab usage. I bet Dave from dev blog ripped MPLabX to bits

Don't any IT people consider the end user and what the basics are they will likely need to perform. I was a systems & application designer & developer for over 12 years and I had a reputation for creating very user friendly systems. MPLabX has brought back all the horrors of what I would want to avoid when designing a system.

So vasi, with your wide range of development tool reviews, is there anything you recommend to achieve the above?

If not, would anyone be interested in such a simple coding tool?

WW

 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 12:11pm 09 Aug 2014
Copy link to clipboard 
Print this post

Hi White,

I have the pickit 3 and it came with MPLAB IPE which is the only thing I have ever used. I just fired it up and it does have the 170 b and d in the list. All I have ever done is fired that up, selected the pic32mx150 and selected the hex file from Geoff and hit program. For some reason you have to be in advanced mode so select that under the settings tab and it will ask for a password, enter "microchip" and all is well. I never even opened the MPLAB X IDE.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 12:20pm 09 Aug 2014
Copy link to clipboard 
Print this post

@Jim - that is it!!

Just got to wait for the 170's to arrive and then I can hopefully program the MicroMite .hex file.

Thanks a million for the guidance!

WW
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 12:22pm 09 Aug 2014
Copy link to clipboard 
Print this post

WW, this is how I would have solved my problem for myself if I had a Mac.

1. - First, I would have made sure that I have a functional Pickit3 under OS X;
2. - Second, I would have searched for a command line utility (I guess it exists already) that allows me to send hex files to the Pickit3 programmer;
3. - Third. Knowing the parameters required for the command line utility, I would have designed a little graphical interface using one of the two RAD (Rapid Application Development) tools that I know to use under any OS: C/C++ with Qt library and Lazarus IDE with Freepascal. But I guess you can skip the third part as is not mandatory.
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 12:25pm 09 Aug 2014
Copy link to clipboard 
Print this post

  vasi said   WW, this is how I would have solved my problem for myself if I had a Mac.

1. - First, I would have made sure that I have a functional Pickit3 under OS X;
2. - Second, I would have searched for a command line utility (I guess it exists already) that allows me to send hex files to the Pickit3 programmer;
3. - Third. Knowing the parameters required for the command line utility, I would have designed a little graphical interface using one of the two RAD (Rapid Application Development) tools that I know to use under any OS: C/C++ with Qt library and Lazarus IDE with Freepascal. But I guess you can skip the third part as is not mandatory.

or use MPlabX IPE . . . . .

This seems to do what I need (after just one little tweak that Jim explained).

Problem hopefully solved - Thanks Jim & Vasi
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 12:26pm 09 Aug 2014
Copy link to clipboard 
Print this post

  WhiteWizzard said   @Jim - that is it!!
...

WW


Then all good! I supposed that IPE is not working for you...
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9492
Posted: 03:10pm 09 Aug 2014
Copy link to clipboard 
Print this post

  WhiteWizzard said  
  Geoffg said  P.S. Red wine is known to reduce stress... recommended!!


That is my liquid of choice, and cloudy cider (in different glasses mind!)

So any wine recommendations from Australia or New Zealand? I don't mind now anyone talking about wine costs, wine availability, pro's and con's of different red wines, postage costs for wine and anything else to help reduce my stress!


My wine of choice at the moment is White Label Sav(13%). Only NZ$10 a bottle when NOT on special, and about NZ$7 a bottle when it is on special.

Wine - now cheaper then beer over here these days, and you don't feel so bloated in the morning as you do with lots of beer.

Smoke makes things work. When the smoke gets out, it stops!
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 04:57pm 09 Aug 2014
Copy link to clipboard 
Print this post

For anyone who has a PICKit2 kicking about, I recompiled PIC32PROG so that it supports the PIC32MX170F256B-501/SP.

Here it is in case it's useful to someone.

BTW, the Device ID for a PIC32MX170F256B-501/SP is 0x26610053

73

Peter

2014-08-10_025506_pic32prog.zip




The only Konstant is Change
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 09:51pm 09 Aug 2014
Copy link to clipboard 
Print this post

  G8JCF said   For anyone who has a PICKit2 kicking about, I recompiled PIC32PROG so that it supports the PIC32MX170F256B-501/SP.


Thanks for this - I think it will prove useful for me so I will give it a try.

So what steps are involved in adding a new device and 'recompiling'? (If I were to use Pic32Prog then I would want to add the TQFT variant (i.e. 'D' suffix).)


WW
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:40pm 09 Aug 2014
Copy link to clipboard 
Print this post

  G8JCF said   For anyone who has a PICKit2 kicking about, I recompiled PIC32PROG so that it supports the PIC32MX170F256B-501/SP.

Here it is in case it's useful to someone.

BTW, the Device ID for a PIC32MX170F256B-501/SP is 0x26610053

73

Peter

2014-08-10_025506_pic32prog.zip





Thanks Peter, can you have the chance to test it on a real device?
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 12:25am 10 Aug 2014
Copy link to clipboard 
Print this post

@G8JCF.
After seeing your last post I have just had a thought regarding a much earlier thread:

If you have successfully added the 170B to enable programming by a PicKit2, then have you been able to add the 150B to Pic32Prog AND successfully program it

Thanks,
WW
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3270
Posted: 02:40am 10 Aug 2014
Copy link to clipboard 
Print this post

  WhiteWizzard said  So any wine recommendations from Australia or New Zealand

I am in Ireland and over here you can buy the McGuigan Private Bin Shiraz from "South Eastern Australia" which is quite nice. Perhaps you could find it in an off licence in the UK.

Geoff
Geoff Graham - http://geoffg.net
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:14am 10 Aug 2014
Copy link to clipboard 
Print this post

@VASI

Indeed, I have successfully flashed a '170F using the recompiled pic32prog. That 170F is in daily use running 4.5C.

@WW
Now as for the 150B, target.c already contained {0x4D06053, "MX150F128B", 128, &family_mx1}, so PIC32PROG.EXE already supports programming that chip. I haven't tried yet, 'cos the 2 x 150B's I have came pre-programmed from micromite.org :) and I had no need to reprogram them. However, now that I have the '170F programmed, I will try and erase and then re-burn a '150B in the next couple of days.

Now as for recompiling PIC32PROG itself, that took me a couple of days to figure out because you need to use MINGW and the current version of MINGW doesn't work ! So I had to go find an older release (that's what took the time). Once one has MINGW installed, it's dead easy.

1) Run PICPROG32.EXE with your chip wired up for ICSP, PIC32PROG will come back and say Unknown Device ID, and display the ID of the chip. COPY THIS ID DOWN ! It is notoriously dificult to find out these device ids from Microchip, they tend to be buried away in obscure silicon errata documents.

2) Having used SVN (there is a very nice Windows client for SVN which makes SVN operations just a right click from explorer) to checkout a copy of the PIC32PROG source code tree, Source Code open up target.c, then look for

static const struct {
unsigned devid;
const char *name;
unsigned flash_kbytes;
const family_t *family;
} pic32mx_dev[] = {
/* MX1/2 family-------------Flash---Family */
{0x4A07053, "MX110F016B", 16, &family_mx1},
{0x4A09053, "MX110F016C", 16, &family_mx1},
{0x4A0B053, "MX110F016D", 16, &family_mx1},
{0x4A06053, "MX120F032B", 32, &family_mx1},
{0x4A08053, "MX120F032C", 32, &family_mx1},
{0x4A0A053, "MX120F032D", 32, &family_mx1},
{0x4D07053, "MX130F064B", 64, &family_mx1},
{0x4D09053, "MX130F064C", 64, &family_mx1},
{0x4D0B053, "MX130F064D", 64, &family_mx1},
{0x4D06053, "MX150F128B", 128, &family_mx1},
{0x4D08053, "MX150F128C", 128, &family_mx1},
{0x4D0A053, "MX150F128D", 128, &family_mx1},
{0x26610053,"MX170F256B-501/SP", 256, &family_mx1},
{0x4A01053, "MX210F016B", 16, &family_mx1},



Add in your new device, probably after the "MX150F128D" line, the device ID from step 1 is the first hex number in the structure.

3) Then run compile.bat

4) With any luck you should now have a new PIC32PROG.EXE

If you give it a go, and have problems, get back to me and I can try and help, eg send you the 2010-11-19 release of MINGW (it's big).

BTW, afaik, I don't think PIC32PROG supports the PICKit3, but then again, one would hope that Microchip would have full PK3 support for all their chips.

Hope this info helps.

Peter



The only Konstant is Change
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:17am 10 Aug 2014
Copy link to clipboard 
Print this post

Hi Geoff

I only ever drink Shiraz from Australia - the stuff from the Northern Hemisphere is pretty dire in comparison !! and indeed McGuigan Private Bin Shiraz is available here in the UK

Hope you are having a great time in the emerald isle

Slainte

Peter
The only Konstant is Change
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:53am 10 Aug 2014
Copy link to clipboard 
Print this post

@WW

or U can just do step 1, ie find Device ID, send me the Dev ID and I will do the rest and email U back a new PIC32PROG.EXE

Peter
The only Konstant is Change
 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025