• AVR Freaks

Hot!Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x00001f00

Author
joaquin.bonilla@mfjenterprises.com
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2019/07/12 11:16:57
  • Location: 0
  • Status: offline
2021/01/25 21:22:25 (permalink)
0

Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x00001f00

After correct first step clean & build PIC16F886 MPASM compilation , ICD4, REAL ICE & PICkit3 Debuggers provided a similar error message:
 
......
MPLINK 5.09, LINKER
Device Database Version 1.49
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x00001f00, length=0x000001fe
Errors : 1

nbproject/Makefile-default.mk:129: recipe for target 'dist/default/debug/XDA.X.debug.cof' failed
make[2]: Leaving directory 'C:/SS/PIC Files/XDA/XDA.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/SS/PIC Files/XDA/XDA.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [dist/default/debug/XDA.X.debug.cof] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
 
BUILD FAILED (exit value 2, total time: 4s)

The MPLAB X Project Properties mpasm global option is set up as "Build in absolute mode".

What could be going on?
 
 
 
 
#1

4 Replies Related Threads

    ric
    Super Member
    • Total Posts : 29870
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x0000 2021/01/26 12:28:51 (permalink)
    +1 (1)
    It appears you are trying to place some code at the very top of memory, which is reserved for the debugger in debug mode.
     

    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
    joaquin.bonilla@mfjenterprises.com
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2019/07/12 11:16:57
    • Location: 0
    • Status: offline
    Re: Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x0000 2021/01/26 13:25:09 (permalink)
    0
    That must be it.... My Code use up to 0x1FA9 PGM. (1FFF PGM MAX).
     
    I haven't found so far in Data Sheet or Google the specific PIC16F886 program memory assigned to the debugger in debug mode.
     
    #3
    joaquin.bonilla@mfjenterprises.com
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2019/07/12 11:16:57
    • Location: 0
    • Status: offline
    Re: Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x0000 2021/01/26 13:27:55 (permalink)
    0
    In Debug Mode some of the processors memory resources, are reserved to carry out the debug operations. 
    For the processor PIC16F886, these are the reserved resources:
    Program Memory reserved in debug mode : 0x1F00-0x1FFF
    Data Memory reserved in debug mode : 
    0x0, 0x70, 0x80, 0xF0, 0x100, 0x170, 0x180, 0x1E5-0x1F0
     That is the reason, that the code may build in the release mode/ production mode, but not in the debug mode.
    post edited by joaquin.bonilla@mfjenterprises.com - 2021/01/26 13:48:23
    #4
    ric
    Super Member
    • Total Posts : 29870
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Error - section 'dbgP0' can not fit the absolute section. Section 'dbgP0' start=0x0000 2021/01/26 14:28:34 (permalink)
    0
    I guess you found that in the online help for the debugger. (Reserved resources)

    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!
    #5
    Jump to:
    © 2021 APG vNext Commercial Version 4.5