From 6b27afcf00e35546c332103be5e2eee254314ae3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 26 Jan 2019 12:13:35 -0500 Subject: [PATCH] progress but still does not work --- firmware/config/boards/STM32F407VET6_Mini.bat | 10 +++++++--- firmware/flash_dfu.bat | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/STM32F407VET6_Mini.bat b/firmware/config/boards/STM32F407VET6_Mini.bat index 3cb189f5a4..0d7f52d162 100644 --- a/firmware/config/boards/STM32F407VET6_Mini.bat +++ b/firmware/config/boards/STM32F407VET6_Mini.bat @@ -1,7 +1,11 @@ echo "Compiling for https://rusefi.com/forum/viewtopic.php?f=4&t=1498" cd ../.. -set EXTRA_PARAMS="-DEFI_COMMUNICATION_PIN=GPIOB_9 -DSTM32_PLLM_VALUE=25" -make clean -make +rem TODO: somehow this -DDUMMY is helping us to not mess up the parameters, why?! +rem https://github.com/rusefi/rusefi/issues/684 +set EXTRA_PARAMS="-DDUMMY -DEFI_COMMUNICATION_PIN=GPIOB_9 -DSTM32_PLLM_VALUE=25 -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS" +make -j8 clean +make -j8 +rm -f build/rusefi.dfu +dir build ..\misc\hex2dfu\HEX2DFU.exe build/rusefi.hex -out build/rusefi.dfu diff --git a/firmware/flash_dfu.bat b/firmware/flash_dfu.bat index 9ccd20c0fb..c75562c4ad 100644 --- a/firmware/flash_dfu.bat +++ b/firmware/flash_dfu.bat @@ -5,6 +5,9 @@ rem dfu-util -a 0 -D rusefi_release.dfu -R rem ..\misc\hex2dfu\HEX2DFU.exe build/rusefi.hex -out build/rusefi.dfu rem DfuSeCommand.exe -c -d --fn build/rusefi.dfu +rem to read from comtroller use +rem DfuSeCommand.exe -c -u --fn downloaded.dfu + rem Note that DfuSe_Demo_V3.0.6_Setup.exe does not install "stm32 bootloader" device drivers automaticaly rem You need to point Windows at a relevant folder inside C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\Driver