当前位置:网站首页>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
边栏推荐
- UCF(暑期团队赛二)
- 27io stream, byte output stream, OutputStream writes data to file
- 【LeetCode】18、四数之和
- HAC cluster modifying administrator user password
- Unity Vector3. Use and calculation principle of reflect
- 改善Jpopup以实现动态控制disable
- Web Security (V) what is a session? Why do I need a session?
- JDBC calls the stored procedure with call and reports an error
- Pytorch代码注意的细节,容易敲错的地方
- Vulhub vulnerability recurrence 73_ Webmin
猜你喜欢

PDK process library installation -csmc

Redis消息队列

SequoiaDB湖仓一体分布式数据库2022.6月刊

Implementing fuzzy query with dataframe

How can large websites choose better virtual machine service providers?
![[force buckle]43 String multiplication](/img/fd/de63e6185af4b6293e748aaf7cee29.jpg)
[force buckle]43 String multiplication

js Array 列表 实战使用总结

26file filter anonymous inner class and lambda optimization

数字经济破浪而来 ,LTD是权益独立的Web3.0网站?

C Advanced - data storage (Part 1)
随机推荐
Improve jpopup to realize dynamic control disable
Summary of deep learning tuning tricks
[effective Objective-C] - memory management
B站刘二大人-反向传播
[SQL Server Express Way] - authentification et création et gestion de comptes utilisateurs
2022半年总结
05. 博客项目之安全
Deep learning -yolov5 introduction to actual combat click data set training
算法-- 爬楼梯(Kotlin)
[leetcode daily question] number of enclaves
指針經典筆試題
Qt TCP 分包粘包的解决方法
P2802 回家
【torch】|torch.nn.utils.clip_grad_norm_
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
What impact will frequent job hopping have on your career?
28io stream, byte output stream writes multiple bytes
Questions d'examen écrit classiques du pointeur
Web Security (VI) the use of session and the difference between session and cookie
Text classification still stays at Bert? The dual contrast learning framework is too strong