STM32F407VET6 Mini first steps

This commit is contained in:
rusefi 2019-01-25 23:42:49 -05:00
parent 8d3ccfd31f
commit 61a5686a74
4 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
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
..\misc\hex2dfu\HEX2DFU.exe build/rusefi.hex -out build/rusefi.dfu

View File

@ -77,7 +77,9 @@
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
#ifndef STM32_PLLM_VALUE
#define STM32_PLLM_VALUE 8
#endif
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7

View File

@ -970,6 +970,9 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
engineConfiguration->alternatorPwmFrequency = 300;
#ifndef EFI_COMMUNICATION_PIN
#define EFI_COMMUNICATION_PIN GPIOD_15
#endif
engineConfiguration->communicationLedPin = GPIOD_15; // blue LED on discovery
engineConfiguration->runningLedPin = GPIOD_12; // greeb LED on discovery
setDefaultBasePins(PASS_ENGINE_PARAMETER_SIGNATURE);

View File

@ -2,4 +2,10 @@
rem on linux that would be
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 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
DfuSeCommand.exe -c -d --fn rusefi.dfu