• AVR Freaks

Hot!bin2hex error

Author
sdup
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2019/12/10 00:37:31
  • Location: 0
  • Status: offline
2020/01/21 03:26:49 (permalink)
0

bin2hex error

Hi,
I have a trouble with XC16 1.41.
xc16-bin2hex fails :
 
"/opt/microchip/xc16/v1.41/bin"/xc16-bin2hex dist/default/debug/NG0108S.X.debug.elf --image dist/default/debug/NG0108S -mdfp="/opt/microchip/mplabx/v5.30/packs/Microchip/dsPIC33CH-MP_DFP/1.1.84"/xc16
corrupted size vs. prev_size

 
Is somebody know why ?
 
Best regards
#1

3 Replies Related Threads

    Mysil
    Super Member
    • Total Posts : 3642
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: bin2hex error 2020/01/21 06:24:54 (permalink)
    0
    What operating system and version ?
     
        Mysil
    #2
    sdup
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/12/10 00:37:31
    • Location: 0
    • Status: offline
    Re: bin2hex error 2020/01/21 06:28:07 (permalink)
    0
    Hi Mysil,
     
    Under Linux Mint 19.3 , MPLab X 5.3 , XC16  1.41
     
    Best regards
    #3
    sdup
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/12/10 00:37:31
    • Location: 0
    • Status: offline
    Re: bin2hex error 2020/01/21 10:03:12 (permalink)
    +1 (1)
    FYI

    There is a bug in the bin2hex file. In my case, it fail when the full name of the path is exactly 26 characters (parameter --image)

    My colleague found the bug in an xmalloc (write +3 instead of +2) on line 361 of  src\acme\binutils\bin2hex.c

    Run well after had patched bin2hex source file and recompiled
     
     
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5