Commit Graph

2573 Commits

Author SHA1 Message Date
rusefillc 8c201022b7 bootloader 2023-12-26 15:27:30 -05:00
Matthew Kennedy 054375c838 bootloader 2023-12-26 15:19:39 -05:00
rusefi 80edd13485 only:one step less verbose mc33810 2023-12-25 21:46:26 -05:00
Andrey ab6011aa8b only:explicit error if attempting to write unknown smart pin 2023-12-25 17:40:18 -05:00
rusefillc 3b5438fa0b only:explicit error if attempting to write unknown smart pin 2023-12-25 16:22:11 -05:00
rusefillc ef254f1a3a only:code style and verbose 2023-12-25 16:13:15 -05:00
rusefillc 55ed9eee93 smart chips in QC 2023-12-24 21:34:31 -05:00
rusefi 943b9dcc14 only:smart chips in QC 2023-12-24 19:44:38 -05:00
rusefillc 9b4f96feee only: mc33810: only bind pins once 2023-12-24 11:51:27 -05:00
rusefi 86ce6a73d7 only:smart chip observability 2023-12-21 01:20:27 -05:00
rusefillc 0052b6a2cd mc33810 mark for reinit if fails 2023-12-20 13:24:04 -05:00
rusefillc 435b38cd7b mc33810: moving init to thread 2023-12-20 13:24:04 -05:00
rusefillc 5d7d97ff7d only:mc33810 renames 2023-12-20 08:55:15 -05:00
rusefillc 91987ba8fb only: code style 2023-12-19 23:47:19 -05:00
rusefillc 7721518418 progress 2023-12-19 14:51:58 -05:00
rusefillc b9a0aea64a typo 2023-12-19 14:51:53 -05:00
rusefillc f11e52a402 only: pulling most useful fields up 2023-12-19 13:50:27 -05:00
rusefi 922defde35 only: smart chips: having pins mark as used helps with troubleshooting 2023-12-18 22:39:51 -05:00
Andrey Gusakov 6b957e33b7 IMU: select CAN vs SPI 2023-12-18 12:00:48 -05:00
rusefillc f54d7d56bc only:nicer error message 2023-12-18 00:39:05 -05:00
rusefi b141199292 some logging and some setting safety 2023-12-17 08:51:56 -05:00
Andrey Gusakov 54e6e12936 Accelerometer: no annoing printf 2023-12-16 11:50:34 -05:00
Andrey Gusakov 10093dca6e CodeQL ? 2023-12-16 11:50:34 -05:00
Andrey Gusakov 92030fb5a0 mmc_card: use blk* wrappers 2023-12-16 11:50:34 -05:00
Andrey Gusakov 99e3b21da0 mmc_card: no not lock SPI if MMC_USE_MUTUAL_EXCLUSION enabled 2023-12-16 11:50:34 -05:00
Andrey Gusakov 846e2391d1 Accelerometer: add support for LIS2DH12 (LSM303AGR driver) 2023-12-16 11:50:34 -05:00
Andrey Gusakov a5c7895528 sensors: accelerometer: use ChibiOS's lis2dw12 driver 2023-12-16 11:50:34 -05:00
Andrey Gusakov e80c57fa5f EFI_MEMS -> EFI_ONBOARD_MEMS 2023-12-16 11:50:34 -05:00
rusefillc 6e945f60b6 stm32 own build-in watchdog #1339
only:mre_f4
2023-12-14 10:54:21 -05:00
andreika-git 62077e4c85 Enable WDG only for F4 2023-12-14 02:04:48 -05:00
andreika-git 27bddc7dc5 disable WDG for Cypress & Kinetis 2023-12-14 02:04:48 -05:00
andreika-git 06aaef0b0d enable STM32_WDG_USE_IWDG for H7 and AT32 2023-12-14 02:04:48 -05:00
andreika-git 8ff9b63022 Enable watchdog (see https://github.com/rusefi/rusefi/pull/5751) 2023-12-14 02:04:48 -05:00
Andrey Gusakov c7fe53e107 Rename LIS302DLCsPin to accelerometerCsPin 2023-12-14 00:31:46 -05:00
andreika-git f6e30ba38c help compiler 2023-12-13 09:01:41 -05:00
andreika-git bdbebeef55 Reset Cause for H7 2023-12-13 09:01:41 -05:00
andreika-git a64fda548f EFI_PROD_CODE guards 2023-12-13 09:01:41 -05:00
andreika-git cc00e948ad more flexible #define STM32_WDG_USE_IWDG 2023-12-13 09:01:41 -05:00
andreika-git 65b9ee94aa reset cause stub for other archs 2023-12-13 09:01:41 -05:00
andreika-git 60a2aae2e1 Reset cause for STM32 2023-12-13 09:01:41 -05:00
rusefillc c7b155d97f small-can FW is not well #5787
seems to be about EFI_ENGINE_CONTROL guarding too much of default settings
only:small-can-board
2023-12-13 00:15:43 -05:00
rusefillc c0b635936e detailed unhappy message
only:mre_f4
2023-12-12 21:20:46 -05:00
rusefillc de22b4c09b better logging
only:mre_f4
2023-12-12 18:24:42 -05:00
rusefillc 6b8f8a2dd9 explicit happy message
only:mre_f4
2023-12-12 16:13:36 -05:00
Andrey Gusakov 4aa779eaca Style 2023-12-12 15:06:56 -05:00
rusefillc 699d588849 https://github.com/rusefi/alphax-4chan/issues/166
only:alphax_4chan
2023-12-12 14:10:57 -05:00
rusefillc 28a273cae7 refactoring: better method name 2023-12-10 11:48:48 -05:00
rusefillc 1dc5788a2e H7?
only:hellen81
2023-12-06 19:18:05 -05:00
Andrey Gusakov 15790593e2 Guards for H7 2023-12-06 19:18:05 -05:00
Andrey Gusakov b87f1e8174 CAN: show low-level error counters and flags
STM32 only
2023-12-06 19:18:05 -05:00
rusefi 70f7f856bb only:typos 2023-12-02 12:44:04 -05:00
rusefillc 2e7d1e6ddb reusing existing magic 2023-12-02 12:09:34 -05:00
andreika-git f534d11f9e Move X_CALLBACK_PERIOD_MS to engine_controller.h 2023-11-29 09:59:15 -05: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 0e90a5c9c8 use Timer for watchdog reset 2023-11-28 15:49:12 -05:00
andreika-git da9d83ec8b watchdog stub for cypress/kinetis 2023-11-28 15:49:12 -05:00
andreika-git 955ff6cea6 Simulator watchdog stub 2023-11-28 15:49:12 -05:00
andreika-git 585ca0c829 Initial support for watchdog 2023-11-28 15:49:12 -05:00
Matthew Kennedy d31f535ca3 sanity in IMU data names/ranges 2023-11-27 14:59:21 -05:00
Andrey Gusakov b6c76b21c0 gpio: mc33810: properly configure gpios for OUTEN, DIN* and GIN* 2023-11-24 16:30:40 -05:00
rusefi d359c15075 only:same 'chip.drv_state = MC33810_WAIT_INIT;' twice 2023-11-24 15:19:34 -05:00
Andrey 375d10fb46 only: one step back for unit tests 2023-11-24 15:04:51 -05:00
rusefillc f329f29bc5 much more visible failure in case of failed chip init 2023-11-24 14:41:17 -05:00
rusefillc 101df2cf92 only:better method name 2023-11-24 14:37:01 -05:00
rusefillc 7c68d7a304 only:minor simplification 2023-11-24 14:35:56 -05:00
rusefi 9bf07b500f bench test 33810 module #5745
only:f407-discovery
2023-11-24 11:59:04 -05:00
rusefi 318fc8c358 bench test 33810 module #5745
only:f407-discovery
2023-11-24 11:36:09 -05:00
rusefi 84650679d8 bench test 33810 module #5745
only:f407-discovery
2023-11-23 22:27:08 -05:00
rusefillc aa90ca7f66 bench test 33810 module #5745
only:f407-discovery
2023-11-23 20:51:35 -05:00
rusefi e1a36c3390 bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:57:37 -05:00
rusefi b0361f8884 bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:38:08 -05:00
rusefi b92c57e34d bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:06:49 -05:00
rusefillc ea58a0f2f7 bench test 33810 module #5745 2023-11-23 09:21:56 -05:00
rusefi 27051ade0c only:typo? 2023-11-22 21:19:14 -05:00
rusefillc 6e9f981120 only:todo mc33972 2023-11-21 11:15:56 -05:00
Andrey Gusakov c9c7adbdbc CAN configs are platform specific
Move STM32's configs to stm32_can.cpp
Create AT32's configs in at32_can.cpp
2023-11-19 16:20:11 -05:00
Andrey Gusakov 84cb2aee8d AT32: CAN helpers 2023-11-19 16:20:11 -05:00
Andrey Gusakov 54274d8022 CAN: we need both Rx and Tx pins to be valid 2023-11-19 16:20:11 -05:00
Andrey Gusakov 2cacc1b65c L9779: fix initialization 2023-11-19 16:20:11 -05:00
Andrey Gusakov 19e8d86845 ports: AT32: SPI AF tables, helpers, init code 2023-11-18 11:14:46 -06:00
rusefillc afa1e36f46 only:driver for mc33972 replacement #5733 2023-11-17 12:35:57 -05:00
rusefillc c50be9ecdd undoing noise
only:proteus_f7
2023-11-16 22:36:38 -05:00
andreika-git 04779c374f move causeHardFault() to arm_common.cpp 2023-11-14 15:28:07 -06:00
andreika-git aa7265a5bf causeHardFault() function for different ports 2023-11-14 15:28:07 -06:00
Andrey Gusakov 814b94dd4b AT32: definetly not isStm32F42x() 2023-11-12 13:08:25 -06:00
Andrey Gusakov e08a311fa7 guards: EFI_BACKUP_SRAM 2023-11-12 13:08:25 -06:00
Andrey Gusakov 4634a741c2 at32: at32_common: reuse some parts from STM32
This is temporally, some parts are quite different and need rework
2023-11-12 13:08:25 -06:00
Andrey Gusakov 5a11a2a2b4 stm32_common: divide into parts for easy reuse 2023-11-12 13:08:25 -06:00
Andrey Gusakov 5faa4304ab ports: at32: allow boards to disable OTG ports 2023-11-11 16:12:29 -05:00
Andrey Gusakov 1ff029a6fb port: at32: allow STM32_SERIAL_USE_USART1 override from board 2023-11-11 16:12:29 -05:00
Andrey Gusakov fa1aeb700a port: at32: we do not like UART mode for console 2023-11-11 16:12:29 -05:00
Andrey a1e407706d Something kia rio starter 4chan #5701
definitely better multithreading behaviour and better readability
2023-11-09 00:33:16 -05:00
rusefi b856e5306d Something kia rio starter 4chan #5701
only:alphax-4chan_f7
2023-11-08 23:31:56 -05:00
rusefillc ec6e711745 Something kia rio starter 4chan #5701
another last step before debugger?
2023-11-08 22:21:51 -05:00
rusefi 9a5ec27c54 only:cleaner defines 2023-11-05 18:20:12 -05:00
rusefi e82fe52ac1 https://github.com/rusefi/alphax-8chan/issues/122
only:alphax-8chan
2023-11-05 13:32:06 -05:00
Andrey Gusakov bb161be8e8 AT32: say RAM size 2023-11-05 07:16:57 -05:00
rusefillc 5e1f66c1b9 only:Unit Tests on Windows 2023-11-04 18:48:46 -04:00
rusefi 1bbff802a6 only:Unit Tests on Windows 2023-11-04 13:30:57 -04:00
rusefillc 23fbc3f8f4 only:Unit Tests on Windows 2023-11-04 13:18:55 -04:00
rusefillc c5c62a42c0 better guards 2023-11-04 13:05:08 -04:00
rusefillc 2d9b835768 better guards 2023-11-04 09:45:22 -04:00
rusefillc 12e6c18c4e better guards 2023-11-04 09:45:14 -04:00
rusefillc 3d48982b1f only:Unit Tests on Windows 2023-11-04 09:42:49 -04:00
andreika-git 525d8355b3 trigger_input_comp is now ready for unused-vars 2023-11-03 15:47:40 -04: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 4eefedcec2 unused-variable is a nice error message to have #5683 2023-11-02 20:48:57 -04:00
Andrey b70f8f0b92 unused-variable is a nice error message to have #5683 2023-11-02 18:31:03 -04:00
Andrey cdfee38284 clean-up 2023-11-02 11:26:29 -04:00
rusefillc b13a243af7 only:variable shadowing should be avoided #5676 2023-11-01 17:02:24 -04:00
rusefillc 54297824e0 only:variable shadowing should be avoided #5676 2023-11-01 16:25:30 -04:00
rusefillc e384914c95 only:variable shadowing should be avoided #5676 2023-11-01 13:02:20 -04:00
rusefillc 35e57475a4 only:variable shadowing should be avoided #5676 2023-11-01 12:12:50 -04:00
rusefillc 91ba507d4b only:variable shadowing should be avoided #5676 2023-11-01 12:07:00 -04:00
rusefillc 781a236885 only:shall we be just a little less Toyota 2023-11-01 10:32:53 -04:00
rusefillc 2e62e6fc91 only:shall we be just a little less Toyota 2023-11-01 10:21:27 -04:00
rusefillc 198c9e8f57 only:shall we be just a little less Toyota 2023-11-01 10:09:04 -04:00
rusefi 6b97f23eae pursuit of truth 2023-10-31 09:36:45 -04:00
Stefan de Kraker 4b64e0e087 Fixed CAN data bus selection
* Fixed CAN data bus selection

* Made canChannel non-optional
2023-10-31 01:42:47 -04:00
Andrey G 7f05e45d41
AT32: chip detection, flash detection, sayHello() (#5666)
* at32_common.cpp: MCU type detection helper

* sayHello(): tick rate is CH_CFG_ST_FREQUENCY

* eficonsole: do isStm32F42x() check for STM32 only

* sayHello(): more info about AT32

* Update ChibiOS

* eficonsole: typo
2023-10-30 07:09:35 -04:00
Andrey G e298348981
Artery AT_START_F435 board support (#5662)
* AT32: port directory and files

* at_start_f435: reuse board.h from ChibiOS

* at_start_f435: fix LEDs

* at_start_f435: fix usb

* at_start_f435: fix compilation

* at_start_f435: add to workflow

* at_start_f435: add to workflow fix

* ports: at32: cleanup and comments
2023-10-29 19:13:31 -04:00
rusefillc 8c4a06bc10
getBackupSram neven null (#5663) 2023-10-29 15:46:15 -04:00
Andrey G 80a370088e
hw_layer: ICU helper: fix clocks (#5659) 2023-10-29 12:29:09 -04:00
rusefillc 7b25477ddf CodeQL says Potentially uninitialized local variable 2023-10-27 23:41:55 -04:00
rusefillc a54ace1e8e EMI kills USB and causes a FATAL on the ECU #4310
only:small-can-board_debug
2023-10-21 16:55:52 -04:00
rusefillc 09c3f3aa5e EMI kills USB and causes a FATAL on the ECU #4310
only:small-can-board_debug
2023-10-21 16:24:38 -04:00
rusefillc 9a6406bd81 DAC with Lua #5601 2023-10-12 10:33:56 -04:00
rusefi 6a7700ccfb DAC with Lua #5601 2023-10-12 09:41:31 -04:00
rusefillc 1f0e55e98a DAC with Lua #5601 2023-10-09 12:31:01 -04:00
rusefillc 0353500421 code style 2023-10-09 12:16:33 -04:00
rusefillc 215284c7bc DAC with Lua #5601 2023-10-09 11:33:09 -04:00
rusefillc 0a806e31e3 A setting to switch specific CAN bus into Listen mode fix #5406 2023-10-08 11:57:09 -04:00
rusefillc 213cabaf0f
start/stop: maybe applying more configuration changes on the fly? (#5581)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-09-25 15:05:28 -04:00
rusefillc 92292aeddd only:docs/renaming method to reduce confusion 2023-09-25 13:57:40 -04:00
rusefillc 50f9fce660 only:additional API 2023-09-25 13:49:33 -04:00
rusefillc 747d038fe4 code style 2023-09-25 13:42:32 -04:00
rusefillc 8467beae96 todo? 2023-09-25 13:42:28 -04:00
rusefillc aeff3337b3 C++ 2023-09-25 13:42:26 -04:00
rusefillc 1f4d9227bd Fan not be able to be set because in use at VR PWM
#5565
showing both human and physical names into error message
only:alphax-2chan
2023-09-17 11:17:37 -04:00
Andrey 6d12cdb7c9 only: debug channel cleanups 2023-09-14 10:10:10 -04:00
Andrey b81fb40203 testability: bench test commands should have automated coverage using simulator #5562
only: making CAN frame always available to simulator
2023-09-14 08:34:24 -04:00
Andrey ba66fdcf82 reducing code duplication around assert 2023-09-05 21:28:39 -04:00
rusefi 516c72c411 let's admit we use C++ here 2023-08-31 00:01:31 -04:00
Andrey 13bbb72264 null terminate USB strings 2023-08-27 09:30:33 -04:00
Matthew Kennedy c7a183db49 this button isn't useful as it just bricks the ECU 2023-08-27 09:08:08 -04:00
rusefi b785ed1019 PinRepository encapsulation 2023-08-21 23:09:30 -04:00
rusefi 6b5e42a7a6 let's admit it we are using C++ syntax 2023-08-21 22:26:09 -04:00
rusefillc 93f7077f92
Dup2 (#5528)
* reducing code duplication around ADC enums

* reducing code duplication around ADC enums
2023-08-21 20:06:54 -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
rusefi 54797ab559 refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:05:19 -04:00