• AVR Freaks

Hot!unified bootloader host application add unknown 10(hex)s to hex record

Author
dpsqps
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2019/11/25 17:45:05
  • Location: 0
  • Status: offline
2020/02/18 19:12:55 (permalink)
0

unified bootloader host application add unknown 10(hex)s to hex record

Hi, I'm using PIC32MZ EF Starter kit and trying to figure out how unified bootloader application program hex data by UDP method. (unified bootloader application v0 1 3)
 
with the wireshark I captured packets while programming through udp,
 
and this program adds random 10 in between address and data length, and in data.
 
here are some of the data I captured

#1 : Data: 01 03 02 000010040000fa 000004
#2 : Data: 01 03 02 000010041d00dd 000004
#3 : Data: 01 03 10 10 0000 10 00 03000010100000000040f30600000000
#4 : Data: 01 03 10 10 0010 10 00 0600400f0000000000601a40c010045a
#5 : Data: 01 03 10 10 0020 00 0500401300000000029d1a3cfc255a27e1
#6 : Data: 01 03 10 10 0030 00 08004010030000000008801d3cf8ffbd27
#7 : Data: 01 03 10 10 0040 00 00801c3cf07f9c27026009402058201001
#8 : Data: 01 03 10 10 0050 00 07000a248449497d02608940c0000000ed

 
and hex file I opened to program

020000040000fa
020000041d00dd
10000000030000100000000040f3060000000000a4
100010000600400f0000000000601a40c0045a7f34
100020000500401300000000029d1a3cfc255a27e1
10003000080040030000000008801d3cf8ffbd27b9
1000400000801c3cf07f9c27026009402058200162
1000500007000a248449497d02608940c0000000ed

 
I wanted to highlight extra 10's on captured part but this makes errors..
I read Bootloader Generator User's Guide and Harmony Bootloader Library Help but I don't get why they insert that.
 
Thanks to any guides or comments.
#1

4 Replies Related Threads

    nigelwright7557
    Super Member
    • Total Posts : 422
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: unified bootloader host application add unknown 10(hex)s to hex record 2020/02/18 19:21:27 (permalink)
    0
    10h means 16 bytes of data in intel hex row.
     
    #2
    dpsqps
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2019/11/25 17:45:05
    • Location: 0
    • Status: offline
    Re: unified bootloader host application add unknown 10(hex)s to hex record 2020/02/18 19:39:51 (permalink)
    0
    Thanks for the quick reply, nigelwright7557.
    However, I know the intel hex format about BB 10h means 16 bytes of data, but this is not about that...
     
    From the captured data, 10h(16) added randomly.
     
    For example,
    #1 : Data: 01 03 02 000010040000fa 000004
    Data sent <SOH> <CMD> <BB> <ADDR> <random 10h> <TT> <HH> <CC>
     
    first line of the hex file
    020000040000fa
     
    according to the Harmony bootloader library help doc, programming start the <SOH> which is 01,
    command comes next 03:program flash, and send hex record(a line of the hex file),  CRCL, CRCH, EOT
     
    from bootloader generator user's guide I saw Intel hex format
    BB AAAA TT H..H CC
    02 0000 04 0000 fa
     
    random 10h comes in between 4 bytes address and record type for the first line and this doesn't look length of the data since there are only 4 bytes of data.
     
    I'm not trying to be offensive...sorry if it seems like
     
    Thanks again for quick reply
    I hope someone can point it out what am I missing
    #3
    NorthGuy
    Super Member
    • Total Posts : 6076
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: unified bootloader host application add unknown 10(hex)s to hex record 2020/02/19 12:25:28 (permalink)
    0
    0x10 looks like a data escape character - DLE, most likely used to signify that the next character is data, not control character. Look at the source code.
    #4
    dpsqps
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2019/11/25 17:45:05
    • Location: 0
    • Status: offline
    Re: unified bootloader host application add unknown 10(hex)s to hex record 2020/02/19 17:55:29 (permalink)
    0
    Thanks for the reply, NorthGuy.
     
    I'm not a java programmer but tried to find, in what sequence they place that DLE you mentioned, from the decompiled .jar file.
     
    So, I found some part about DLE..
     

    public class MCU32MemoryModel implements IMemoryModel {
      public Map<Integer, byte[]> hexFile;
      public final byte SOF = 1;
      public final byte EOT = 4;
      public fianl byte COMMAND = 3;
      public fianl byte DLE = 16;
      public void createProgramMemoryMap() {
        this.hexFile = (Map)new HashMap<>();
      }
    }

     
    I don't know this is right one because it's from the I2CBootloaderHost-0.1.4.jar file..
    However, I couldn't find anything or just I know nothing about this codes
     
    Thanks again and I should find some other way..
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5