当前位置:网站首页>AUTOSAR从入门到精通番外篇(十)-嵌入式S19文件解析
AUTOSAR从入门到精通番外篇(十)-嵌入式S19文件解析
2022-07-06 05:36:00 【格图洛书】
01 写数据
方法有很多:
add(data, overwrite=False)add_binary(data, address=0, overwrite=False)add_binary_file(filename, address=0, overwrite=False)add_file(filename, overwrite=False)add_ihex(records, overwrite=False)add_ihex_file(filename, overwrite=False)add_srec(records, overwrite=False)add_srec_file(filename, overwrite=False)add_ti_txt(lines, overwrite=False)add_ti_txt_file(filename, overwrite=False)
使用也很简单,可以自行查找其使用手册来看看,以下挑几个来讲解下。
import bincopy bf=bincopy.BinFile() bf.add_binary("embedded_sw".encode(),0x00)
那么得到的内容是
00000000 65 6d 62 65 64 64 65 64 5f 73 77 |embedded_sw |
假设,我有另一个bin
文件is_great.bin
,我想加载到这个bf里面来,可以这样:
bf.add_binary_file("is_great.bin",0x10)
可得到像这样的结果:
00000000 65 6d 62 65 64 64 65 64
边栏推荐
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Questions d'examen écrit classiques du pointeur
- Installation de la Bibliothèque de processus PDK - csmc
- [detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
- Vulhub vulnerability recurrence 71_ Unomi
- Fluent implements a loadingbutton with loading animation
- C进阶-数据的存储(上)
- 毕业设计游戏商城
- Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
- Self built DNS server, the client opens the web page slowly, the solution
猜你喜欢
Huawei equipment is configured with OSPF and BFD linkage
Game push image / table /cv/nlp, multi-threaded start
B站刘二大人-线性回归 Pytorch
(column 22) typical column questions of C language: delete the specified letters in the string.
[leetcode daily question] number of enclaves
Excel转换为Lua的配置文件
Pointer classic written test questions
Configuration file converted from Excel to Lua
Summary of deep learning tuning tricks
Deep learning -yolov5 introduction to actual combat click data set training
随机推荐
算法-- 爬楼梯(Kotlin)
Redis消息队列
PDK工艺库安装-CSMC
Selective parameters in MATLAB functions
04. 项目博客之日志
[detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
SequoiaDB湖仓一体分布式数据库2022.6月刊
Pointer classic written test questions
Pytorch代码注意的细节,容易敲错的地方
How can large websites choose better virtual machine service providers?
Figure database ongdb release v-1.0.3
Note the various data set acquisition methods of jvxetable
js Array 列表 实战使用总结
【云原生】3.1 Kubernetes平台安装KubeSpher
PDK工藝庫安裝-CSMC
Jvxetable用slot植入j-popup
【华为机试真题详解】检查是否存在满足条件的数字组合
[untitled]
59. Spiral matrix
01. Project introduction of blog development project