diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index c08c873673..10abb2fd10 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -3,6 +3,7 @@ * * * set engine_type 49 + * FRANKENSO_QA_ENGINE * See also DEFAULT_ENGINE_TYPE * Frankenso QA 12 cylinder engine * @@ -197,6 +198,9 @@ void setFrankensoBoardTestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) { boardConfiguration->ignitionPins[6] = GPIOD_8; boardConfiguration->ignitionPins[7] = GPIOD_9; + boardConfiguration->ignitionPins[8] = GPIOE_0; // brain board, not discovery + boardConfiguration->ignitionPins[9] = GPIOE_1; // brain board, not discovery + } diff --git a/firmware/flash_erase.bat b/firmware/flash_erase_new_board.bat similarity index 57% rename from firmware/flash_erase.bat rename to firmware/flash_erase_new_board.bat index 0f5292bffd..f46708e8a8 100644 --- a/firmware/flash_erase.bat +++ b/firmware/flash_erase_new_board.bat @@ -14,6 +14,8 @@ if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND if not exist openocd/openocd.exe exit -1 -openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown +# newer discovery boards +openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown -rem openocd-0.8.0.exe -f interface/stlink-v2.cfg -f board/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown \ No newline at end of file +# older disocovery boards or cheap eBay ST-Link +#openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown \ No newline at end of file diff --git a/firmware/flash_erase_old_board.bat b/firmware/flash_erase_old_board.bat new file mode 100644 index 0000000000..c7e0a77a96 --- /dev/null +++ b/firmware/flash_erase_old_board.bat @@ -0,0 +1,21 @@ +rem st-link_cli -c SWD ur -ME +rem 0x100000 would erase both code and configuration +rem use 0x080000 if you want to erase only configuratio +echo I am flash_erase.bat + +rem weird, it used to be much nicer with openocd 0.8.0, file location was not broken? +rem maybe https://sourceforge.net/p/openocd/tickets/105/ ? + +pwd +cp -r ../misc/install/openocd . +ls -l + +if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND +if not exist openocd/openocd.exe exit -1 + + +# newer discovery boards +#openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown + +# older disocovery boards or cheap eBay ST-Link +openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown \ No newline at end of file