• AVR Freaks

Hot!Is it possible to build an ELF file with MPASM

Author
leadinglights
Super Member
  • Total Posts : 392
  • Reward points : 0
  • Joined: 2003/11/07 12:41:48
  • Status: offline
2019/04/23 11:49:25 (permalink)
0

Is it possible to build an ELF file with MPASM

Is it possible to build an ELF file with MPASM in MPLab X? If so, how would I select .elf instead of .coff?

I believe that it was not an option back in 2006. Quoting from JasonK at that time - has thai been changed since?
 
There are currently no plans to add support for ELF/DWARF to MPLAB C18, MPASM, and MPLINK. However, C18 recently added a new COFF extension that enabled MPLAB IDE 7.xx to watch variables of the 'short long' data type and also an extension to determine the correct floating-point format.


The reason that I ask is that I am trying to use Register Trace but I undertand that in MPLab X requires an elf file to locate the global variables.


Thanks for any help you can give,
 
Mike
#1

7 Replies Related Threads

    du00000001
    Just Some Member
    • Total Posts : 2894
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: online
    Re: Is it possible to build an ELF file with MPASM 2019/04/23 13:17:19 (permalink)
    0
    Risk an eye on the documentation of recent XC* versions!
    Whether the output is .coff or .elf is a feature of the linker. And AFAIK, recent MPLAB X versions have no problem with either. (The only reason for me to change the ouput to .elf was some post-processing tool that could only process .elf. Might be outdated already.)

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #2
    leadinglights
    Super Member
    • Total Posts : 392
    • Reward points : 0
    • Joined: 2003/11/07 12:41:48
    • Status: offline
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 07:09:50 (permalink)
    0
    Thanks du00000001 but it seems I was wrong that the Register Trace in Simulator needed .elf flies - it can use .cof files.
    I still haven't solved my problem but at least I have eliminated another straw
    Mike
    #3
    du00000001
    Just Some Member
    • Total Posts : 2894
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: online
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 08:30:47 (permalink)
    0
    "register trace"? Or "data trace"?
    Might require the respective hardware support (data breakpoints). And eventually not work on local variables.
    What hardware do you use?

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #4
    leadinglights
    Super Member
    • Total Posts : 392
    • Reward points : 0
    • Joined: 2003/11/07 12:41:48
    • Status: offline
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 10:57:09 (permalink)
    0
     
    Although "Data Trace" would be a better name for what I am trying to do, "Register Trace" sems to be the closest fit - or it was in MPLab 8.92 where it works well. Unfortunately MPLab 8.92 does not support newer MCUs such as the PIC16F1703. Register Trace is found under Window - Simulator - Register Trace in MPLab X

    I am not at the moment using any hardware as the present stage is to verify correct implementation of an algorithm. I have about 20 files each of 4000 10 bit values to be sent to the ADC registers by register injection and 3 (soon to be 5) variables to trace to files. After this has been proven I will continue on a Pickit 4 to check other parts.

    More details of this saga on https://www.microchip.com/forums/f18.aspx - Is it possible to trace values in Data memory?

    I will try to compose a short, but hopefully clear, description of the problem on this sub-forum

    Thanks,

    Mike


    #5
    du00000001
    Just Some Member
    • Total Posts : 2894
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: online
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 13:45:33 (permalink)
    0
    Simulator? Good luck with that, as the simulator has limitations of its own...
    I've been talking about "the real thing".

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #6
    leadinglights
    Super Member
    • Total Posts : 392
    • Reward points : 0
    • Joined: 2003/11/07 12:41:48
    • Status: offline
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 15:32:47 (permalink)
    0
    Oh! how I would love to work with "the real thing" but I have a few assorted Pickits and the simulator and mostly they do what I want of them ---  but not always
     
    Mike
    #7
    du00000001
    Just Some Member
    • Total Posts : 2894
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: online
    Re: Is it possible to build an ELF file with MPASM 2019/04/24 15:36:23 (permalink)
    0
    That's a near-perfect statement about the simulator:
    leadinglights
    ... mostly they do what ... but not always.
      wink: wink

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5