• AVR Freaks

Helpful ReplyHot!MPASM with newer PICs?

Author
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
2020/07/09 05:39:27 (permalink)
0

MPASM with newer PICs?

I have MPLAB 8.86 with MPASMWIN 5.46 (and MPASM 5.06) on a Winxp machine (can't install MPLAB-X).  Can I get this to compile an assembly file for a newer PIC (PIC16F15313, PIC16F18313)?  By adding a definition file, or something?  I don't need to use MPLAB, as I currently just use a text editor and call MPASMWIN to compile programs for other PIC's, but using MPLAB for the newer PIC's would be handy at times.
#1
du00000001
Just Some Member
  • Total Posts : 3834
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 06:08:09 (permalink) ☄ Helpfulby upand_at_them 2020/07/09 07:02:24
0
Why can't you install MPLAB X ?
I currently cannot check which MPLAB X version is running on my venerable XP machine, but only the latest versions won't run. Get an XP-capable one from the archives - plus the last XP-capable compiler and assembler! These support at least the 18313 (personal experience) and I expect the 15313 to be supported as well.

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#2
NorthGuy
Super Member
  • Total Posts : 6214
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 06:40:24 (permalink)
4 (1)
I don't see any reason why you cannot extract MPASM from installed MPLAB X.
#3
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 07:02:19 (permalink)
5 (1)
I was certain MPLAB X wouldn't install the first time I tried.  I ran the 5.35 installer again and it's fine.  Haven't tried it out, but it all installed without issue.
#4
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 07:13:57 (permalink)
0
A-ha!
 
The Java platform version 1.8 or higher was requested but only 1.7 is running

 
Many modules are turned off because of this.  So, yeah, I can't run at least this version of MPLAB-X.  And I don't think I can't install Java 1.8 on this Winwp machine...haven't tried that before too.
#5
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 07:22:55 (permalink)
#6
du00000001
Just Some Member
  • Total Posts : 3834
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 07:40:44 (permalink) ☄ Helpfulby upand_at_them 2020/07/09 11:56:16
0
I seem to remember that I couldn't get Java 1.8.x to cooperate with Win XP.
Accessing my MPLAB X installation on XP I find the MPLAB X 4.10 (although some higher 4.xx versions might work as well - I rarely update) - seemingly paired with JRE 1.7.0-67. This one might be the last "XP capable" Java version.
I obviously have a Java 1.7.0-76 installed as well - not sure which one MPLAB X ist really invoking.
 
Intalling is one thing, "cooperatio" (that is: execution) is just a completely different matter...

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#7
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 07:58:14 (permalink)
5 (1)
Yeah, thanks.  MPLAB X is still complaining even after the Java 1.8 install.  I'll try an older version of MPLAB X.
#8
du00000001
Just Some Member
  • Total Posts : 3834
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 08:01:26 (permalink)
0
According to the "about" info, my MPLAB X 4.10 is paired with JRE 1.7.0-67, the which is installed "under" the MPLAB X installation directory. I can'r tecall how exactly this is achieved, but what I seem to recall is that the MPLAB X installation procedure offered this option (and maybe came with this JRE version).

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#9
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 09:03:16 (permalink)
0
That's what I did...JRE 1.7.0-67 and MPLAB X 4.10.  Seems to work, other than being slow.
 
Strange that it compiled an ASM file to a larger size than my JAL compiler did.  JAL compiled to a 400 byte hex file.  I took that ASM and MPLAB X compiled it to a 460 byte hex file.
#10
du00000001
Just Some Member
  • Total Posts : 3834
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 10:24:40 (permalink)
0
Not sure whether it's really MPLAB or just my/your machine - I experience the same: MPLAB is starting slow.
Once it's up, the performance is ok.
 
Re file size:
Hex files carry some additional information, thus the file size in itself is not "all and everything".
Either check the contents - or just check what program size is indicated in the respective window.

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#11
Jerry Messina
Super Member
  • Total Posts : 537
  • Reward points : 0
  • Joined: 2003/11/07 12:35:12
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 11:21:49 (permalink) ☄ Helpfulby upand_at_them 2020/07/09 12:16:44
4 (1)
If you can get it to install, MPLABX 5.35 has the last version of MPASM v5.87
 
MPASM doesn't need java or mplabx... it'll run standalone. You can copy the folder mplabx\v5.35\mpasmx anywhere you like and uninstall mplabx if you don't need it. The executable is now named mpasmx.exe (instead of mpasmwin.exe).
 
You could even replace the old version in MPLAB 8 with it (by renaming mpasmx.exe to mpasmwin.exe) and it would run. However it wouldn't do you much good since the MPLAB 8 IDE doesn't understand newer devices. For that you'll need MPLABX v5.35
 
#12
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 18:41:15 (permalink)
0
du00000001Re file size:
Hex files carry some additional information, thus the file size in itself is not "all and everything".
Either check the contents - or just check what program size is indicated in the respective window.

 
The program itself was two words larger with MPASMX than my JAL compiler:
 
 

Attached Image(s)

#13
upand_at_them
Super Member
  • Total Posts : 576
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 18:49:50 (permalink)
0
Looks like it's two RETLW 0x00.  So MPASMX adds that to fill out the row?
#14
du00000001
Just Some Member
  • Total Posts : 3834
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 19:06:37 (permalink)
0
upand_at_them
Looks like it's two RETLW 0x00.  So MPASMX adds that to fill out the row?



Might be. Just to make sure that the contents of programmed blocks are well-defined.

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#15
dan1138
Super Member
  • Total Posts : 3708
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: MPASM with newer PICs? 2020/07/09 19:23:19 (permalink)
4 (3)
upand_at_them
du00000001Re file size:
Hex files carry some additional information, thus the file size in itself is not "all and everything".
Either check the contents - or just check what program size is indicated in the respective window.

 
The program itself was two words larger with MPASMX than my JAL compiler:



Those two words are the IDATA initialization structure that MPLINK always creates. Even when you have no initialized data.
 
The IDATA initialization structure is used by the now obsolete C18 compiler. While it can be used with MPASM it is more work than designing the application to not need initialized RAM data.
#16
Jump to:
© 2020 APG vNext Commercial Version 4.5