Commit Graph

373 Commits

Author SHA1 Message Date
Matthew Kennedy 054375c838 bootloader 2023-12-26 15:19:39 -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
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 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 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
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
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 19e8d86845 ports: AT32: SPI AF tables, helpers, init code 2023-11-18 11:14:46 -06: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 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
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 c5c62a42c0 better guards 2023-11-04 13:05:08 -04:00
rusefillc 12e6c18c4e better guards 2023-11-04 09:45:14 -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 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 215284c7bc DAC with Lua #5601 2023-10-09 11:33:09 -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 e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
rusefillc f32c1206eb 42x compilation fix 2023-07-06 20:03:23 -04:00