当前位置:网站首页>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
边栏推荐
- 【经验】UltralSO制作启动盘时报错:磁盘/映像容量太小
- Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
- [QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备
- 04. 项目博客之日志
- UCF(暑期团队赛二)
- jdbc使用call调用存储过程报错
- HAC cluster modifying administrator user password
- SequoiaDB湖仓一体分布式数据库2022.6月刊
- Self built DNS server, the client opens the web page slowly, the solution
- 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
猜你喜欢
随机推荐
Talking about the type and function of lens filter
28io stream, byte output stream writes multiple bytes
B站刘二大人-Softmx分类器及MNIST实现-Lecture 9
Deep learning -yolov5 introduction to actual combat click data set training
Detailed summary of SQL injection
[SQL Server Express Way] - authentification et création et gestion de comptes utilisateurs
02. Develop data storage of blog project
C进阶-数据的存储(上)
B站刘二大人-多元逻辑回归 Lecture 7
[Tang Laoshi] C -- encapsulation: classes and objects
Algorithm -- climbing stairs (kotlin)
01. Project introduction of blog development project
Web Security (VI) the use of session and the difference between session and cookie
What preparations should be made for website server migration?
59. Spiral matrix
MySQL advanced learning summary 9: create index, delete index, descending index, and hide index
26file filter anonymous inner class and lambda optimization
JS array list actual use summary
C AES encrypts strings
图数据库ONgDB Release v-1.0.3