Commit Graph

2408 Commits

Author SHA1 Message Date
Matthew Kennedy 0c7df47bba turn off guard pages on F7 for a minute as it's causing probems 2025-02-16 17:44:08 -08:00
Matthew Kennedy a714e7a803 Don't overlap MPU region between nocache and guard pages on F7 2025-02-16 17:43:35 -08:00
Matthew Kennedy 7633a4416a backport H7 FDCANv2 driver 2025-02-14 16:22:36 -08:00
Matthew Kennedy dcfc53159e
enable stack guard on F7 (#549)
* enable stack guard on F7

* enable stack check on bootloader
2025-02-13 00:02:34 -08:00
Matthew Kennedy eb6f433c54 disable stack check on cm7 as it has MPU 2025-02-12 23:39:46 -08:00
Matthew Kennedy a57b56c944 EFI_SIMULATOR is always defined, so use #if ! instead of #ifndef 2025-02-10 23:47:48 -08:00
Matthew Kennedy 8f83c77874
this is c, there is no nullptr 2025-02-10 14:37:58 -08:00
Matthew Kennedy 2d30ccb60d
safer read of the fault address 2025-02-10 14:34:58 -08:00
Matthew Kennedy 357b2ae844
break at the beginning of the memmanage fault handler so we don't double fault 2025-02-10 13:58:28 -08:00
Matthew Kennedy 4e4f4738dc Revert "lps25 multi byte read"
This reverts commit 9ccaded0a1.
2025-02-08 13:14:56 -08:00
Matthew Kennedy 246b676e92 don't set stack size on simulator 2025-02-07 22:57:42 -08:00
Matthew Kennedy e4afb2e656 H7 gets a couple extra ADC subscription slots 2025-02-05 14:29:37 -08:00
Matthew Kennedy 85291b4bbd ADC ports are responsible for their own sample buffer 2025-02-04 01:29:04 -08:00
Matthew Kennedy e2cb4170ce H7 ADC sample size and clocking 2025-02-04 01:17:21 -08:00
Matthew Kennedy e06e1e1efe disable wifi dma spi for now 2025-02-04 00:36:00 -08:00
Matthew Kennedy 317e01075d enable PORT_ENABLE_GUARD_PAGES on H7 2025-02-03 17:24:30 -08:00
Matthew Kennedy 88474fe4c9 reserve more space for the idle thread stack 2025-02-03 17:20:54 -08:00
Matthew Kennedy d8d874e109 H7 knock DMA buffer in ram4 2025-02-02 02:08:37 -08:00
Matthew Kennedy 18738c6431 Why does the ADC run at the wrong speed on AHB? #548 2025-02-02 02:03:08 -08:00
Matthew Kennedy 47166dfba4 knock ADC speed 2025-02-02 00:04:01 -08:00
Matthew Kennedy 2d5168e2a9 H7 ADC speed 2025-02-01 23:55:39 -08:00
Matthew Kennedy 136138e190 sampleBuffer -> knockSampleBuffer 2025-02-01 23:37:33 -08:00
Matthew Kennedy c592591a5a knock UI + atlas UI 2025-02-01 23:34:44 -08:00
Matthew Kennedy a38b3e37e7 each MCU port is responsible for storing its own knock sample buffer #31 2025-02-01 23:21:21 -08:00
Matthew Kennedy ee6e390b0b H7 knock ADC parameters 2025-02-01 23:15:36 -08:00
Matthew Kennedy 633ccfa5b3 SCSI inquiry length #541 2025-01-22 20:12:54 -08:00
Matthew Kennedy e957fa3bc4 align MPU regions to their size 2025-01-22 18:12:14 -08:00
Matthew Kennedy 8ab08d2e42 I guess we can allow unaligned suport 2025-01-22 17:25:16 -08:00
Matthew Kennedy 07431fce6a exclude blkbufSdmmc from cache 2025-01-22 14:38:30 -08:00
Matthew Kennedy 316662a2eb give block buffers names instead of 0/1 2025-01-22 14:38:16 -08:00
Matthew Kennedy c9b2c29339 all SD buffers are guaranteed to be aligned 2025-01-22 14:28:26 -08:00
Matthew Kennedy 4458582d53 STM32H7 SDMMC1 cache/mpu configuration 2025-01-22 11:18:27 -08:00
Matthew Kennedy f2e8a8ccef fix guard 2025-01-10 22:06:28 -08:00
Matthew Kennedy b3e78dfc06 CAN guards cleanup 2025-01-10 21:54:45 -08:00
Matthew Kennedy 4ecb874b8f guards 2025-01-10 21:51:16 -08:00
Matthew Kennedy 345c5ee871 test obd2 PIDs 2025-01-10 21:11:24 -08:00
Matthew Kennedy 8086552334 CanTxMessage: use setArrayValues 2025-01-10 14:10:24 -08:00
Matthew Kennedy 01fe15b7c9 comma -> semicolon 2025-01-10 13:48:52 -08:00
Matthew Kennedy a8c7fc8e24 match can TX/RX printout formats 2025-01-10 13:43:34 -08:00
Matthew Kennedy 0c9c858ed2 cleanup 2025-01-07 20:47:38 -08:00
Matthew Kennedy de3490b438 wifi bsp 2025-01-02 05:04:49 -08:00
Matthew Kennedy 33c8f27e6a oops 2024-12-28 15:09:21 -08:00
Matthew Kennedy 1a7ca80f9e GPIO_NULL, EFI_ERROR_CODE 2024-12-28 15:07:29 -08:00
Matthew Kennedy a9ca5da132 MicrosecondTimerWatchdogController was doing the wrong math 2024-12-28 14:05:29 -08:00
Matthew Kennedy a35f9e6099 proper check to initialize knock adc 2024-12-28 13:36:56 -08:00
Matthew Kennedy 744f0ff2f0 if (auto x = foo()) 2024-12-26 00:25:20 -08:00
Matthew Kennedy 4f92c430a7 unnecessary postCanState 2024-12-23 22:15:37 -08:00
Matthew Kennedy cf58ece693 nix on SENT 2024-12-23 22:06:05 -08:00
Matthew Kennedy 94dd11417f dead line 2024-12-12 15:13:36 -08:00
Matthew Kennedy 28d9d838cf h7 knock adc: remove timer cfg 2024-11-30 01:48:08 -08:00
Matthew Kennedy 3a980634b7 init adc 3 2024-11-29 13:16:38 -08:00
Matthew Kennedy eea931760b more accurate SD card rate 2024-11-23 23:19:02 -08:00
Matthew Kennedy 101ba2b3e9
H7 knock (#515)
* blind h7 knock implementation

* proteus/atlas sampling config
2024-11-23 02:49:05 -08:00
Matthew Kennedy 4a2877c2db knock include order 2024-11-18 11:52:36 -08:00
Matthew Kennedy 2b3db0b21e s 2024-11-18 11:43:41 -08:00
Matthew Kennedy ad3bb2ab99 modularize knock adc for h7 2024-11-18 11:36:41 -08:00
Matthew Kennedy 5554303ae9 h7 sdmmc clocking 2024-11-18 02:55:09 -08:00
Matthew Kennedy 35c1b8bc9f h7 adc3 2024-11-18 02:45:45 -08:00
Matthew Kennedy ed9420d9f1 better name 2024-11-08 01:15:45 +00:00
Matthew Kennedy 2155f3c019 extract some implementation details of fast ADC out to port 2024-11-08 00:58:07 +00:00
Matthew Kennedy e7f8033e32 these functions can now be static 2024-11-08 00:51:08 +00:00
Matthew Kennedy 4266c04c65 dead function 2024-11-08 00:46:55 +00:00
Matthew Kennedy d3110cde42 missed a line 2024-11-08 00:20:07 +00:00
Matthew Kennedy 6b26a4e427 dead feature: sensor chart fast ADC 2024-11-08 00:12:37 +00:00
Matthew Kennedy 69baa28b48 sdmmc1 2024-11-07 11:41:56 -08:00
Matthew Kennedy 9ab55a1ed3 mmc 2024-11-06 19:46:09 -08:00
Matthew Kennedy 0dba68be8d make chconf.h more similar to each other 2024-10-31 16:19:47 -07:00
Matthew Kennedy 09c855c3ed min stepper voltage feature 2024-10-29 14:03:27 -07:00
Matthew Kennedy d037aed2cd cleanup 2024-10-11 17:34:40 -07:00
Matthew Kennedy 8455a3c050 format 2024-09-25 14:05:08 -07:00
Matthew Kennedy 48d25544f9 min/maxF -> std::min/max 2024-09-25 14:02:00 -07:00
Matthew Kennedy 084a1d0dfd std::abs 2024-09-24 23:47:37 -07:00
Matthew Kennedy 9e3126a920 aux serial cleanup/removal #61 2024-09-18 22:38:16 -07:00
Matthew Kennedy 01a397094d
execute critical tasks on one big thread (#462)
* wire up main loop

* remove PeriodicTimerController

* patch up defines, comments

* happy simulator

* format

* simulator

* ETB runs via main loop

* happy tests

* protection against invalid LoopPeriod

* stack size

* ccm

* fix |= operator

* move perf trace

* ordering

* ordering
2024-09-17 15:27:38 -07:00
Matthew Kennedy 9ccaded0a1 lps25 multi byte read 2024-09-13 01:10:08 -07:00
Matthew Kennedy d2bf9ab9e9 SD log file names are fome_x.mlg 2024-09-13 00:09:25 -07:00
Matthew Kennedy d0e4a0c644 cleanup 2024-09-03 13:34:36 -07:00
Matthew Kennedy e20908704d print friendly pin names for "pins" command 2024-09-03 13:31:49 -07:00
Matthew Kennedy 761efd862c
MAP avg uses engine module callbacks (#475)
* use engine module callbacks

* happy tests

* happy small-can-board

* interact with map avg via module

* simplify map avg init

* tweaks

* omit module to disable it instead!

* unnecessary guard

* minor cleanups

* unnecessary branch - lookups for these tables are fine at 0 rpm

* oop
2024-08-29 22:38:30 -07:00
Matthew Kennedy 12321d4325 map averaging includes 2024-08-29 13:29:53 -07:00
Matthew Kennedy bd7f8f2bb6 remove trigger input debug pins 2024-08-28 02:06:02 -07:00
Matthew Kennedy 0b31777623 adc inputs cleanup 2024-08-12 18:13:51 -07:00
Matthew Kennedy b6ccc9b33f let's move away from PeriodicTimerController 2024-08-12 17:55:18 -07:00
Matthew Kennedy 48b8f08cb8 EFI_ACTIVE_CONFIGURATION_IN_FLASH 2024-08-07 12:09:30 -07:00
Matthew Kennedy e4e0824f57 misc format/comment cleanups 2024-08-07 12:01:08 -07:00
Matthew Kennedy 0b5b441982 minor reorder 2024-08-06 23:23:37 -07:00
Matthew Kennedy 08c878dbb9 sorry ADC trigger, your performance was never proven and you're in the way now 2024-08-06 23:21:36 -07:00
Matthew Kennedy 2e7425d037 fast adc skip 2024-08-06 23:07:34 -07:00
Matthew Kennedy 4b4d2ac4d5
ethernet console as engine module (#453)
* infrastructure for engine modules in the build

* fully move fuel pump

* fan

* gear detector

* gear detect

* fan control cleanup

* trip odometer

* shuffle makefiles around a little

* move ethernet console to engine module

* oops

* s

* final

* dead line
2024-07-23 20:52:37 -07:00
Matthew Kennedy b36474888b Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-07-22 10:39:45 -07:00
Matthew Kennedy 3f2450056a use CriticalSectionLocker 2024-07-22 10:39:39 -07:00
Matthew Kennedy bd808552ee typo 2024-07-21 23:25:04 -07:00
Matthew Kennedy 1245ddcc21 adc clarity 2024-07-21 23:23:52 -07:00
Matthew Kennedy c5b9f53808 cleanup 2024-07-21 22:28:51 -07:00
Matthew Kennedy aeec11078c adc cleanup 2024-07-21 13:22:28 -07:00
Matthew Kennedy 591b8446fe minor adc_inputs cleanup 2024-07-21 13:21:02 -07:00
Matthew Kennedy 1f1ace4ced do the math once instead of per-sample 2024-07-21 13:10:22 -07:00
Matthew Kennedy dd8dea61c0 rename Executor -> Scheduler 2024-07-11 17:03:13 -07:00
Matthew Kennedy adb5773c5f don't use scheduleForLater 2024-07-11 16:22:08 -07:00
Matthew Kennedy 4554e099f4 if you need this command you need a debugger 2024-07-03 01:06:28 -07:00