• unix2doc


    unix2doc
    perl
    -i -p -e 's/ / /' file sed -i -e 's/$/ /' file

    doc2unix
    tr -d '
    ' < file > file2
    perl -i -p -e 's/
    //' file
    sed -i -e 's/
    //' file

    packihx 应该是使用在unix平台, 我用packihx出来的结果就是 换行少了‘ ’ 末尾少了‘ ’
    于是用这个处理。


    Intel的hex文件

    1 each Line in an Intel HEX caontains one HEX record.
    一般用于transfer程序

    2 record format
    each record is made up of five fields that are arranged in the following format:
    :llaaaatt[dd...]cc

    ':' is the colon that starts every Intek HEX record.
    'll' is the record-length field that represents the number of data bytes(dd) in the record.
    'aaaa' is the address field that represents the starting address for subsequent data in the record.
    'tt' is the field that represents the HEX record type, which may be one of the following:
      00 -- data record
      01 -- end-of-file record
      02 -- extended segment address record
      04 -- extended linear address record
    'dd' is a data filed taht represents one byte of data.
    'cc' is the checksum field  taht represents the checksum of the record. the checksum is calculated by summing the values
    of all hexadecimal digit pairs in the record module 255 and taking the two's complement.(加,取反加1)


  • 相关阅读:
    使用Spring AOP实现业务依赖解耦
    对Java提供的锁机制的一些思考
    关于数据库优化的一些想法
    漫谈使用Kafka作为MQ中间件
    数据库事务隔离引发的关于锁机制的思考
    使用Redis作为高速缓存
    Docker 构建映像
    Centos7 Nginx开机启动
    Docker 设置固定网络IP
    CentOS docker 常用命令
  • 原文地址:https://www.cnblogs.com/kwingmei/p/3279509.html
Copyright © 2020-2023  润新知