当前位置:网站首页>AUTOSAR from getting started to becoming proficient (10) - embedded S19 file analysis
AUTOSAR from getting started to becoming proficient (10) - embedded S19 file analysis
2022-07-06 05:40:00 【Gatulo book】
01 Writing data
There are many ways :
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)
It's also easy to use , You can find its user manual by yourself , Here are a few to explain .
import bincopy bf=bincopy.BinFile() bf.add_binary("embedded_sw".encode(),0x00)
Then the content is
00000000 65 6d 62 65 64 64 65 64 5f 73 77 |embedded_sw |
hypothesis , I have another one bin
file is_great.bin
, I want to load into this bf Come inside , It can be like this :
bf.add_binary_file("is_great.bin",0x10)
You can get results like this :
00000000 65 6d 62 65 64 64 65 64
边栏推荐
- P2802 回家
- 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
- Vulhub vulnerability recurrence 71_ Unomi
- Jushan database appears again in the gold fair to jointly build a new era of digital economy
- 巨杉数据库再次亮相金交会,共建数字经济新时代
- Quantitative description of ANC noise reduction
- 网站进行服务器迁移前应做好哪些准备?
- [QNX hypervisor 2.2 user manual]6.3.3 using shared memory (shmem) virtual devices
- 【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
- Cuda11.1 online installation
猜你喜欢
清除浮动的方式
01. 开发博客项目之项目介绍
Sequoiadb Lake warehouse integrated distributed database, June 2022 issue
Graduation design game mall
[Tang Laoshi] C -- encapsulation: classes and objects
26file filter anonymous inner class and lambda optimization
ArcGIS应用基础4 专题图的制作
Configuration file converted from Excel to Lua
(column 22) typical column questions of C language: delete the specified letters in the string.
[email protected]树莓派"/>
[email protected]树莓派
随机推荐
LeetCode_字符串反转_简单_557. 反转字符串中的单词 III
[email protected]树莓派
How to download GB files from Google cloud hard disk
Vulhub vulnerability recurrence 71_ Unomi
指针经典笔试题
UCF (summer team competition II)
自建DNS服务器,客户端打开网页慢,解决办法
02. Develop data storage of blog project
Redis message queue
SQLite add index
剑指 Offer II 039. 直方图最大矩形面积
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
B站刘二大人-线性回归 Pytorch
Pointer classic written test questions
[cloud native] 3.1 kubernetes platform installation kubespher
数字经济破浪而来 ,LTD是权益独立的Web3.0网站?
Text classification still stays at Bert? The dual contrast learning framework is too strong
Unity gets the width and height of Sprite
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
算法-- 爬楼梯(Kotlin)