rusefillc
0882e723e1
only:dead HW QC
2024-10-11 18:42:11 -04:00
Andrey Gusakov
2173b2a18a
flash_main: fix STM32F7 2Mb single bank never write pending settings
2024-08-09 18:25:31 -04:00
Andrey Gusakov
3557d96d3b
flash: renames only
...
allowFlashWhileRunning() -> mcuCanFlashWhileRunning() - true if MCU
can flash while continue code execution. Dual bank mode on STM32.
New allowFlashWhileRunning() return true if MCU can write its own
flash while keep runnig OR settings are stored in external storage.
2024-08-09 18:25:31 -04:00
Andrey Gusakov
73414d5766
flash_main: compile time checks
2024-08-09 18:25:31 -04:00
rusefi
15649b4ff8
a bit more explicit about EFI_FLASH_WRITE_THREAD
...
also borrowing from https://github.com/rusefi/rusefi/pull/6778
2024-08-07 19:13:31 -04:00
Andrey Gusakov
44aeebb76f
Revert "better place for EFI_STORAGE_MFS_EXTERNAL default"
...
This reverts commit 28d4170cd8a34f8e26a4eae95927be4ad7baa219.
2024-07-29 09:21:47 -04:00
Andrey Gusakov
88d5f8d380
Revert "flash_main: want to know efi features"
...
This reverts commit 2530f51a455e7775b72761f57ba7f997d6fa590f.
2024-07-29 09:21:47 -04:00
Andrey Gusakov
a3f0876735
flash_main: want to know efi features
2024-07-29 09:21:47 -04:00
Andrey Gusakov
5b43fe9282
flash_main: measure settings write time, MFS settings erase command
2024-07-29 09:21:47 -04:00
Andrey Gusakov
881f0ff204
better place for EFI_STORAGE_MFS_EXTERNAL default
2024-07-29 09:21:47 -04:00
Andrey Gusakov
543219745a
flash: EFI_STORAGE_MFS_EXTERNAL is FALSE by default
2024-07-29 09:21:47 -04:00
Andrey Gusakov
888eb9396a
mpu_util: always start flash writer thread for external storage
2024-07-29 09:21:47 -04:00
Andrey Gusakov
aa62fea109
flash_main: writeToFlashIfPending() do nothing if EFI_FLASH_WRITE_THREAD
2024-07-29 09:21:47 -04:00
Matthew Kennedy
27e0a80c82
compile-time enforcement of printf strings
...
only:uaefi
2024-06-10 19:11:35 -04:00
rusefillc
d706537893
refactoring: removing validateConfiguration by moving logic into another similar method
2024-06-09 11:33:17 -04:00
rusefillc
7affcba3ab
preCalculate does not belong in validateConfiguration
2024-06-09 11:29:05 -04:00
Andrey
bf5edbb02b
variable shadowing should be avoided #5676
2024-05-23 14:10:23 -04:00
rusefi
944a9375d3
EFI_CONFIGURATION_STORAGE reducing code duplication
2024-05-05 15:52:39 -04:00
andreika-git
74b2ff6468
code smell: watchdog magic constants https://github.com/rusefi/rusefi/issues/5758
2023-11-29 09:59:15 -05:00
andreika-git
585ca0c829
Initial support for watchdog
2023-11-28 15:49:12 -05:00
Andrey G
ed8af771ac
at_start_f435: enable MFS for internal flash ( #5687 )
...
* Rename EFI_INTERNAL_FLASH to EFI_STORAGE_INT_FLASH
This define enables use of RE custom flash driver for storing
settings to internal flash.
* at_start_f435: enable MFS for settings storing in internal flash
* MRE: fix special build
* kinetis: fix flash_int.cpp vs flash_int.c mess
* at32: allow allowFlashWhileRunning()
* flash_main: supress warning
2023-11-03 13:08:35 -04:00
Andrey G
1eea6c946b
Prepare for MFS on internal flash ( #5686 )
...
* Rename EFI_STORAGE_EXT_SNOR to EFI_STORAGE_MFS
Just to reduce confusion. MFS is going to be used for AT32 internal
flash.
* MFS: hide low level stuff to board file
MFS can be located on internal or external flash/eeprom.
This is board-dependent, so hide intialization and configuration
to board file.
This should also help switching to MFS on internal flash too.
* Fix simulator
* Fix comments
2023-11-03 07:30:31 -04:00
rusefillc
ffd1ff4a17
reducing code duplication - internal flash order of operations ( #5672 )
...
* reducing code duplication
* reducing code duplication
---------
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-11-01 07:50:35 -04:00
rusefi
e4f60c72c9
much better field name
2023-10-31 10:29:14 -04:00
Matthew Kennedy
f0a79dc654
don't need (void)
2023-09-09 20:08:48 -04:00
rusefi
e8c45a2e7d
refactoring: reducing code duplication. Also, do we even care for critical error codes?!
2023-08-20 22:23:44 -04:00
Andrey G
90698dff5e
MFS: MFS_WARN_REPAIR and MFS_WARN_GC are also good ( #5363 )
2023-07-01 11:06:31 -04:00
rusefillc
5c194059c0
reducing enum confusion
2023-06-19 00:37:11 -04:00
rusefi
b0f1e6dfd3
Technical debt: ENUM_32_BITS #3874
...
poking the bear
2023-06-01 01:45:53 -04:00
Andrey Gusakov
0c41a02124
flash_main: more checks when loading config from MFS
...
Signed-off-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-08 07:42:39 -04:00
Matthew Kennedy
61e5b4b1ad
change ObdCode to enum class builds firmware
2023-04-29 00:44:00 -04:00
rusefi
72c6dae8fe
refactoring
2023-03-16 15:50:31 -04:00
Andrey G
e989859cb8
S105: more support ( #4937 )
...
* s105: ts_name for battery input
* flash: allow one copy for devices with 512K of flash
* s105: all outputs are open drain
2023-01-04 16:39:17 -05:00
Matthew Kennedy
b76a7cbcd8
simulator reads/writes configuration ( #4605 )
...
* simulator reads/writes configuration
* c_str
* include order
2022-09-23 08:47:50 -04:00
rusefillc
a3d86c61f2
"Blip" with trigger error on several boards #4552
...
exploratory watchdog
2022-09-09 18:27:16 -04:00
rusefillc
e89f553d55
Refactor or add code comments fix #4555
2022-09-09 18:11:27 -04:00
Andrey
ab4b451195
os_access.h dead?
2022-09-07 15:56:45 -04:00
Matthew Kennedy
0937de1b84
flash storage uses 32 bit CRC ( #3984 )
...
* better flash logic and warning message
* comment
* s
* ssssss
* simplify logic
* use 32 bit crc
* s
* don't test things that don't exist
2022-03-08 23:17:35 -05:00
rusefillc
cb4a66c840
something fallthrough something Windows jenkins has different version
...
Matt do we need explicit compiler version check for simulator and unit tests?
2022-03-06 08:39:44 -05:00
Matthew Kennedy
3621775854
better flash logic and warning message ( #3975 )
...
* better flash logic and warning message
* comment
* s
* ssssss
* simplify logic
* s
2022-03-06 06:20:49 -06:00
Matthew Kennedy
c6f45c5022
warnings fixes ( #3851 )
...
* unused things
* !!! actual bug !!!
* dead
* unused
* unused
* multi-bus lua RX was just broken
* make the compiler angry about it
* dead config
* alphax 2
* just call, no store
* compiler too angry
2022-01-31 18:37:42 -05:00
Matthew Kennedy
a37c9bca9e
Remove the EFI_NO_CONFIG_WORKING_COPY option ( #3630 )
...
* no working copy
* oops
2021-11-29 16:44:45 -05:00
Matthew Kennedy
3334a6963c
oh my god we've had no asserts ( #3595 )
2021-11-22 17:52:03 -05:00
Scott Smith
70ad9724c0
Make engine* and friends be const pointers in production. ( #3564 )
...
This allows the compiler to see through the pointer and make accesses faster.
It saves 1336 bytes of text.
2021-11-17 03:53:17 -05:00
Matthew Kennedy
8cdac4cac0
remove engine pointer passing ( #3556 )
...
* some
* more
* more
* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy
cb032fb1ea
(void) -> () ( #3550 )
...
* static functions with (void)
* more
* Revert "more"
This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
rusefillc
484c58f267
How exactly did I brick Nick's Frankenso? #3278
...
refactoring & docs
2021-09-28 20:58:08 -04:00
Andrey G
1e2f85818f
flash-writer: increase stack for MFS ( #3235 )
2021-09-13 07:18:48 -04:00
Andrey G
780e91f38a
Bunch of small fixes related to EG33 board ( #3188 )
...
* Typo fix
* flash_main: always allow to write settings to ext NOR while running
* mc33810: do not enable outputs right after undervoltage
Wait for next active signal
* QSPI flash: set correct dummy cycles for fast read command
* board subaru: fix connector pinout. again.
* board subaru: fix SDMMC pin configuration
* board subaru: fix DMA conflict SPI4_RX vs SDMMC2
2021-08-24 07:39:03 +03:00
Andrey G
3961c6ad84
qspi flash updates ( #3169 )
...
* ChibiOS QSPI updates
* board: subaru: speed up NOR flash
* QSPI: add fast read commands
2021-08-17 11:06:37 +03:00