Commit Graph

2213 Commits

Author SHA1 Message Date
rusefillc 0e39ace44d todo? 2023-03-04 20:34:43 -05:00
rusefillc 180ae9b593 L9779WD driver L9779 #3768 2023-03-04 20:32:22 -05:00
rusefillc c42917a4dc k-line
only:hellen-honda-k
2023-03-03 22:03:00 -05:00
rusefillc 13eadd4195 default honda k firmware hangs up on any TS burn #5149
only:hellen-honda-k
2023-03-03 21:33:44 -05:00
rusefillc fd55cbd997 k-line 2023-03-03 21:27:48 -05:00
Andrey 157e5fcf9e K 2023-03-02 21:29:40 -05:00
rusefi 696f8d566b Native SENT TPS input #5079 2023-03-01 18:56:06 -05:00
rusefi d7778b258d Native SENT TPS input #5079
only:mre_f4
2023-03-01 15:47:37 -05:00
Andrey 68fee9905f Native SENT TPS input #5079
hasValidFast progress!

only:mre_f4
2023-03-01 15:23:38 -05:00
Andrey 28c3af682d Native SENT TPS input #5079
a bit of progress
2023-02-28 22:11:38 -05:00
Andrey 3f537a66fa docs 2023-02-28 22:11:38 -05:00
Andrey 395af95d1e random CAN clean-up 2023-02-26 20:25:24 -05:00
Andrey f5ba716c5b explicit errors are best 2023-02-26 20:25:24 -05:00
Andrey eb239f7278 separate status for separate state 2023-02-26 20:25:24 -05:00
Andrey b5c27f01a6 we have centralized SPI management? do we? 2023-02-26 20:25:24 -05:00
Andrey 3bff1ea14d placing board stuff into board folder, reducing hacky code 2023-02-26 20:25:24 -05:00
Andrey 818ff54948 adding flexibility 2023-02-26 20:25:24 -05:00
Andrey e6a4c66fa7 we have weird unconditional coupling with ST_STM32F4_DISCOVERY #5134 2023-02-26 17:18:39 -05:00
Andrey G 298830ed82
can msg tx: do not ignore bus argument (#5124)
bus argument was introduces in 12c899ddca
but was ignored.
2023-02-23 17:17:27 -04:00
Andrey G ddab1536de
Kline: do init from initHardware() and stop/start from applyNewHardwareSettings() (#5125) 2023-02-23 17:05:59 -04:00
rusefillc 8df963882a Native SENT TPS input #5079 2023-02-20 11:52:10 -05:00
rusefillc bb3b43f038 Native SENT TPS input #5079 2023-02-20 11:38:20 -05:00
Matthew Kennedy 12c899ddca
wideband on second can (#5108) 2023-02-20 11:29:25 -05:00
rusefi f849522474 random flexibility 2023-02-19 14:47:21 -05:00
rusefillc 659e3ae186 dear santa please fix my k-line 2023-02-18 23:13:24 -05:00
rusefillc 8d554bab71 Merge branch 'master' of https://github.com/rusefi/rusefi into master 2023-02-18 09:34:43 -05:00
andreika-git fa08a8cb6f https://github.com/rusefi/hellen125honda-issues/issues/27 2023-02-18 09:34:17 -05:00
rusefillc 4d14df108e rusEFI needs K-line firmware support #3248 2023-02-18 09:34:13 -05:00
Andreika b32b03af02
rusEFI needs K-line firmware support #3248 (#5094)
Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2023-02-17 09:36:48 -05:00
andreika-git ed4fcf1ac6 rusEFI needs K-line firmware support #3248 2023-02-17 09:32:06 -05:00
rusefillc 1e37c54c5e rusEFI needs K-line firmware support #3248 2023-02-17 09:23:40 -05:00
rusefillc 11138a1c74 rusEFI needs K-line firmware support #3248 2023-02-17 08:18:50 -05:00
Matthew Kennedy 28babe5cc2
add 50/83.3/125kbit CAN (#5072)
* fix CAN

* add 83/125 too

* bump config version
2023-02-13 17:13:57 -05:00
Nathan Schulte f99e480e66
enable LSE (via: LSE max wait patches) (#4944)
* enable LSE (via: LSE max wait patches)

* ChibiOS: LSE patches
2023-02-12 16:01:03 -05:00
Matthew Kennedy 73f4436397
deduplicate $(BOARD_DIR) in makefiles (#5024)
* calculate BOARD_DIR exactly once

* deduplicate board scripts

* unit tests

* make passes variables to openblt build properly

* was this an intentional omission?

* s

* prometheus

* prometheus
2023-02-01 14:41:27 -05:00
Matthew Kennedy 5770c8a2aa
build f7 with -Os (#4996) 2023-01-30 07:38:59 -05:00
rusefillc 083bafb3ba Refactoring: less confusion macro names around serial/uart/etc in connectivity #4999 2023-01-23 05:09:32 -05:00
rusefillc 3862430aa3 specific PN F7 boards bricking on incremental flash due to ST bug #3566
let me try
2023-01-11 11:43:11 -05:00
Andrey G a6ec708a6b
Support non-uniform dividers on ADC inputs (#4938)
* adc: support per-channel dividers

* S105: non-uniform analog dividers

* adc: default weak getAnalogInputDividerCoefficient() implementation

* adc: fix emulator compilation
2023-01-08 17:29:29 -05:00
rusefi 1fae27fcc2 The road to hell is paved with good intentions 2023-01-08 16:48:29 -05:00
rusefillc 5b159f0ff5 Support non-uniform dividers on ADC inputs #4938
maybe helping?
2023-01-08 15:37:51 -05:00
rusefillc e58d375244 external muxes for internal ADC #3350 2023-01-07 22:09:43 -05:00
rusefillc 558f88ce23 external muxes for internal ADC #3350 2023-01-07 21:56:12 -05:00
Matthew Kennedy 1eb00e5ec9
adc resubscription of the same sensor (#4947)
* adc resubscription of the same sensor

* overload function name

* fix logic

* thermistors and map
2023-01-06 08:09:17 -05:00
rusefillc a4eea87440 external muxes for internal ADC #3350 2023-01-05 21:23:00 -05:00
Andrey G a300043f5d
Feed mapAveragingAdcCallback() with volts not adc raw values (#4940) 2023-01-05 12:14:48 -05:00
Andrey G f25edb646d
ADC and HIP: feed callback with voltage, not raw adc values (#4939)
* hip9011: use adcToVoltsDivided() helper

* hip9011: feed callback with volts, not raw adc value
2023-01-05 12:00:23 -05: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
Andrey G 1ddd871f8f
Support boards with no HSE (#4931)
* ENABLE_AUTO_DETECT_HSE: allow override from board config or board.mk

* Cleanup comments references to removed rtcWorks variable

* Allow board with no HSE oscillator
2023-01-03 15:01:51 -05:00
Nathan Schulte 96b2195497
misc tidy (#4926)
* FrequencySensor: code-style

* smart_gpio: fix indent, tidy BOARD_EXT_GPIOCHIPS

tidy _GPIOCHIPS for #pragma message(STRING(BOARD_EXT_GPIOCHIPS output

* obd_error_codes: fix indent
2023-01-01 15:51:31 -05:00
Matthew Kennedy 1f83047ddd tolerate no SPI device 2022-12-21 20:26:39 -05:00
Matthew Kennedy 87b903a2e3
nonblocking for TS, blocking for SD card (#4903) 2022-12-17 20:01:15 -05:00
rusefillc 89bf9fb423 kind of a fix? 2022-12-17 18:59:38 -05:00
rusefillc 85976ed63d guards 2022-12-17 15:23:32 -05:00
rusefillc fa4c69f6cf SDC_MODE flexibility 2022-12-16 20:22:48 -05:00
Matthew Kennedy 52884c64cb
SD card tooth log (#4897)
* adjust tooth logger api

* mmc card writes tooth log

* changelog
2022-12-15 08:34:10 -04:00
Matthew Kennedy 9d8bfb834e
Basic trigger scope implementation (#4885)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format

* tooth logger uses big buffer

* dead config

* config

* implement basic trigger scope

* good behavior

* enable on other alphax

* flag to enable second channel

* use 8 bit mode on the ADC for less memory use

* changelog
2022-12-10 23:00:12 -05:00
Matthew Kennedy 8ea5969607
fix warnings (#4840)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-27 10:11:14 -05:00
Matthew Kennedy ef53ff0104
period -> frequency (#4837)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-27 08:10:05 -05:00
Nathan Schulte 59406e83f3
avoid ctime, use UTC ISO 8601 for CMD_DATE format (#4764)
* java_console: use UTC ISO 8601 for CMD_DATE format

* ChibiOS RTC avoids ctime

* firmware: controller sets time via ISO 8601

* avoid ctime in CAN dash
2022-11-23 16:53:16 -04:00
rusefillc 8eaa901595
avoid ctime in GPS UART (#4824)
Co-authored-by: Nathan Schulte <nmschulte@desmas.net>
2022-11-23 13:20:36 -05:00
Nathan Schulte fd1115d01a
code style, GPS fixes (test, firmware) (#4822)
* tidy NMEA

* const in nmea

* correct gps test output

* fix GPS UART print statements

* cleanup feature toggles in settings

* fix comment typos, misc whitespace
2022-11-23 07:01:34 -04:00
Nathan Schulte 2a36880961
add /usr/sbin to PATH in create_ini_image*.sh (#4809) 2022-11-21 10:14:49 -05:00
Nathan Schulte 2afc9162eb RTC toggle in hardware.cpp 2022-11-21 09:36:28 -05:00
Nathan Schulte 80cfdc4e1a tidy hw_layer/rtc_helper gcc ifs 2022-11-21 09:35:24 -05:00
rusefillc 6c9f59fd56 big delete ICU #4270
random doc
2022-11-20 19:15:07 -05:00
rusefillc 87c3e957de docs 2022-11-20 16:20:01 -05:00
rusefillc a331cfa2c9 simpler SENT for now 2022-11-19 09:38:39 -05:00
Nathan Schulte d144248a6f
fix simulator build (via MinGW) (#4799)
* firmware: kill -9 dead hipLastExecutionCount

* firmware: pin_repository C includes efi_gpio.h

* firmware: controllers: tidy #endif comments

* firmware: primary_pins logic depends EFI_GPIO_HARDWARE

* firmware: only print ADC info if HAL_USE_ADC

* firmware: digital_input: tidy #endif comments

* firmware: digital_input logic depends on e.g. HAL_USE_ADC

* firmware: digital_input logic depends !EFI_SIMULATOR

* firmware: digital_input logic depends e.g. HAL_USE_ADC

* simulator: Makefile includes RUSEFI_LIB_C as CSRC

* Revert "GHA/build-firmware: pin agents to Ubuntu 20.04 (#4793)"

This reverts commit cb2477be6c.
2022-11-18 23:43:43 -05:00
Nathan Schulte 4cd649db86 firmware: digital_input logic depends e.g. HAL_USE_ADC 2022-11-18 23:24:54 -05:00
Nathan Schulte 51ecb95538 firmware: digital_input logic depends !EFI_SIMULATOR 2022-11-18 23:24:45 -05:00
Nathan Schulte 1da7242e06 firmware: digital_input logic depends on e.g. HAL_USE_ADC 2022-11-18 23:16:28 -05:00
Nathan Schulte 92d2a34941 firmware: digital_input: tidy #endif comments 2022-11-18 23:16:19 -05:00
Andrey Gusakov caebd674ea LUA/SENT: hook to get RAW sig0 and sig1 (WIP)
TODO: how to return two (N) values from LUA hook?
2022-11-17 16:17:27 -05:00
rusefillc f697d6c7dd
Update readme.md 2022-11-15 12:34:17 -05:00
rusefillc 51049b8de5
Update readme.md 2022-11-15 09:44:56 -05:00
rusefillc ed712863c2
Update readme.md 2022-11-15 09:41:16 -05:00
Andrey G 17f98a7c79
SENT: fix null pointer dereference (#4776) 2022-11-13 11:50:08 -05:00
rusefi 37194dfe56 Ford SENT ETB bench test in NJ #4745 2022-11-13 11:23:54 -05:00
Andrey G 27166f4b23
SENT updates (#4774)
* SENT: simplify

* SENT: add crc6 routine, check crc for slow channels enhanced messages

* SENT: helper to get Slow Channel values

* SENT: getTickTime() report tick unit time

* unit_tests: SENT: update tests
2022-11-12 16:57:20 -05:00
rusefi 0e71535727 Ford SENT ETB bench test in NJ #4745 2022-11-11 18:07:13 -05:00
Andrey G 64be738874
SENT unit tests (#4769)
* unit_tests: sent: zero-init

* sent: SENT_SLOW_CHANNELS_MAX to header

* unit_tests: sent: clock, falling edges

* SENT: support and autodetect if device sends pause pulse

Also rework tick time calculation

* unit_tests: SENT: verbose debug on request

* unit_tests: SENT: actual checks

* unit_tests: SENT: extract common code for reuse

* unit_test: SENT: add test with fuel pressue captured data

* unit_test: SENT: add test with Ford ETB CLOSED captured data
2022-11-11 17:25:02 -05:00
rusefillc 0be6559ced
does gcc11 know something? (#4738)
* does gcc11 know something?

* fix BACKUP_FLASH_ADDR assertion semantic (#4750)

* fix BACKUP_FLASH_ADDR assertion semantic

* cast BACKUP_FLASH_ADDR as flashaddr_t

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Nathan Schulte <8540239+nmschulte@users.noreply.github.com>
2022-11-07 19:22:58 -05:00
Andrey 73e69940ba Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 10:30:30 -05:00
Andrey be8ba29b42 Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 00:25:47 -05:00
Andrey a25c9ab520 Ford SENT ETB bench test in NJ #4745
we shall unit test SENT
2022-11-07 00:06:42 -05:00
Andrey G 331fabb6de
pin_sepository: no external users for totalPinsUsed, remove (#4733) 2022-11-03 18:26:08 -04:00
Andrey G 94ce8134da
OpenBLT: fix lazy compilation (#4715)
* OpenBLT: fix lazy compilation

* OpenBLT: use per-board obj directory
2022-10-30 10:01:43 -04:00
Andrey G e7b06cbfca
compile warnings: signed vs unsigned and unused (#4713) 2022-10-30 09:47:53 -04:00
Andrey G 12842e485b
OpenBLT: F7: ups, missed shared section (#4714) 2022-10-30 09:38:09 -04:00
Matthew Kennedy 658d1436fb
s (#4708) 2022-10-27 23:17:02 -04:00
rusefillc f9fa729d8d less horrible constant name 2022-10-27 22:17:50 -04:00
rusefillc b75f899973 efi::size 2022-10-27 20:35:37 -04:00
Matthew Kennedy f967231bb9
bigger blocking factor (#4703) 2022-10-26 16:49:55 -04:00
Andrey G 7abe3ba112
SENT improvements (#4702)
* smt32_common.mk: reduce copy-paste

* SENT: sentPins is not used

* hw: stm32: add ICU helper

* hw: stm32: icu helpers: also return timer base clock

* SENT: icu: use helper to get ICU & channel and AF

* SENT: icu: use CPU ticks for pulse measurements

* hw: stm32: icu: cleanup
2022-10-26 15:33:47 -04:00
Andrey G afa0bd92e8
SENT glue to LUA (#4700)
* use tabs

* SENT: Lua glue: getSentValue returns ETB position now

Can be tested with following LUA script:
setTickRate(100)
function onTick()
	pos = getSentValue(1)
	setLuaGauge(1, 10000 * pos)
	print(pos)
end
2022-10-26 06:42:14 -04:00
Andrey G dff2693698
SENT fixes (#4698)
* SENT: use shift register for storing nibbles

* SENT: rxReg shift to the left

* SENT: todo
2022-10-24 08:50:11 -04:00
rusefi 6e24020ab5 GM ETB bench test in NJ #4688
SENT to Lua integration
2022-10-22 22:46:37 -04:00
Andrey G d21d5397ac
SENT fixes (#4692)
* SENT: measure more pulses during Unit time calibration

* SENT: no magic numbers

* SENT: fix typo

* SENT: setninfo output: do not show slow channels if not detected

* SENT: fix GM-style CRC calculation

* SENT: another one CRC algorithm, now for pressure sensor

* SENT: show CRC error percentage
2022-10-22 18:07:22 -04:00
rusefillc 98076927b0
progress: rpm register based on trigger input being none or not (#4691)
* progress: rpm register based on trigger input being none or not

* use helper functions

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-10-22 09:27:41 -04:00