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
Matthew Kennedy
70dfd4af78
inhibit sensor timeout during flash ( #3146 )
...
* inhibit timeout during flash
* do it up a level
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-15 23:04:58 +03:00
Andrey G
c23e02c582
Settings ext storage ( #3155 )
...
* flash_main.cpp: reorder code for easy integration of ext storage
* Add EFI_STORAGE_INT_FLASH option
Default set to TRUE
* Add ChibiOS's Managed Flash Storage to build
* Add support for QSPI flash (SST26F064A tested)
* board: subaru: enable WSPI and NOR flash drivers
* Add option to save settings on ext flash MFS partition
* board: subaru: store settings on QSPI NOR flash
2021-08-14 09:36:08 -04:00
rusefillc
afcef0410d
"Burn without flash" button #3127
2021-08-10 07:11:41 -04:00
Andrey G
c091b18baf
Int flash fixes ( #3089 )
...
* STM32F7xx: flash write parallelism settings
Datasheed allows 32bit program operation only for 2.7..3.0
While RM defines wider range...
* Add parentheses to defines
* intFlash: show all errors to user
Currently only erase error was exported to user. Flash write error
was silent. Also define few additional error codes and show it to
user.
2021-08-01 18:26:42 -04:00
Matthew Kennedy
b52d50bbf2
Use pch in lots of files ( #3066 )
...
* most engine.h
* most engine_configuration
* more
* more
* more
* more
* more
* moooooore
* ok I'm done for now
* oops
2021-07-26 01:05:17 -04:00
Matthew Kennedy
2ce7777865
don't require EXTERN_ENGINE in every file ( #2969 )
...
* move enginePins
* no more extern engine
* uses
* more
* extern config too
* put this where it belongs
* include correct header
* merge
2021-07-16 18:13:33 -04:00
Andrey
607ece65c2
flash writer thread name by dron0gus
2021-06-21 09:00:54 -04:00
Andrey
cd0990ccb4
TS Burned All Data engine stop #2839
...
reusing constant
2021-06-21 00:53:37 -04:00
Matthew Kennedy
080d901222
non blocking flash on f7 dual bank 2MB ( #2749 )
...
* f7 dual bank flash
* only start thread if necessary
2021-05-29 08:05:29 +03:00
Andrey G
dbfe0e0fbc
Flash fix erase check ( #2750 )
...
* Fix flash erase error formating
* Flash F7: do magic calculation with local copy of sector number
* Falsh stm32: simplify
* typo?
2021-05-28 20:35:54 +03:00
rusefillc
13ecc35af7
docs
2021-05-10 09:02:27 -04:00
Matthew Kennedy
cde70534f7
always resolve ( #2678 )
2021-05-10 08:53:19 -04:00
Matthew Kennedy
155bfd9aeb
Support STM32F7 1MB devices ( #2659 )
...
* modify linker script for 1MB devices
* handle null flash address
* actually support 1MB F7
* comment
2021-05-09 09:19:20 -04:00
rusefi
86bdd363e3
improving QC process
2021-04-22 22:04:39 -04:00
Matthew Kennedy
c26987b96b
Destroy all shared logger ( #2574 )
...
* most of shared logger
* a few more
* one more
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy
ad71016862
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
Matthew Kennedy
70283f42c1
check if flash erase failed ( #2543 )
...
* check flash erase result
* format
* string
* s
2021-04-12 08:18:11 -04:00
Matthew Kennedy
4e3e95db2d
replace print/printMsg with scheduleMsg ( #2497 )
...
* start cleaning
* disabled feature means don't print that it's disabled
* cli
* usages
* printMsg -> scheduleMsg
* this is alllll dead now
* no crlf please
* all hope is lost if you manage to hit this line
* tests
* tests
* ok we did actually need that part
* sim
* d
* kinetis
* it did ifdef, not if
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04:00
Matthew Kennedy
cd21d91a79
write flash on separate thread for H7 ( #2490 )
...
* write flash on separate thread for H7
* cleanup
* getting the parameters in the correct order generally helps
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:44:41 -04:00
Matthew Kennedy
6491c83f73
read configuration from flash exactly once ( #2481 )
...
* early hw init
* s
* read configuration exactly once
* cleanup
* housekeeping
* test friendly
* ugh bad merge
* that is a noop
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00
rusefillc
4bb9762e2e
extracting runtime state from trigger central
2021-01-31 22:41:17 -05:00
rusefi
60bdc852dc
partial rollback
2020-05-23 16:24:26 -04:00
Matthew Kennedy
b11c5cd8c8
switch some firmware warnings to errors ( #1465 )
...
* warnings as errors
* throw instead of exit
* test massaging
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-23 10:46:28 -04:00
rusefi
e0c59ab6b1
placing parts of confusion closer together
2020-05-09 00:47:11 -04:00