• AVR Freaks

PIC18F24K42 Linker issue

Author
mauriziotripodi
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2003/11/07 12:49:18
  • Status: offline
2019/06/24 04:05:04 (permalink)
0

PIC18F24K42 Linker issue

I'm developing an application using the 18F24K42 pic, with the following environment:
 
  • MPLABX version: 5.2
  • Language used: Assembler, version 5.84
  • Debugging environmnent: MPLAPX Simulator.
I found a strange beheaviour  with the Linker in the suite of mpasm V5.84. It seems with a specific instruction of the PIC (lfsr) the linker generate the wrong absolute code. The attached picture shows the problem: The variable I2CBuff has an address of 100H (can be seen at the .map file printout) In the Program Memory view (in the Simulation environment) the instruction:
lfsr FSR0,I2CBuff is translated with
lfsr FSR0, 400H
I tryed to use an absolute value to load:
lfsr FSR0,100H and this works (as seen on the Program window)
 
Any suggestions?
 
Maurizio

Attached Image(s)

#1

6 Replies Related Threads

    ric
    Super Member
    • Total Posts : 22647
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC18F24K42 Linker issue 2019/06/24 16:37:02 (permalink)
    0
    Image is shrunk too much to read.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    1and0
    Access is Denied
    • Total Posts : 9287
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: PIC18F24K42 Linker issue 2019/06/24 19:57:02 (permalink)
    0
    I have not tested your finding yet, but it appears they have not fixed this bug yet. :(
     
    https://www.microchip.com/forums/m1065012.aspx
     
    #3
    1and0
    Access is Denied
    • Total Posts : 9287
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: PIC18F24K42 Linker issue 2019/06/24 23:30:30 (permalink)
    4 (1)
    I just updated to the latest MPLAB X v5.20 with the latest MPASM v5.84 and confirmed this bug, again. Ten months and three MPLAB X versions later after a support ticket was submitted, this bug is still not fixed. sad: sad
     
    post edited by 1and0 - 2019/06/24 23:33:15
    #4
    mauriziotripodi
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2003/11/07 12:49:18
    • Status: offline
    Re: PIC18F24K42 Linker issue 2019/06/25 11:13:36 (permalink)
    0
    Ric,
     
    find attached a better viewable image.
     
    Maurizio
     
     
    #5
    mauriziotripodi
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2003/11/07 12:49:18
    • Status: offline
    Re: PIC18F24K42 Linker issue 2019/06/25 11:15:52 (permalink)
    0
    1and0, I submitted a trouble ticket to Microschip support....will see.
     
    Are you aware of any other trouble with that family, for example with the I2C Master peripheral?
     
    Maurizio
     
    #6
    mauriziotripodi
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2003/11/07 12:49:18
    • Status: offline
    Re: PIC18F24K42 Linker issue 2019/06/25 22:14:48 (permalink)
    0
    Find attached a simple project that replicates the issue.
     
    Maurizio
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5