• AVR Freaks

Hot!Code incompletely loaded

Author
JoseColin
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2015/11/16 12:18:30
  • Location: 0
  • Status: offline
2020/06/30 05:12:41 (permalink)
0

Code incompletely loaded

Hello,
 
I am working with MPLABx 5.30 and when I want to programm my controllers with the IPE interface and the ICD3 I get the following warning:


"Warning: C:\Projekte_c\SCTSi_IoL\IoL_Device_Repository\Application\dist\Lieferant\production\Application.production.unified.hex contains code that is located at addresses that do not exist on the PIC18F46K22.
Code incompletely loaded."
 
Apparently there is no further problem after programming the PIC.
I checked already the hex file an all addresses listed are valid for this Pic.
My guess is the warning comes from the configuration bits that are set at really high addresses for this pic controller.
 
Anyone has experienced this warning and why is the warning issued?
 
Thanks,
José E. Colín.
post edited by JoseColin - 2020/06/30 05:39:47
#1

4 Replies Related Threads

    JoseColin
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2015/11/16 12:18:30
    • Location: 0
    • Status: offline
    Re: Code incompletely loaded 2020/07/01 00:54:01 (permalink)
    0
    I have tried with the IPE version 3.0 and it does not issue the warning!
    #2
    MShouk
    Starting Member
    • Total Posts : 31
    • Reward points : 0
    • Joined: 2012/05/19 00:52:26
    • Location: Chandler, Arizona
    • Status: offline
    Re: Code incompletely loaded 2020/07/01 10:50:09 (permalink)
    0
    Hello Jose. Would you have a mock hex file to share?
    #3
    JoseColin
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2015/11/16 12:18:30
    • Location: 0
    • Status: offline
    Re: Code incompletely loaded 2020/07/02 02:53:15 (permalink)
    0
    Hi MShouk,

    sure, I edited the hex file and removed my application, just left first and last addresses.
    What I found is that there is some code generated at the address 0x1E000 and that is what is triggering the warning, you can see it at the line with the instruction ":020000040001F9". At first look I missunderstood these addresses and thought were part of Eeprom, now realize that it is in an invalid address for this PIC.
     
    The question is why the linker is placing code at these addresses. It just does not make any sense!
    I searched in my code and I did not place any data in that range. It is unimplemented and the data sheet specifies that it reads 0.
     
    I am working with the MPLABx IDE v5.25 and The compiler XC8 (v1.36) and PRO operation mode.
     
    Greeings,
    José E. Colín
    post edited by JoseColin - 2020/07/02 02:59:13
    #4
    MShouk
    Starting Member
    • Total Posts : 31
    • Reward points : 0
    • Joined: 2012/05/19 00:52:26
    • Location: Chandler, Arizona
    • Status: offline
    Re: Code incompletely loaded 2020/07/08 12:30:21 (permalink)
    0
    You can check your map file (typically under dist/default/production) and see if there are any references to that address
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5