Commit Graph

25423 Commits

Author SHA1 Message Date
Andrey Gusakov ab382a0fdf WIP: mmc_card: pre-allocate 32Mb for newly created log file 2025-01-21 16:18:56 -05:00
rusefillc 8a210b1b4f fix
only:uaefi
2025-01-21 15:25:44 -05:00
Andrey Gusakov 4f614e5a36 mmc_card: fix unmount 2025-01-21 15:10:51 -05:00
Andrey Gusakov 14b0e350f6 binary_log: return number of bytes writen 2025-01-21 15:05:47 -05:00
Andrey Gusakov 66cdc4b0bf mmc_card: simplify updateSdCardLiveFlags() 2025-01-21 15:05:47 -05:00
rusefillc 6891f4da1e helping simulator 2025-01-21 10:40:04 -05:00
Andrey Gusakov 953c29c9a6 mmc_card: do not format to extFAT 2025-01-21 10:27:13 -05:00
rusefillc fcc08a9f8a helping simulator
only:uaefi
2025-01-21 10:27:06 -05:00
Andrey Gusakov 68d4a63728 mmc_card: implement SD card mode switcher 2025-01-21 10:20:29 -05:00
Andrey Gusakov 9b1684b5e6 binary_logging: we need resetFileLogging() for PROD_CODE
...for slicing big log into chunks.
2025-01-21 10:08:27 -05:00
Andrey Gusakov fc5428df99 binary_logging: formating only 2025-01-21 10:08:25 -05:00
rusefillc 533cb0852f helping hellen 2025-01-21 09:54:17 -05:00
Andrey Gusakov 54fa27e099 mmc_card: divide unmount into parts 2025-01-21 09:40:03 -05:00
Andrey Gusakov 40c4143aa4 mmc_card: sdState -> sdStatus and convert to enum 2025-01-21 09:40:00 -05:00
Andrey Gusakov ee32e391ac helping simulator
only:uaefi
2025-01-21 09:32:42 -05:00
Andrey Gusakov 8f8460a937 mmc_card: divide init and mount 2025-01-21 09:27:28 -05:00
GitHub gen-configs Action 4eac7248ac Auto-generated configs and docs 2025-01-21 03:32:18 +00:00
rusefillc db7388c0e9 default main relay pin
only:alphax-8chan_f7
2025-01-20 22:21:08 -05:00
GitHub set-date Action df0e94e710 Update date 2025-01-21 00:23:36 +00:00
GitHub gen-configs Action afdec7301e Auto-generated configs and docs 2025-01-20 21:20:05 +00:00
Andrey Gusakov 8deb8951ab FatFS: fix false-positive varning from gcc 2025-01-20 15:58:50 -05:00
Andrey Gusakov bb44cb8e6e fix indicators 2025-01-20 15:58:50 -05:00
rusefillc f4c6f27cad ini template: add SD card commands buttons, rework dialog
...fix SD commands
2025-01-20 15:58:50 -05:00
GitHub gen-configs Action b0eafe45a8 Auto-generated configs and docs 2025-01-20 20:57:05 +00:00
Andrey Gusakov 76a41f0387 mmc_card: createLogFile() do not append already exist file 2025-01-20 15:45:33 -05:00
Andrey Gusakov 65077fe8ae TS template: add alwaysWriteSdCard description 2025-01-20 15:45:33 -05:00
GitHub gen-configs Action 288699d6cc Auto-generated configs and docs 2025-01-20 18:58:20 +00:00
rusefi 97b8d7a757 f_setlabel(SD_CARD_LABEL) 2025-01-20 13:47:38 -05:00
GitHub gen-configs Action 0c7afa73e6 Auto-generated configs and docs 2025-01-20 15:26:18 +00:00
rusefillc 173fc2be47 bool mmcUnMount
only:chThdSleepMilliseconds
2025-01-20 10:15:17 -05:00
GitHub set-date Action 3cdd4660d0 Update date 2025-01-20 00:24:36 +00:00
GitHub gen-configs Action e73f5b85e1 Auto-generated configs and docs 2025-01-19 23:43:02 +00:00
rusefi ace6f99eba GM Gen. 5 LT1
only:alphax-8chan_f7
2025-01-19 18:40:21 -05:00
Andrey Gusakov 058dfeefd5 error_handling: unify 2025-01-19 16:31:06 -05:00
Andrey Gusakov 8eda2fe104 main_hardfault.c: fix comment 2025-01-19 16:31:06 -05:00
Andrey Gusakov 5189b29fb0 error_handling: no stuck in chDbgPanic3() with no debuger 2025-01-19 16:31:06 -05:00
rusefillc 14029bc55e SD card un-mount unmount when we turn off programmatically #7289
only:uaefi
2025-01-19 16:23:34 -05:00
GitHub gen-configs Action 96b7692867 Auto-generated configs and docs 2025-01-19 20:59:00 +00:00
Matthew Kennedy 9bb59f5e99 firing order comment 2025-01-19 15:55:44 -05:00
rusefillc 3e9817d06e better API
only:uaefi
2025-01-19 15:55:44 -05:00
rusefillc 3653cff490 EFI_HIP_9011_LOGIC
only:uaefi
2025-01-19 15:34:57 -05:00
GitHub gen-configs Action 068ebc6b0c Auto-generated configs and docs 2025-01-19 18:49:06 +00:00
rusefillc fc77a09c35 refactoring: extract method
only:uaefi
2025-01-19 13:38:21 -05:00
GitHub set-date Action af9dfe1989 Update date 2025-01-19 00:26:03 +00:00
GitHub gen-configs Action a3829fa5bb Auto-generated configs and docs 2025-01-19 00:23:06 +00:00
rusefillc 228255a693 only:ts_show_iat 2025-01-18 19:12:35 -05:00
GitHub gen-configs Action 120ac1cec8 Auto-generated configs and docs 2025-01-18 23:54:59 +00:00
rusefillc bdb7f5dd20 only:ts_show_brake_pedal_indicator 2025-01-18 18:43:34 -05:00
GitHub gen-configs Action 80d0020bdb Auto-generated configs and docs 2025-01-18 21:15:39 +00:00
rusefillc 19fc0e9cc4 only:ts_show_etb 2025-01-18 16:04:56 -05:00
GitHub gen-configs Action fb0d060111 Auto-generated configs and docs 2025-01-18 18:51:59 +00:00
rusefi 0dabdac4a0 only:reuse ts_show_tps2 2025-01-18 13:49:16 -05:00
rusefi 1a52274a85 Watchdog Reset detected! Check SD card for report file. 2025-01-18 11:03:51 -05:00
GitHub gen-configs Action eb8c3d9d9e Auto-generated configs and docs 2025-01-18 15:44:33 +00:00
rusefillc 0fad1c71fe GM_SBC_GEN5
only:alphax-8chan
2025-01-18 10:33:47 -05:00
GitHub gen-configs Action d3052f0933 Auto-generated configs and docs 2025-01-18 15:04:10 +00:00
rusefillc 2a78b0b317 some configurations are not alive 2025-01-18 09:52:47 -05:00
GitHub set-date Action 05bb83b6ae Update date 2025-01-18 00:22:47 +00:00
GitHub gen-configs Action 18d1eb46bd Auto-generated configs and docs 2025-01-17 23:36:15 +00:00
rusefillc 29211ec576 Fuel cut code 4: FaultRevLimit, What is the fault when no indicators are red? #7319
only:uaefi
2025-01-17 18:25:25 -05:00
rusefillc 33a22d1c26 Fan indicators not working on latest fw #7318
only:uaefi
2025-01-17 18:24:54 -05:00
GitHub gen-configs Action a1fe5100f2 Auto-generated configs and docs 2025-01-17 23:11:46 +00:00
rusefillc 02436994da Fan indicators not working on latest fw #7318
only:uaefi
2025-01-17 18:00:08 -05:00
rusefillc fad2bfd682 Fan indicators not working on latest fw #7318
only:uaefi
2025-01-17 17:39:25 -05:00
GitHub gen-configs Action 7b08086847 Auto-generated configs and docs 2025-01-17 19:42:06 +00:00
GitHub gen-configs Action e0505ef2c8 Auto-generated configs and docs 2025-01-17 19:27:22 +00:00
GitHub gen-configs Action 8f3697ce70 Auto-generated configs and docs 2025-01-17 17:31:25 +00:00
rusefillc e3f259a0fa Fan indicators not working on latest fw fix #7318 2025-01-17 12:19:40 -05:00
GitHub gen-configs Action 893b6ec9fa Auto-generated configs and docs 2025-01-17 15:53:24 +00:00
GitHub gen-configs Action 5846be3651 Auto-generated configs and docs 2025-01-17 15:19:15 +00:00
GitHub gen-configs Action 0ab035619a Auto-generated configs and docs 2025-01-17 14:12:06 +00:00
Andrey Gusakov 45a7a79d1b error_handling: filename depends on problem type 2025-01-17 09:01:20 -05:00
GitHub set-date Action fd68ab6193 Update date 2025-01-17 00:23:41 +00:00
rusefillc 9de913725e only:runNotSquareTest docs 2025-01-16 09:22:27 -05:00
GitHub gen-configs Action 4df2d71f78 Auto-generated configs and docs 2025-01-16 01:30:40 +00:00
rusefillc f0a9f82d04 only:kin 2025-01-15 20:19:32 -05:00
GitHub set-date Action cf51d280ce Update date 2025-01-15 20:19:19 -05:00
Andrey Gusakov a70bee5d38 error_handling: implement strlncpy() to avoid GCC warnings 2025-01-15 17:08:56 -05:00
rusefillc c824a86779 revert #RUSEFI_OPT += -Werror=stringop-truncation #7311
only:uaefi
2025-01-15 17:08:56 -05:00
rusefillc f70982a61e only: do not trust etbJam 2025-01-15 17:05:44 -05:00
GitHub gen-configs Action 49f5a889f0 Auto-generated configs and docs 2025-01-15 19:32:53 +00:00
rusefillc ea0a837d28 only:ts_show_jam_detection 2025-01-15 14:30:06 -05:00
rusefillc d76cc0242e only:kin 2025-01-15 10:45:08 -05:00
Andrey Gusakov 6f62a6125e error_handling: fixes for ECU with no backup RAM 2 2025-01-15 10:31:14 -05:00
Andrey Gusakov d0e9a627bb error_handling: fixes for ECU with no backup RAM 2025-01-15 10:31:14 -05:00
Andrey Gusakov 0e6dc0c7b2 workaround include mess when building simulator 2025-01-15 10:31:14 -05:00
Andrey Gusakov 97aa83ad16 error_handling: do not show cookie
this is confusing
2025-01-15 10:31:14 -05:00
Andrey Gusakov 9c8970c2c9 error_handling: do not overwrite errors 2025-01-15 10:31:14 -05:00
Andrey Gusakov 41f874dd10 error_handling: share same format for fail report on console and to file 2025-01-15 10:31:14 -05:00
Andrey Gusakov e1d340a393 mmc_card_util: cleanup 2025-01-15 10:31:14 -05:00
Andrey Gusakov 4b1e777e9e WIP: rules: remove Werror=stringop-truncation 2025-01-15 10:31:14 -05:00
Andrey Gusakov 5c1c896c01 error_handling: another way of suppressing 2025-01-15 10:31:14 -05:00
Andrey Gusakov 54a38c9ad4 error_hanling: supress '-Wstringop-truncation' 2025-01-15 10:31:14 -05:00
Andrey Gusakov e0c05c4777 error reporting: extract all related code to error_handling
Also:
 -report ChibiOS panic message
 -use bootCount for boot report file naming
 -save few bytes in backup ram by reusing same field for different errors types
