console uses .hex Looks like I broke MRE and Proteus with OpenBLT #4199
console to use .bin file
This commit is contained in:
parent
4e0f28df04
commit
e0da9e1c37
|
@ -46,8 +46,6 @@ else
|
||||||
# standalone images (for use with no bootloader)
|
# standalone images (for use with no bootloader)
|
||||||
cp build/rusefi.bin deliver/
|
cp build/rusefi.bin deliver/
|
||||||
cp build/rusefi.dfu deliver/
|
cp build/rusefi.dfu deliver/
|
||||||
# rusEFI console DFU uses rusefi*.hex file
|
|
||||||
cp build/rusefi.hex deliver/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# bootloader and composite image
|
# bootloader and composite image
|
||||||
|
@ -65,11 +63,8 @@ if [ $USE_OPENBLT = "yes" ]; then
|
||||||
echo "$SCRIPT_NAME: invoking hex2dfu for composite rusEFI+OpenBLT image"
|
echo "$SCRIPT_NAME: invoking hex2dfu for composite rusEFI+OpenBLT image"
|
||||||
$HEX2DFU -i build-openblt/openblt_$PROJECT_BOARD.hex -i build/rusefi.hex -C 0x1C -o deliver/rusefi.dfu -b deliver/rusefi.bin
|
$HEX2DFU -i build-openblt/openblt_$PROJECT_BOARD.hex -i build/rusefi.hex -C 0x1C -o deliver/rusefi.dfu -b deliver/rusefi.bin
|
||||||
#todo: how to create 'signed' hex and srec? Do we need?
|
#todo: how to create 'signed' hex and srec? Do we need?
|
||||||
# rusEFI console DFU uses rusefi*.hex file TODO FIX ME
|
|
||||||
cp build/rusefi.hex deliver/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "$SCRIPT_NAME: build folder content:"
|
echo "$SCRIPT_NAME: build folder content:"
|
||||||
ls -l build
|
ls -l build
|
||||||
|
|
||||||
|
|
|
@ -179,14 +179,14 @@ public class DfuFlasher {
|
||||||
|
|
||||||
private static String getDfuWriteCommand() throws FileNotFoundException {
|
private static String getDfuWriteCommand() throws FileNotFoundException {
|
||||||
String prefix = "rusefi";
|
String prefix = "rusefi";
|
||||||
String suffix = ".hex";
|
String suffix = ".bin";
|
||||||
String hexFileName = IniFileModel.findFile(Launcher.INPUT_FILES_PATH, prefix, suffix);
|
String fileName = IniFileModel.findFile(Launcher.INPUT_FILES_PATH, prefix, suffix);
|
||||||
if (hexFileName == null)
|
if (fileName == null)
|
||||||
throw new FileNotFoundException("File not found " + prefix + "*" + suffix);
|
throw new FileNotFoundException("File not found " + prefix + "*" + suffix);
|
||||||
// we need quotes in case if absolute path contains spaces
|
// we need quotes in case if absolute path contains spaces
|
||||||
String hexAbsolutePath = quote(new File(hexFileName).getAbsolutePath());
|
String hexAbsolutePath = quote(new File(fileName).getAbsolutePath());
|
||||||
|
|
||||||
return DFU_BINARY_LOCATION + "/" + DFU_BINARY + " -c port=usb1 -w " + hexAbsolutePath + " -v -s";
|
return DFU_BINARY_LOCATION + "/" + DFU_BINARY + " -c port=usb1 -w " + hexAbsolutePath + " 0x08000000 -v -s";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String quote(String absolutePath) {
|
private static String quote(String absolutePath) {
|
||||||
|
|
Loading…
Reference in New Issue