configurable FLASH_ADDR

This commit is contained in:
rusefi 2019-01-27 17:53:11 -05:00
parent aba0f44df5
commit 9f2f9ccd3b
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,8 @@ echo "Compiling for https://rusefi.com/forum/viewtopic.php?f=4&t=1498"
cd ../.. cd ../..
rem TODO: somehow this -DDUMMY is helping us to not mess up the parameters, why?! rem TODO: somehow this -DDUMMY is helping us to not mess up the parameters, why?!
rem https://github.com/rusefi/rusefi/issues/684 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" rem this board has only 512K flash so using custom FLASH_ADDR
set EXTRA_PARAMS="-DDUMMY -DEFI_COMMUNICATION_PIN=GPIOB_9 -DSTM32_PLLM_VALUE=25 -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS -DFLASH_ADDR=0x08070000"
make -j8 clean make -j8 clean
make -j8 make -j8
rm -f build/rusefi.dfu rm -f build/rusefi.dfu

View File

@ -39,7 +39,9 @@ extern engine_configuration_s *engineConfiguration;
* todo: an ideal solution would be to define this address in the .ld / .icf mapping file * todo: an ideal solution would be to define this address in the .ld / .icf mapping file
*/ */
#ifndef FLASH_ADDR
#define FLASH_ADDR 0x080E0000 #define FLASH_ADDR 0x080E0000
#endif
#define PERSISTENT_SIZE sizeof(persistent_config_container_s) #define PERSISTENT_SIZE sizeof(persistent_config_container_s)