ASM absolutely located

Topics covered here include Microchip PICmicro assemblers, linkers and librarian programs.

ASM absolutely located

Postby Jorgef » Thu May 28, 2020 7:09 pm

Hi

After a long period away I'm back to PICs, maybe...

How can I manage to write an absolutelly located ASM program, using XC8.
It looks like mpasm is no longer available on 64 bits OSs



UBUNTU 18.04 LTS
MPLABX 5,35
PIC16LF18324
XC8 1,36
MCC.... better forget it, crashes 80% of the time


Thank you
Best regards
Jorge
Jorgef
Verified identity
 
Posts: 19
Joined: Wed May 30, 2018 8:46 pm
PIC experience: Professional 5+ years with MCHP products

Re: ASM absolutely located

Postby vloki » Fri May 29, 2020 11:04 am

My MPLABX 5.35 (Windows installation) seems to have MPASMX version 5.87
and the 16F18324 is listed in the Supported Device List.

MPASMX can be selcted when creating a new project for that PIC.

In my MPLABX 5.40 installation the is no mpasm,
but it seems to be possible to select one from older versions
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: ASM absolutely located

Postby Jorgef » Fri May 29, 2020 7:29 pm

Hi

Yes, I have MPASMX 5,87 installed, but, besides the warning I mentioned earlier, it also doesn't build.
I think it doesn't because of the makefile, but I decided not to go under that hood.
Meanwhile I dedicated some time to dig documentation and examples on how to do it with XC8, and after same time studying the beast, I get to build some sample code. But was unable to make the accept a user defined psect, necessary to force the location of the code were I want it.
Instead of spending more time digging around the idiosyncrasies of the XC8 / pic-as thing, I installed MPLABX 4.20 and I'm up and running with the good old mpasm.

Thank you for the help.
Best regards
Jorge
Jorgef
Verified identity
 
Posts: 19
Joined: Wed May 30, 2018 8:46 pm
PIC experience: Professional 5+ years with MCHP products


Return to MPASM, MPLINK, MPLIB

Who is online

Users browsing this forum: No registered users and 2 guests

cron