当前位置:网站首页>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
边栏推荐
- First acquaintance with CDN
- 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
- UCF (summer team competition II)
- B站刘二大人-Softmx分类器及MNIST实现-Lecture 9
- jdbc使用call调用存储过程报错
- Fluent implements a loadingbutton with loading animation
- Installation de la Bibliothèque de processus PDK - csmc
- Configuration file converted from Excel to Lua
- Jvxetable用slot植入j-popup
- JS array list actual use summary
猜你喜欢

Vulhub vulnerability recurrence 69_ Tiki Wiki
【SQL server速成之路】——身份验证及建立和管理用户账户

剑指 Offer II 039. 直方图最大矩形面积

清除浮动的方式

02. 开发博客项目之数据存储

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

28io stream, byte output stream writes multiple bytes

27io stream, byte output stream, OutputStream writes data to file

PDK process library installation -csmc

pix2pix:使用条件对抗网络的图像到图像转换
随机推荐
UCF (summer team competition II)
【华为机试真题详解】统计射击比赛成绩
[cloud native] 3.1 kubernetes platform installation kubespher
Tetris
In 2022, we must enter the big factory as soon as possible
Pix2pix: image to image conversion using conditional countermeasure networks
2022半年总结
Force buckle 1189 Maximum number of "balloons"
Vulhub vulnerability recurrence 68_ ThinkPHP
UCF(2022暑期团队赛一)
[leetcode] 18. Sum of four numbers
[JVM] [Chapter 17] [garbage collector]
Pickle and savez_ Compressed compressed volume comparison
Cuda11.1 online installation
PDK process library installation -csmc
Selective parameters in MATLAB functions
Jvxetable implant j-popup with slot
备忘一下jvxetable的各种数据集获取方法
Problems encountered in installing mysql8 on MAC
B站刘二大人-Softmx分类器及MNIST实现-Lecture 9