Commit Graph

281 Commits

Author SHA1 Message Date
rusefillc b286ec8a34 fine-grained check modes 2020-12-27 17:41:28 -05:00
Matthew Kennedy 34edf34bf4 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 b3e910008c MRE mapping 2020-11-15 17:16:58 -05:00
Matthew Kennedy 74f59ff67e fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
Andrey G 88e830d635 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 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
rusefillc c1023504e6 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

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

This reverts commit e02c86a7
2020-10-03 21:36:09 -04:00
Matthew Kennedy e02c86a7dc 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 0f7b91861a 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 c85932727e 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 adbb3f07e7 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi a87dfb7f87 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi ce87837309 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -04:00
rusefi cdde5fe11d price of lazy progress 2020-08-31 20:56:46 -04:00
kon da262d9076 added secondary can config 2020-08-01 20:58:14 -07:00
rusefi eaff89eacb QC config 2020-07-27 22:05:40 -04:00
rusefi ffa9de7040 auxTempSensor text output 2020-07-27 20:23:57 -04:00
rusefi 7dbc547723 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:59:55 -04:00
rusefi 6d360b8736 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:43:44 -04:00
David Holdeman a2078e9cfe 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 d4d5a699f0 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 6ac45039d4 using bundle names in signature 2020-07-06 01:20:39 -04:00
rusefi 6b4613a3a8 making scripts a bit more consistent & docs 2020-07-06 00:19:25 -04:00
andreika-git 88c24479e0 Fix bundle signatures (#1569)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-04 10:46:27 -04:00
rusefi e6a15f1325 MRE 0.5.1 2020-07-04 00:02:44 -04:00
David Holdeman 8a7220d989 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 b523aa648e PB8 and PC12 not available for FSIO usage (#1538) 2020-06-26 09:05:21 -04:00
rusefi 7f71383de6 un-hiding full pinout 2020-06-17 12:54:56 -04:00
rusefi 56c9d3ac40 proteus v12 progress 2020-05-24 13:27:14 -04:00
rusefi 68fea52129 safer name for QC build 2020-05-23 17:18:26 -04:00
rusefi e8ff6a6a6d dreams 2020-05-22 17:52:48 -04:00
rusefi e063aa492a build and board info into critical error message 2020-05-22 16:45:13 -04:00
rusefi b6e784e310 MRE pre-sets 2020-05-21 21:00:34 -04:00
rusefi 871cee3092 test fixture progress 2020-05-21 18:36:32 -04:00
rusefi c42bae8f61 exposing some GPIO 2020-05-20 23:53:25 -04:00
rusefi 60835c4269 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
rusefi eab3f8f2b7 nicer handling of main relay in MRE.ini file 2020-05-15 12:05:09 -04:00
rusefi 929b21d5a1 maybe this would just work?!... 2020-05-15 02:31:02 -04:00
rusefi abc79f831b Revert "moving SD card to SPI1 thank you Matt!"
This reverts commit be5ec2c0
2020-05-15 00:30:49 -04:00
rusefi be5ec2c03f moving SD card to SPI1
thank you Matt!
2020-05-15 00:29:18 -04:00
rusefi 084175ce64 one step sideways 2020-05-14 19:10:01 -04:00
rusefi c66a55e5e3 now with EFI_CONSOLE_RX_BRAIN_PIN 2020-05-14 17:20:27 -04:00
rusefi 6683c96638 maybe EFI_CONSOLE_TX_BRAIN_PIN 2020-05-14 00:02:10 -04:00
rusefi 92227cb4cb SPI3 2020-05-13 23:29:52 -04:00
rusefi c47a0c3125 SD card for MRE 2020-05-13 23:26:28 -04:00
rusefi 36586c0243 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-05-13 19:31:42 -04:00
rusefi 4adac49050 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi d74f1c0951 lovely, yet another minor confusion 2020-05-13 01:16:05 -04:00
rusefi bdb93db70d https://github.com/rusefi/hw_microRusEfi/issues/157 2020-05-12 23:37:12 -04:00
rusefi 9c3bc93471 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 a7a6bb0d81 more dead code 2020-05-11 18:24:29 -04:00
rusefi 101aabd8a4 docs 2020-05-03 15:54:17 -04:00
rusefi b3cfac397b oh what did I do 2020-05-02 22:27:20 -04:00
rusefi 93ee6c36e3 https://github.com/rusefi/rusefi_documentation/issues/37 2020-04-29 18:41:40 -04:00
Matthew Kennedy 7e067eb0b5 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 6d0efc432e allow overriding configuration (#1341)
* config overrides

* proteus too

* comment

* remove wno-error

* comment
2020-04-26 00:07:59 -04:00
rusefi b6780ab9d0 wow maybe build time magic?! by DronoGus 2020-04-25 12:07:57 -04:00
rusEfi a7a7c4bec9 MRE docs 2020-04-13 14:30:17 -04:00
Matthew Kennedy 1a59950240 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 2c423052c4 docs 2020-04-08 20:37:46 -04:00
rusefi fe604f71b8 CAN progress 2020-03-31 16:49:19 -04:00
rusefi 21e96141a8 f4-slave 2020-03-29 22:10:13 -04:00
rusefi a806f14c24 f4-slave 2020-03-29 21:42:43 -04:00
rusefi 22ed80f144 docs 2020-03-29 10:29:45 -04:00
Matthew Kennedy 7596a80242 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 5420e5ef6d Fix mre vbatt (#1218)
* Revert "vbatt MRE happiness"

This reverts commit 4c5477f2cd.

* update comments
2020-03-25 16:23:04 -04:00
rusefi b7324c9a51 proteus-f4 was requested 2020-03-18 11:37:53 -04:00
rusEfi 5a21db41a4 v12 & ETB progress 2020-03-18 00:12:31 -04:00
rusefi 717400e1c4 hiding SPI from MRE users 2020-03-17 15:50:42 -04:00
rusefi 9e47bf2b02 hiding "Analog divider" from MRE 2020-03-01 09:21:39 -05:00
rusefi f298817af2 mapping docs 2020-02-29 23:22:39 -05:00
rusEfi c2ab5f4871 more mc33816 2020-02-25 22:38:08 -05:00
rusefi 33ba33d533 MRE technical info 2020-02-24 00:12:26 -05:00
rusEfi 4c5477f2cd vbatt MRE happiness 2020-02-16 16:59:33 -05:00
rusEfi 6aa9e896a4 proper 'f' syntax 2020-02-12 23:16:46 -05:00
rusEfi 8ef58f8e79 MRE divider 2020-02-12 22:15:36 -05:00
rusEfi 579cf5abb8 docs 2019-12-29 14:58:39 -05:00
rusefi f47a1a16d1 getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusefi e2d2bd9996 reducing code duplication & including kinetis 2019-12-04 07:50:46 -05:00
rusefi 448beb5471 making things nicer with dual ETB settings 2019-11-30 18:42:51 -05:00
rusefi 34f53bd102 making things nicer with dual ETB settings 2019-11-30 17:38:33 -05:00
rusEfi 980a3d7086 all ETBs to run in same HW mode 2019-11-29 16:51:51 -05:00
rusEfi 453c187ad0 v12 progress 2019-11-19 21:56:25 -05:00
rusEfi 670e149b32 v12 2019-11-19 00:04:44 -05:00
rusefi 80e1bf6dd1 MRE F4 2019-11-06 20:05:44 -05:00
rusefi b171b5ebd4 we have MRE F4 now 2019-11-06 18:58:11 -05:00
rusefi 359f7c437b 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 ca2e2cdbab move logic out of bat (#941) 2019-09-20 08:40:07 -04:00
rusefi d2e8710c80 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 47f68eb80f using MRE config for Nucleo 2019-09-14 16:03:04 -04:00
rusEfi d3d17b700f docs 2019-09-12 08:37:44 -04:00
rusefi d62556b415 docs 2019-09-12 07:29:38 -04:00
rusefi 3d85de7ee5 fatalErrorPin setting is not used #926 2019-09-09 21:34:15 -04:00
rusefi 87f6ac9ce1 MRE NA6 2019-09-08 11:17:27 -04:00
rusEfi 1faf48bd53 MRE NB2 2019-09-05 23:14:28 -04:00
rusEfi 303a4eaa0e MRE NB2 2019-09-02 17:16:36 -04:00
rusEfi 1d057a8faa MRE NB2 2019-09-02 11:07:34 -04:00
rusEfi 3970881a09 ETB progress 2019-08-31 20:17:17 -04:00
rusEfi 9ce7c4d7da NB2 MRE 2019-08-31 18:36:44 -04:00
rusEfi d696412312 reducing dead code 2019-08-31 17:59:18 -04:00
rusefi 6f8df1fd70 wow, CI was down for a week 2019-08-25 22:53:57 -04:00
rusEfi c7b893677d docs 2019-08-18 20:18:56 -04:00
rusEfi a8d872800c MRE & Miata 2019-08-17 22:42:22 -04:00
rusEfi c4d6604551 MRE etb 2019-08-17 17:33:44 -04:00
rusEfi dfc5f86e6e MRE ETB 2019-08-15 01:59:15 -04:00
rusefi ae83660230 DEFAULT_ENGINE_TYPE=MRE_BOARD_TEST build script 2019-08-10 17:16:12 -04:00
rusefi 64e9db5683 TS refresh & better MRE test configuration 2019-08-10 16:25:42 -04:00
rusefi a94eebe3ec low side channels on MRE #900
getting closer but still issues
2019-08-10 14:53:57 -04:00
rusefi 4fcecb6c26 low side channels on MRE #900
progress - now all 10 BLINK, but two are blinking together
2019-08-10 13:45:00 -04:00
rusefi 97bf87eb48 low side channels on MRE #900 2019-08-09 23:45:35 -04:00
rusEfi 2aad491810 pin number correction 2019-08-05 22:05:33 -04:00
rusEfi 9c0517f19f naming consistency 2019-08-05 22:00:07 -04:00
rusEfi 84ee93b241 code style & docs 2019-08-04 21:56:01 -04:00
Matthew Kennedy 9d3e201193 microRusefi Default Configuration (#895)
* poke

* working MRE

* why was this on?

* comment, cleanup

* default silent trigger error on

* comment

* remove extra

* sensible default
2019-08-01 22:27:23 -04:00
rusefi 69890e67a4 FIRMWARE_ID 2019-07-13 15:01:48 -04:00
Matthew Kennedy c973576f8d Fix mappings for microRusefi (#853)
* fix mappings

* add pin numbers

* + pin numbers, - # sign
2019-06-23 10:37:10 -04:00
rusefi 056bc25c7d NOW it would probably run 2019-06-12 16:10:18 -04:00
rusefi 15098bf011 this should actually work for MRE, theoretically 2019-06-10 18:35:18 -04:00
rusefi 58be63f5a9 https://github.com/rusefi/hw_microRusEfi/issues/57 2019-06-10 17:33:05 -04:00
rusefi 9563c2f664 MRE to use MRE.ini 2019-06-09 21:24:21 -04:00
rusefi 9292efadbe TS flexibility for MRE 2019-06-07 17:38:12 -04:00
rusefi 50e3f4e671 hiding GPS 2019-06-06 19:20:00 -04:00
Matthew Kennedy 681177bca0 mappings (#826) 2019-06-05 14:49:51 -04:00
rusefi 5ea3151da3 board-specific usability #808
hiding more stuff from MRE
2019-06-05 00:36:35 -04:00
rusefi 59ad3f9d12 board-specific usability #808
hiding cj125
2019-06-04 12:13:59 -04:00
rusefi 5601f8da03 board-specific usability #808
hiding menu items for specific boards
2019-06-01 18:29:50 -04:00
rusefi a2e8d02a11 board-specific usability #808 2019-05-30 18:19:27 -04:00
rusefi 236d2957ed board-specific usability #808 2019-05-30 00:39:13 -04:00
rusefi 483c891e16 board-specific usability #808 2019-05-30 00:18:41 -04:00