mirror of
https://github.com/siemens-mobile-hacks/node-sie-serial.git
synced 2026-11-25 17:17:17 +00:00
save ff
This commit is contained in:
parent
f9265362eb
commit
5a4e1aac6a
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import fs from 'node:fs';
|
||||
import { parseArgs } from 'node:util';
|
||||
import { ChaosLoader } from "../src/index.js";
|
||||
import { openPort } from "./utils.js";
|
||||
|
|
@ -49,6 +50,8 @@ const result = await chaos.readMemory(0xA0000000, 1024 * 1024 * 64, {
|
|||
console.timeEnd("readMemory");
|
||||
console.log(result);
|
||||
|
||||
fs.writeFileSync("ff.bin", result.buffer)
|
||||
|
||||
/*
|
||||
// test writing to ram
|
||||
await chaos.writeMemory(0xA8000000, Buffer.from([ 0xDE, 0xAD, 0xBE, 0xEE, 0xFF ]));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue