Commit Graph

177 Commits

Author SHA1 Message Date
Andrey G 8e11675afd
Tle8888 big update 1 (#1892)
* smart gpio: fix tle8888 direct pin mapping for MRE

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888

* TLE8888: cleanup

* TLE8888: do not reset driver private data on WD/undervoltage reset

* TLE8888: diagnostic updates

* TLE8888 driver: BIG driver rework

* TLE8888: check SPI answers for abnormal states

Reply with other than requested register can be a sign of:
-Power-On-Reset, then OpStat0 will be replyed
-WatchDog reset, then FWDStat1 will be replyed
-Invalid communication frame, then Diag0 will be replyed

Keep tracking last accessed register and check with the next reply.

* TLE8888: debug clean-up

* TLE8888: implement spi array write

This reduce CS inactive state time between two consequent accesses
from 8.8 uS to 1.4 uS

* TLE8888: fix PP outputs in OD mode

* TLE8888: cleanup register definitions

* TLE8888: run separate driver thread for each chip instance

Calculating poll interval for few chips become more complex, avoid
this running thread for each device.

* TLE8888: fix cypress and kinetic compilation

Both platforms define its own MAX and cause redifination error if
common.h is included in driver.

* MRE: update mapping.yaml and fix direct pin mapping for TLE8888

* TLE8888: diagnnostic: disable switch off in case of overcurrent

For all output, use current limiting instead

* TLE8888: check for overvoltage on OUT8..OUT13

* TLE8888: add TODO note about how to recover from failure condition

Currently TLE8888 automaticly recovers only from overcurrent and
(may be) overtemperature conditions.
Short to bat cause output disable (bit in OECONFIG is reset) and
needs driver/host intervention.

* TLE8888: save few bytes of RAM

* TLE8888: Lada Kalina is test mule for IDLE stepper on TLE8888

Don't forget to enable PP mode for TLE8888 outputs 21..24:
uncomment line 1087 in tle8888.c

* TLE8888: reorder code, cleanup

* TLE8888: mode all debug/statisctic to per-chip struct

* TLE8888: rework poll interval calculation

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888 #2
2020-10-23 12:25:30 -04:00
rusefi 580872d88e VAG radiator control 2020-10-19 23:25:23 -04:00
rusefillc 665900d76a GDI Epic #1448 2020-10-17 14:53:56 -04:00
rusefillc efacf26554 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

This reverts commit 7f6a8311
2020-10-04 01:54:29 -04:00
rusefillc 7f6a831117 HW CI has failed 11 times since Oct 2 #1849
Revert "configure all sample times - fix MRE knock sampling (#1841)"

This reverts commit b3596f89
2020-10-03 21:36:09 -04:00
Matthew Kennedy b3596f8969
configure all sample times - fix MRE knock sampling (#1841)
* configure all sample times

* smpr 1 vs smpr 2

* man I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-02 20:49:56 -04:00
David Holdeman ae9c60731a
move cd statements to common_make.sh (#1830)
* move cd to compile.sh

* rel path

* undo changes to compile.sh and move cd to common_make
2020-09-28 18:25:15 -04:00
shadowm60 a70e24bf6c
Mre sw knock detection (#1815)
* Add SW knock control to MRE on AT4

* Update software_knock.cpp

cleanup

* use knock only for final build

* adjust RAM

* Update engine_controller.cpp

Adjust RAM for HW QC special to build
2020-09-22 03:48:17 -04:00
rusefi 0c1ac0c932 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi 8296f54923 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi 5d739d8976 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -04:00
rusefi ec3ec9f40b price of lazy progress 2020-08-31 20:56:46 -04:00
kon 4e3637641b added secondary can config 2020-08-01 20:58:14 -07:00
rusefi c98d177111 QC config 2020-07-27 22:05:40 -04:00
rusefi e09b9eee3a auxTempSensor text output 2020-07-27 20:23:57 -04:00
rusefi 8c77227468 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:59:55 -04:00
rusefi 811009b9d6 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:43:44 -04:00
David Holdeman 779029caed
Switch to Bash (#1585)
* switch firmware to bash

* switch unit_testts to bash

* switch jenkins to bash
2020-07-09 10:27:20 -04:00
David Holdeman 15e44ae9cc
Use github actions to build and upload bundles (#1583)
* add env var to skip upload

* remove checking from compile.bat

* working on push.yaml

* finish sorting

* progress

* rename push to builds

* rename push to builds

* Add skip upload env var

* fix pull_request name

* fixed typo and changed name

* fixed indentation and runs-on

* try different env var setup

* add nucleos and switch to underscore

* add quotes

* remove boards that were commented

* remove boards that were commented

* fix project board name

* fixed variable name

* add ini-file and console-settings

* try installing gcc-multilib first

* Install g++-multilib as well

* remove unnecessary export

* fixed exit numbers

* change to different env setup

* add simulator and console compilation to board bundles

* changed OS and added linux simulator build

* add checkout and missing colon

* add gcc-multilib installes

* Install mingw

* fixed install

* remove mingw from linux sim and call compile directly

* change directory

* moved envs to command

* debug ls

* debug ls

* set ftp vars

* add makefile debug info

* removed batchecks

* redirect stdout to easier see orrs

* change name

* remove redirect, add file inpection

* Add conditional project name

* Try software upgrade

* missing char

* update ine files

* try quotes

* add escapes

* add quotes

* add escapes and quotes

* remove quotes and escapes

* remove software upgrade

* ignore test 2

* update apt

* like this then

* forgot import

* fix case

* remove RUSEFI_SKIP_UPLOAD and check RUSEFI_FTP_SERVER instead

* break workflow back apart

* upload simulator artifact

* fixed operator

* update apt

* change paths

* Update build-firmware.yaml

* move update bundle to artifacts

* fix var name

* Install ncftp

* set env vars conditionally

* remove check so zips are created

* try things the github way and copy to primary

* re-enable test

* missing space
2020-07-08 11:10:24 -04:00
rusefi c349585bdd using bundle names in signature 2020-07-06 01:20:39 -04:00
rusefi 935a5b107a making scripts a bit more consistent & docs 2020-07-06 00:19:25 -04:00
andreika-git f2e1cabb59
Fix bundle signatures (#1569)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-04 10:46:27 -04:00
rusefi 1dab19373a MRE 0.5.1 2020-07-04 00:02:44 -04:00
David Holdeman b4807708c8
Convert jenkins build_extra_bundles scripts to sh (#1554)
* Add checkout

* remove empty with statement

* Actually we do need push depth

* convert build_working_folder

* convert prepare_bundle

* fixed extension

* fixed closing bracket

* fixed comparison and assignments

* no comment

* convert compile_and_upload and clean

* convert build_simulator

* Finish converting build_working_folder

* convert build_java_console

* Add hashbangs

* remove findcyg instruction

* changed paths

* remove call

* add path

* fixed script names

* add prams

* fix cd

* convert clean_env_variables

* convert common_make.sh

* Added linux hex2dfu binary

* add file extension to linux hex2dfu

* add file extension to linux hex2dfu

* remove spurious paren

* fixed board name

* convert compile-frankenso-na6

* convert compile-frankenso-pal

* add hashbang

* convert compile-kinetis

* convert compile-mre-f4

* convert compile-mre-f4-hardware-QC-special-build

* convert compile-mre-f4-slave

* convert compile-mre-f7

* convert compile-mre-f7-test

* switch to underscores

* converting boards to sh

* convert prometheus

* convert proteus

* fixed path

* switch to underscores

* chmod and add extension

* add quotes

* Add check for Windows

* Add chmod

* fix script name

* fix error checking

* quote vars

* remove checking from batch shims

* fix typo

* change error checking to support nix style error codes

* switch to 1 retval

* cd back to firmware

* Add escapes

* change from cd to rel path

* add p flags to mkdir

Co-authored-by: David Holdeman <David Holdeman>
2020-07-01 14:09:01 -04:00
rusefi 9730080873 PB8 and PC12 not available for FSIO usage (#1538) 2020-06-26 09:05:21 -04:00
rusefi 6adc1eea1b un-hiding full pinout 2020-06-17 12:54:56 -04:00
rusefi 07475398b2 proteus v12 progress 2020-05-24 13:27:14 -04:00
rusefi 29a36085ff safer name for QC build 2020-05-23 17:18:26 -04:00
rusefi 8df838ec8c dreams 2020-05-22 17:52:48 -04:00
rusefi 160d034635 build and board info into critical error message 2020-05-22 16:45:13 -04:00
rusefi 845a9994a4 MRE pre-sets 2020-05-21 21:00:34 -04:00
rusefi aac7712df5 test fixture progress 2020-05-21 18:36:32 -04:00
rusefi c25afadb94 exposing some GPIO 2020-05-20 23:53:25 -04:00
rusefi 416855c2f1 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
rusefi 5491669c2c nicer handling of main relay in MRE.ini file 2020-05-15 12:05:09 -04:00
rusefi 4e703ce8e8 maybe this would just work?!... 2020-05-15 02:31:02 -04:00
rusefi ebdee661e6 Revert "moving SD card to SPI1 thank you Matt!"
This reverts commit 9975d7a8
2020-05-15 00:30:49 -04:00
rusefi 9975d7a83f moving SD card to SPI1
thank you Matt!
2020-05-15 00:29:18 -04:00
rusefi be8fee161c one step sideways 2020-05-14 19:10:01 -04:00
rusefi 8b3a9db412 now with EFI_CONSOLE_RX_BRAIN_PIN 2020-05-14 17:20:27 -04:00
rusefi 73ab57cdfb maybe EFI_CONSOLE_TX_BRAIN_PIN 2020-05-14 00:02:10 -04:00
rusefi 6ab831cc49 SPI3 2020-05-13 23:29:52 -04:00
rusefi dff7bbd4e0 SD card for MRE 2020-05-13 23:26:28 -04:00
rusefi a078922244 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-05-13 19:31:42 -04:00
rusefi 28608449b1 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi f233628c2c lovely, yet another minor confusion 2020-05-13 01:16:05 -04:00
rusefi 38ec6d812d https://github.com/rusefi/hw_microRusEfi/issues/157 2020-05-12 23:37:12 -04:00
rusefi a955e96b62 RED FATAL/CRITICAL LED is a bit dim when it should be OFF
fix https://github.com/rusefi/hw_microRusEfi/issues/157
2020-05-11 18:35:28 -04:00
rusefi eae24e82d1 more dead code 2020-05-11 18:24:29 -04:00
rusefi ae1bd9c55d docs 2020-05-03 15:54:17 -04:00
rusefi 7e82691319 oh what did I do 2020-05-02 22:27:20 -04:00
rusefi 965c06c079 https://github.com/rusefi/rusefi_documentation/issues/37 2020-04-29 18:41:40 -04:00
Matthew Kennedy fe4b531aeb
Move ETB control to a thread (#1374)
* switch to thread

* actually use default frequency define

* crank ADC too

* make space in RAM

* remove TS field

* this should work for test

* fix dt

* re-resize ram
2020-04-28 07:22:31 -04:00
Matthew Kennedy 83cca6ec7a
allow overriding configuration (#1341)
* config overrides

* proteus too

* comment

* remove wno-error

* comment
2020-04-26 00:07:59 -04:00
rusefi 2a70659a28 wow maybe build time magic?! by DronoGus 2020-04-25 12:07:57 -04:00
rusEfi b6e0113320 MRE docs 2020-04-13 14:30:17 -04:00
Matthew Kennedy 001ef27eb8
support ETB disable pin (#1273)
* config & hand gen

* board configs

* add dc motor support

* initialization

* also set duty to zero

* use disable in etb

* fix proteus default

* add TS fields

* I guess we needed 8 bytes

* :D

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:27:13 -04:00
rusEfi 054c787d56 docs 2020-04-08 20:37:46 -04:00
rusefi 81211219f2 CAN progress 2020-03-31 16:49:19 -04:00
rusefi 6ff928a798 f4-slave 2020-03-29 22:10:13 -04:00
rusefi 318bffaf53 f4-slave 2020-03-29 21:42:43 -04:00
rusefi 19ff4ff2e6 docs 2020-03-29 10:29:45 -04:00
Matthew Kennedy e227018c85
Ts cleanup 2 (#1226)
* remove biquad config

* fuel pump clarity

* hide stuff

* hide more stuff correctly

* more hides

* hide comparator except for kinetis

* didn't mean to change all those

* fix kinetis
2020-03-26 11:41:58 -04:00
Matthew Kennedy 6f5a9760ed
Fix mre vbatt (#1218)
* Revert "vbatt MRE happiness"

This reverts commit ca1d44ae2c.

* update comments
2020-03-25 16:23:04 -04:00
rusefi 09c4def495 proteus-f4 was requested 2020-03-18 11:37:53 -04:00
rusEfi d558b1372e v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusefi 5a6d10c21f hiding SPI from MRE users 2020-03-17 15:50:42 -04:00
rusefi c553877d3d hiding "Analog divider" from MRE 2020-03-01 09:21:39 -05:00
rusefi 948bb2e70a mapping docs 2020-02-29 23:22:39 -05:00
rusEfi c35f4aa2e3 more mc33816 2020-02-25 22:38:08 -05:00
rusefi 97d68ccbfa MRE technical info 2020-02-24 00:12:26 -05:00
rusEfi ca1d44ae2c vbatt MRE happiness 2020-02-16 16:59:33 -05:00
rusEfi fe063d53cd proper 'f' syntax 2020-02-12 23:16:46 -05:00
rusEfi aed1152c7a MRE divider 2020-02-12 22:15:36 -05:00
rusEfi 2d59d23ce2 docs 2019-12-29 14:58:39 -05:00
rusefi af4f20551b getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusefi 6481662092 reducing code duplication & including kinetis 2019-12-04 07:50:46 -05:00
rusefi beda8f4b31 making things nicer with dual ETB settings 2019-11-30 18:42:51 -05:00
rusefi 3ed889486e making things nicer with dual ETB settings 2019-11-30 17:38:33 -05:00
rusEfi 799027c2e9 all ETBs to run in same HW mode 2019-11-29 16:51:51 -05:00
rusEfi b32bcc4a87 v12 progress 2019-11-19 21:56:25 -05:00
rusEfi f249a12163 v12 2019-11-19 00:04:44 -05:00
rusefi e474ab461a MRE F4 2019-11-06 20:05:44 -05:00
rusefi 6f9ed5205d we have MRE F4 now 2019-11-06 18:58:11 -05:00
rusefi 5f01a3fb04
skeleton & docs (#995)
* Documentation additions and clarifications.

Added config/boards/skeleton/ as an example and starting point for
board-specific support.

* Describe where the generated files came from.

* Minor rewording

* Delete mistakenly added emacs backups

* Added an overall description and build notes
2019-11-03 08:41:14 -05:00
Matthew Kennedy 48fceb66c3 move logic out of bat (#941) 2019-09-20 08:40:07 -04:00
rusefi e1e113f41b https://github.com/rusefi/hw_microRusEfi/issues/115
documentation issue: 24 AN Temp 3 at External wideband O2 sensor #115
2019-09-16 21:00:20 -04:00
rusEfi 4a2505e2d1 using MRE config for Nucleo 2019-09-14 16:03:04 -04:00
rusEfi e15e705f45 docs 2019-09-12 08:37:44 -04:00
rusefi 532a28a251 docs 2019-09-12 07:29:38 -04:00
rusefi 2818c803b5 fatalErrorPin setting is not used #926 2019-09-09 21:34:15 -04:00
rusefi 8d48e2eef5 MRE NA6 2019-09-08 11:17:27 -04:00
rusEfi 3a9a314689 MRE NB2 2019-09-05 23:14:28 -04:00
rusEfi a027f827e7 MRE NB2 2019-09-02 17:16:36 -04:00
rusEfi 5b3c30831c MRE NB2 2019-09-02 11:07:34 -04:00
rusEfi 47bbd6ebe4 ETB progress 2019-08-31 20:17:17 -04:00
rusEfi 3851b37be6 NB2 MRE 2019-08-31 18:36:44 -04:00
rusEfi 7efe5cdd5c reducing dead code 2019-08-31 17:59:18 -04:00
rusefi 1200dd5efd wow, CI was down for a week 2019-08-25 22:53:57 -04:00
rusEfi 420ba087db docs 2019-08-18 20:18:56 -04:00