mitigate F7 flash error by making the image smaller (#3859)

* grumble

* do it for all F7
This commit is contained in:
Matthew Kennedy 2022-02-19 12:56:44 -08:00 committed by GitHub
parent 4763340e5c
commit 07e922bb4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -56,6 +56,11 @@
#define EFI_USE_COMPRESSED_INI_MSD #define EFI_USE_COMPRESSED_INI_MSD
// Disable ini ramdisk as a mitigation of https://github.com/rusefi/rusefi/issues/3775
// See STM32F7.ld for more info
#undef EFI_EMBED_INI_MSD
#define EFI_EMBED_INI_MSD FALSE
#undef ENABLE_PERF_TRACE #undef ENABLE_PERF_TRACE
#define ENABLE_PERF_TRACE TRUE #define ENABLE_PERF_TRACE TRUE

View File

@ -26,6 +26,9 @@
#define EFI_USE_COMPRESSED_INI_MSD #define EFI_USE_COMPRESSED_INI_MSD
#undef EFI_EMBED_INI_MSD
#define EFI_EMBED_INI_MSD TRUE
// H7 has dual bank, so flash on its own (low priority) thread so as to not block any other operations // H7 has dual bank, so flash on its own (low priority) thread so as to not block any other operations
#define EFI_FLASH_WRITE_THREAD TRUE #define EFI_FLASH_WRITE_THREAD TRUE

View File

@ -27,7 +27,8 @@
MEMORY MEMORY
{ {
bl : org = 0x08000000, len = 16k /* bootloader section */ bl : org = 0x08000000, len = 16k /* bootloader section */
flash0 (rx) : org = DEFINED(BOOTLOADER) ? 0x08008000 : 0x08000000, len = DEFINED(BOOTLOADER) ? (768k - 32k) : 768k /* change address & length if bootloader */ /* TODO: 512k flash limit is a mitigation for https://github.com/rusefi/rusefi/issues/3566 and https://github.com/rusefi/rusefi/issues/3775 */
flash0 (rx) : org = DEFINED(BOOTLOADER) ? 0x08008000 : 0x08000000, len = DEFINED(BOOTLOADER) ? (512k - 32k) : 512k /* change address & length if bootloader */
flash1 (rx) : org = DEFINED(BOOTLOADER) ? 0x00208000 : 0x00200000, len = DEFINED(BOOTLOADER) ? (2m - 32k) : 2m /* Flash as ITCM */ flash1 (rx) : org = DEFINED(BOOTLOADER) ? 0x00208000 : 0x00200000, len = DEFINED(BOOTLOADER) ? (2m - 32k) : 2m /* Flash as ITCM */
flash2 (rx) : org = 0x00000000, len = 0 flash2 (rx) : org = 0x00000000, len = 0
flash3 (rx) : org = 0x00000000, len = 0 flash3 (rx) : org = 0x00000000, len = 0