当前位置:网站首页>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
边栏推荐
- SQLite add index
- Installation de la Bibliothèque de processus PDK - csmc
- Auto.js学习笔记17:基础监听事件和UI简单的点击事件操作
- LeetCode_字符串反转_简单_557. 反转字符串中的单词 III
- 移植InfoNES到STM32
- Jvxetable用slot植入j-popup
- What is independent IP and how about independent IP host?
- Fluent implements a loadingbutton with loading animation
- Check the useful photo lossless magnification software on Apple computer
- JS array list actual use summary
猜你喜欢
随机推荐
[untitled]
SQLite queries the maximum value and returns the whole row of data
Jvxetable implant j-popup with slot
B站刘二大人-Softmx分类器及MNIST实现-Lecture 9
[QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备
After the project is released, index Html is cached
Vulhub vulnerability recurrence 69_ Tiki Wiki
Summary of deep learning tuning tricks
应用安全系列之三十七:日志注入
【OSPF 和 ISIS 在多路访问网络中对掩码的要求】
【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
指針經典筆試題
Modbus protocol communication exception
Self built DNS server, the client opens the web page slowly, the solution
Application Security Series 37: log injection
01. 开发博客项目之项目介绍
C AES encrypts strings
01. Project introduction of blog development project
Talking about the type and function of lens filter