nucleo-h7 bundle does not flash using st-link #5486

only:stm32h743_nucleo
This commit is contained in:
Andrey 2023-08-05 14:54:24 -04:00
parent 03a714055f
commit 95dea5b35e
3 changed files with 9 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import java.net.URL;
import java.util.concurrent.atomic.AtomicReference;
public class rusEFIVersion {
public static final int CONSOLE_VERSION = 20230731;
public static final int CONSOLE_VERSION = 20230805;
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
public static long classBuildTimeMillis() {

View File

@ -1,6 +1,7 @@
package com.rusefi.maintenance;
import com.rusefi.Launcher;
import com.rusefi.core.io.BundleUtil;
import com.rusefi.ui.StatusWindow;
import org.jetbrains.annotations.NotNull;
@ -92,6 +93,10 @@ public class FirmwareFlasher {
@NotNull
public static HwPlatform getHardwareKind() {
String bundle = BundleUtil.readBundleFullNameNotNull();
if (bundle.contains("h7"))
return HwPlatform.H7;
// how does this "hardware" key even work? does it work? shall we rely on bunbdle name like above?
String value = getConfig().getRoot().getProperty("hardware", HwPlatform.F4.name());
return HwPlatform.resolve(value);
}

View File

@ -2,7 +2,9 @@ package com.rusefi.maintenance;
public enum HwPlatform {
F4("stm32f4discovery.cfg"),
F7("st_nucleo_f7.cfg");
F7("st_nucleo_f7.cfg"),
H7("st_nucleo_h743zi.cfg"),
;
private final String openOcdName;