Commit Graph

131 Commits

Author SHA1 Message Date
rusefillc f28f1e0f90 fine-grained check modes 2020-12-27 17:41:28 -05:00
Matthew Kennedy 1838beadfa
only build in config for the correct board (#2088)
* only build in config for the correct board

* undo

* undo

* undo

* only touch proteus config

* include configs in tests
2020-12-17 17:12:24 -05:00
rusefi 1561015ab1 MRE mapping 2020-11-15 17:16:58 -05:00
Matthew Kennedy 5a810218aa
fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
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