dfu_java/src/test/java/com/rusefi/dfu/HexReaderSandbox.java

19 lines
487 B
Java

package com.rusefi.dfu;
import cz.jaybee.intelhex.IntelHexException;
import java.io.FileInputStream;
import java.io.IOException;
public class HexReaderSandbox {
public static void main(String[] args) throws IOException, IntelHexException {
FlashRange range = new FlashRange(0x8000000, 0x100000);
HexImage image = HexImage.loadHexToBuffer(new FileInputStream("rusefi.hex"), range);
System.out.println("Total received " + image.getTotalBytes());
}
}