I just started learning assembly coding in MPLabX IDE 5.4. Without connecting any hardware, simulator or debugger, I simply want to build an object code file and generate a listing file from an assembly file – just to check if the IDE works. But I kept getting obscure error messages even from building the simplest possible assembly lines.
As shown in figure [1 – 6], I should have the MPLabX IDE installed properly along with integration of XC8 (which seems to package with it the pic-as assembly compiler or another name for the MPASM assembler – after I struggled for hours asking and searching why a I need a C compiler for MPASM code until I realized they were bundled). I then tested building an assembly file with one single line of comment and one end
instruction. The assembly was built successfully, but I can't find anywhere for the listing file (not one *.lst file was found searching through all directories).
As soon as I add any instruction before end
, the building process failed as shown in Figure [7].
- Why is my assembly code not building?
- Why didn't my building process (failed or successful) generate the list file like everyone else
[EDIT]
Here is the assembly code file. The project was generated from step [1-6]. I just created a new assembly file (FooFile.asm) with three lines of instruction – org, clrw and end.
Best Answer
Microchip has made it very to hard to develop 8-bit assembly language applications using the latest release of MPLABX v5.40.
To help I have crafted a PIC16F84A example project you can find here.
This is the pic-as(v2.20) source code:
If you can please get a copy of the entire MPLABX project from my git repository. There are some things you need to learn about setting up an assembly language project in MPLABX that Microchip has not document in enough detail yet.
I am not an employee if Microchip and they could not pay me enough to do this for them.
I expect issues with the MPLABX tools to become more of a problem as schools start teaching PIC assembly language in the fall sessions. My goal with this answer is to try to help before more students to not get frustrated and fail because of trivial issues with lame tools.