2025-01-15 10:31:14 -05:00
GitHub gen-configs Action 49eeb1b482 Auto-generated configs and docs 2025-01-15 01:49:01 +00:00
rusefillc 5ea65826bd only:VE_RPM_COUNT 2025-01-14 20:20:47 -05:00
GitHub set-date Action 674618064d Update date 2025-01-14 20:11:28 -05:00
kifir23917 9da4629fea support updating to new release (closes #7198) 2025-01-14 23:30:45 +02:00
rusefillc a165d2470c only:todo 2025-01-14 11:35:41 -05:00
Andrey Gusakov 0b1b7f860d main_hardfault: no magic numbers 2025-01-14 11:04:27 -05:00
Andrey Gusakov 020dcbf2b0 hardfault: call bkpt() only if debuger is detected 2025-01-14 11:04:27 -05:00
rusefillc a76f2e7380 hellen: please no calls to OS code on possible hardFault paths
only:uaefi
2025-01-14 08:12:46 -05:00
rusefillc 9dac54ad17 Access to uninitialized table: tct fix #7300
fix to initialization sequence - noise or starter might get lucky and happen too soon?
only:uaefi
2025-01-14 08:09:00 -05:00
rusefillc 8a47382b9a better method name
only:uaefi
2025-01-14 08:07:01 -05:00
GitHub gen-configs Action a97db1b94d Auto-generated configs and docs 2025-01-14 05:22:00 +00:00
rusefillc 3cb62f7442 live data: fan control 2025-01-14 00:10:06 -05:00
GitHub gen-configs Action c262f38473 Auto-generated configs and docs 2025-01-14 05:00:41 +00:00
Matthew Kennedy 3a133f1da7 live data: main relay & launch 2025-01-13 23:57:47 -05:00
rusefillc 4995904e0d turn off WBO on critical error
only:alphax-8chan
2025-01-13 22:06:37 -05:00
rusefillc 3b08dce634 helping build
only:at_start_f435
2025-01-13 22:06:37 -05:00
GitHub gen-configs Action 6020d654a8 Auto-generated configs and docs 2025-01-14 00:36:51 +00:00
rusefillc 30c20943fe only:reducing clutter 2025-01-13 19:25:41 -05:00
rusefillc e1334a4233 hasCriticalReportFile method #7291
only:uaefi
2025-01-13 18:32:10 -05:00
rusefillc f1a28467fd log hard fault red LED reason on SD card #7290
state machine fix
only:uaefi
2025-01-13 18:19:25 -05:00
Andrey Gusakov 3830cffca1 f7 rtc: tabs 2025-01-13 18:10:19 -05:00
rusefillc 42c5b0b242 fixing build
only:subaru_eg33_f7
2025-01-13 18:06:52 -05:00
GitHub gen-configs Action 9a52def997 Auto-generated configs and docs 2025-01-13 22:43:53 +00:00
Andrey Gusakov 3bbab0d776 mmc_card: show SPI clock on debug 2025-01-13 17:34:09 -05:00
Andrey Gusakov 528e5f79b4 mmc_card: calculate SPI dividers in runtime (is supported by platform) 2025-01-13 17:34:09 -05:00
rusefillc 41cda181b8 Not enough Lua space to paste long script, seems like memory is OK on F4
only:alphax-8chan
2025-01-13 17:31:31 -05:00
rusefi 8014401cf2 only:small-can-board 2025-01-13 17:24:47 -05:00
Andrey Gusakov 91cb3629c2 mmc_card: incLogFileName: FR_NO_FILE is not an error 2025-01-13 16:28:57 -05:00
rusefi 82d8bf7586 only:small-can-board 2025-01-13 16:27:55 -05:00
rusefillc b34b5aacfc only:boardAfterTuneDefaults this is all a mess 2025-01-13 15:49:16 -05:00
GitHub gen-configs Action 8052d73e3a Auto-generated configs and docs 2025-01-13 19:43:55 +00:00
rusefillc 3f6c6e316e only:progress? 2025-01-13 14:39:56 -05:00
rusefillc e7d916d6d0 dead?
only:cypress
2025-01-13 14:30:48 -05:00
GitHub gen-configs Action 7cd2b9afdb Auto-generated configs and docs 2025-01-13 18:09:59 +00:00
rusefi 57437a9f49 ts_show_cylinder_2 2025-01-13 13:07:09 -05:00
rusefi 6ce9e56653 only:SUPPORT_GY6 2025-01-13 12:42:04 -05:00
rusefi 5458519fa5 only:small-can-board 2025-01-13 12:38:45 -05:00
rusefillc b66d62f33a only:onBoardWriteErrorFile 2025-01-13 11:20:11 -05:00
rusefillc ded7064702 better order of operations?
only:uaefi
2025-01-13 10:54:22 -05:00
rusefillc a9499375db log hard fault red LED reason on SD card #7290
do not go MSD, write hard fault instead!
only:uaefi
2025-01-13 10:39:16 -05:00
GitHub gen-configs Action e20491073e Auto-generated configs and docs 2025-01-13 14:26:55 +00:00
Andrey Gusakov e0f2df6a81 mpu_util: helper to calculate SPI divider for given SPI clock
Implemented for STM32F4 and F7 only
2025-01-13 09:24:05 -05:00
Andrey Gusakov 1797dbd22f spi: dead 2025-01-13 09:24:05 -05:00
Andrey Gusakov fada0b9926 ext: FatFS: enable f_mkfs() 2025-01-13 08:53:42 -05:00
Andrey Gusakov 7f468db966 ext: FatFS: avoid name overlap 2025-01-13 08:53:42 -05:00
Andrey Gusakov 2481ce87a3 mmc_card: more code formating 2025-01-13 08:49:49 -05:00
Andrey Gusakov bfdae6fde8 FatFS: enable f_expand() function 2025-01-13 08:48:14 -05:00
rusefillc 4ae63c8a97 log hard fault red LED reason on SD card #7290 2025-01-12 23:32:55 -05:00
rusefillc 78c4e1233c only:codestyle 2025-01-12 23:04:15 -05:00
GitHub gen-configs Action 84de3224a1 Auto-generated configs and docs 2025-01-13 03:54:04 +00:00
rusefillc d94364b9e7 log hard fault red LED reason on SD card #7290
only:extracting some code into new file
2025-01-12 22:42:45 -05:00
GitHub set-date Action 49b9e199c1 Update date 2025-01-13 00:26:36 +00:00
rusefillc 2bd6a2add3 only:codestyle 2025-01-12 13:34:31 -05:00
rusefillc cd3021a027 stm32 own build-in watchdog #1339
changing order of operations for logging to happen
only:uaefi
2025-01-12 13:34:19 -05:00
rusefillc 071f7260e4 log hard fault red LED reason on SD card #7290
only:docs
2025-01-12 13:28:51 -05:00
rusefillc a0b1319120 stm32 own build-in watchdog #1339
only:uaefi
2025-01-12 12:28:06 -05:00