Commit Graph

654 Commits

Author SHA1 Message Date
Andrey G ea870c4869 hip9011 (#2654)
* Move HIP states enum out of rusefi_enums.h

-this is internal driver stuff. No need to have it defined globaly.

* Auto-generated configs and docs
2021-05-08 10:08:18 -04:00
rusefillc 18131c13e2 testing yaml automation 2021-05-07 15:34:48 -04:00
rusefillc 28a84669d2 spaces are evil 2021-05-06 15:26:08 -04:00
BeerMoneyMotorsports e37d45fc10 intMAP fix (#2630)
intMAP a15 fix
2021-05-06 14:34:34 -04:00
BeerMoneyMotorsports 70aa6eb23b Update main.yaml (#2626)
CLT pin fix
2021-05-06 09:38:53 -04:00
Matthew Kennedy 3e4674500b hellen na6 yaml tweaks (#2625)
* cleanup

* all pins have pin number
2021-05-06 08:05:02 -04:00
GitHub build-firmware Action 370180965e Auto-generated configs and docs 2021-05-04 14:14:18 +00:00
Andrey G e6e5303e87 Subaru board update (#2616)
* board: subaru_eg33: move to connectors yaml

* engine: subaru EG33: TPS is not inverted

* board: subaru_eg33: fix gen_config script

* board: subaru_eg33: update default settings
2021-05-03 09:32:14 -04:00
rusefillc becf33b240 2021 is the year of Hellen 2021-05-02 23:45:39 -04:00
rusefillc 59c8ef582f 2021 is the year of Hellen 2021-05-02 19:02:30 -04:00
rusefillc 60ab58c1c8 2021 is the year of Hellen 2021-05-02 18:52:33 -04:00
rusefillc 247ff18c04 https://github.com/rusefi/hellen72/issues/40 2021-05-02 11:30:13 -04:00
rusefillc bfaad4c1b2 code duplication between hellen boards #2611
it has to get worse before it gets better
2021-05-01 19:45:09 -04:00
rusefillc 88a1389af8 code duplication between hellen boards #2611
it has to get worse before it gets better
2021-05-01 19:15:23 -04:00
rusefillc 84441c1dcb h64 more better error handling 2021-05-01 15:40:27 -04:00
rusefillc e0e92a29e4 h64 actually vbatt an analog input 2021-05-01 15:23:04 -04:00
rusefillc 0fa93d4ae7 h64 progress 2021-05-01 15:18:59 -04:00
BeerMoneyMotorsports 03c98e2504 Update main.yaml (#2612) 2021-05-01 14:49:34 -04:00
rusefillc fce1497c51 h64 progress 2021-05-01 14:46:26 -04:00
GitHub build-firmware Action d15d721006 Auto-generated configs and docs 2021-04-30 05:39:53 +00:00
GitHub build-firmware Action f3f5e4215d Auto-generated configs and docs 2021-04-30 05:10:36 +00:00
rusefillc dfd4ba2b5f http://www.yamllint.com/ is our friend 2021-04-29 21:49:02 -04:00
BeerMoneyMotorsports f0b961bde0 Update main.yaml (#2608) 2021-04-29 21:40:52 -04:00
Andrey G 605378f829 Subaru board update (#2600)
* board: subaru eg33: linker script: stack, bss and heap to ram0

* Board: Subaru EG33: clean-up configs

* board-subaru-eg33: fix board config

* engine: subaru: eg33: fixes
2021-04-28 20:25:33 -04:00
rusefillc 33d17be8aa hellen wbo 2021-04-28 19:14:02 -04:00
Matthew Kennedy 7c8c14fee2 Baro config (#2591)
* adjust API to allow i2c init to fail

* init

* proteus config

* 🎠🎠🎠

* buh

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-27 15:29:22 -04:00
David Holdeman e9ef2dfca2 MRE reuse pins (#2587)
* try adding a reuse pin

* try
2021-04-26 23:25:11 -04:00
rusefi 06c46ba835 improving QC process 2021-04-23 00:03:21 -04:00
rusefi 6c75a3d7b4 improving QC process 2021-04-22 22:04:39 -04:00
rusefi be0f2210c5 improving QC process 2021-04-22 21:23:20 -04:00
rusefillc 82b821ce83 EFI_SOFTWARE_KNOCK for hellen 2021-04-21 09:56:46 -04:00
rusefillc 9cd73caaf5 EFI_SOFTWARE_KNOCK for hellen 2021-04-20 22:07:09 -04:00
rusefillc 305d38dabf hellen64 scripts and pinout #2565 2021-04-18 22:03:43 -04:00
rusefillc 959a63d7de hellen64 scripts and pinout #2565 2021-04-18 10:42:50 -04:00
rusefillc 3c0a9ebd5e hellen64 scripts and pinout #2565 2021-04-18 10:15:06 -04:00
GitHub build-firmware Action a8bfcacc53 Auto-generated configs and docs 2021-04-15 05:23:00 +00:00
rusefillc d7087ccdb1 let's see if Jesse BeerMoneyMotorsports is the winner 2021-04-14 20:18:55 -04:00
rusefillc 3849725586 MAP3 (A15) Not available for input in TS #27 2021-04-13 21:16:44 -04:00
rusefi c3ec4a940e MAP3 (A15) Not available for input in TS #27 2021-04-12 00:00:21 -04:00
rusefillc 067bdc188f https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:22:25 -04:00
David Holdeman b655b70f58 quote proteus pins with # (#2539) 2021-04-10 08:35:00 -04:00
rusefillc 06ada8562b Kawasaki KX450F trigger wheel #2538 2021-04-08 22:16:14 -04:00
Andrey G a0053d5845 hip9011 and friends (#2527)
* engine math: extrant getFiringOrderTable for reuse

* engine math: getNextFiringCylinderId helper

* introduce knock_logic: first member is getCylinderKnockBank()

moved from software_knock.cpp

* hip9011: support two inputs/banks

* fix CI

* Board Subaru EG33: populated with TPIC8101 with Advanced mode

* hip9011: test communication in advanced mode

* hip9011: handle situation when chip is already in advanced mode

* Board Subaru EG33: cylinder to knock bank mapping

* hip9011: count spi transactions in advansed mode too

* hip9011: reset incalid responce counter after chip initialization

* hip9011: make debug output more structured
2021-04-04 18:13:21 -04:00
andreika-git 56375c88ee Set the default pin states to input-pulldown instead of input-pullup for Hellen72 (#2525)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-04-04 10:29:05 -04:00
rusefillc d5a3f70ac3 https://github.com/rusefi/hellen72/issues/19 2021-04-02 14:08:59 -04:00
rusefi a1018cf269 engineConfiguration->vbattAdcChannel = EFI_ADC_5; // 4T 2021-04-01 16:47:20 -04:00
Matthew Kennedy 761e65c710 make board config override actually usable (#2508)
* new function

* hellen

* MRE

* proteus

* put those function declarations in a reasonable place

* put the comment back

* weak

* move that to a reasonable place

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-31 14:46:50 -04:00
GitHub build-firmware Action 96d59b4629 Auto-generated configs and docs 2021-03-29 13:06:35 +00:00
Matthew Kennedy 1b69ae320e enable serial pins on proteus (#2507)
* enable serial on proteus

* make h7 happy
2021-03-28 17:03:14 -04:00
Matthew Kennedy 72dac58f9b fix multi-serial-port insanity (#2476)
* carve out UART specific

* implement channel

* config cleanup

* use new config

* bootloader

* dead code

* s

* h7 inherits f7

* oops

* ok now it's right

* tests

* cleanup

* call setup

* put that in its own file

* cleanup

* format

* guard

* not needed

* improve guarding

* portable

* allow override of uart mode

* fixes for bootloader

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 09:06:36 -04:00
Matthew Kennedy 92d249918b rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04:00
GitHub build-firmware Action 335d55b48d Auto-generated configs and docs 2021-03-22 11:54:44 +00:00
Matthew Kennedy cb33bb77ae Dedicated code path for USB console/TS (#2465)
* new apis

* dedicated USB path

* move decl

* init

* don't init usb twice

* guard

* check that we're initialized before using TS

* comment

* guard

* guard USB

* brain doesn't go good

* make tests happy

* dead define

* cypress

* ifdef != if

* s

* include priority

* don't start a thread we know we don't need

* bad-ish merge

* const

* why did this code exist...?

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04:00
GitHub build-firmware Action 8fd70f63a1 Auto-generated configs and docs 2021-03-14 21:30:08 +00:00
Matthew Kennedy 962e0b32e7 fix error/warning buffer overflow (#2456)
* fix error printing overflow

* make the worst offender shorter

* error as warning

* these don't need that flag set
2021-03-14 09:31:11 -04:00
Matthew Kennedy 5cc2efc3e5 use full memory on STM32F42x (#2450)
* linker script

* hook it up
2021-03-13 07:26:58 -05:00
Matthew Kennedy 72214b8b77 default config, UI tweaks (#2444)
* s

* fix this while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-12 00:16:24 -05:00
Matthew Kennedy 792de13069 build h7 proteus (#2429)
* build h7

* scripts

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 16:43:00 -05:00
slowriot b70e39d425 update all compile scripts to use available cores rather than a hardcoded value (#2425)
* fix typos, spelling

* add two V8 firing orders

* use the available number of CPU cores, not just 4

* add new firing orders to config

* updating generated files to include new v8 firing orders

* reverting update of auto-generated files

* correct firing order labels for new firing orders

* update all compile scripts to use available cores rather than a hardcoded value
2021-03-06 12:55:46 -05:00
Matthew Kennedy 243ecdf3dd prep proteus config for h7 (#2413)
* prep for h7

* weak link that

* make those weak

* remove other stubs

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-28 16:57:57 -05:00
Andrey G cd548b4db2 hip9011 compilation fix, cosmetic clean-ups (#2414)
* Board subaru eg33: has HIP9011 knock sensor

* hip9011: lastExecutionCount does not exist any more

* hip9011: extranc commands to header, use logic math for bitfields
2021-02-28 15:42:57 -05:00
Matthew Kennedy f18ef02fa6 maybe hook up sdmmc (#2398)
* maybe hook up sdmmc

* the complier didn't like that very much

* mcuconf

* guard properly

* fix

* duh

* omg that's an extra close paren

* explicitly set which device fatfs should use

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-25 01:37:44 -05:00
Matthew Kennedy 6e41aeb165 deduplication in halconf (#2377)
* rusefi_halconf

* h7 gpt

* don't redefine that

* maybe this was necessary

* format

* no usb in cypress

* flags for bl

* cypress

* maybe bootloader

* no smart build for cypress/kinetis

* no smart build

* no really, disable smart build

* don't need to clean that env var

* cypress

* format
2021-02-24 14:08:03 -05:00
Matthew Kennedy 76c423ccca enable H7 spi (#2391)
* enable features

* move MMC SPI config to port

* correct word length

* related cleanup

* doesn't need nocache

* include

* enable that
2021-02-24 08:14:21 -05:00
David Holdeman a12cc8e091 Fix mre pinout (#2384)
* move pins over

* rearrange
2021-02-22 16:23:08 -05:00
rusefillc ee13021dee hellen 2021-02-20 00:45:48 -05:00
rusefillc aa3157fbb0 a lot of Hellen 2021-02-19 22:23:58 -05:00
rusefillc 571f18e2c2 hellen64 2021-02-19 17:40:32 -05:00
rusefillc 8c43a15b8a Merge remote-tracking branch 'origin/master' into master 2021-02-19 17:00:44 -05:00
rusefillc f9d75db87b let's start somewhere! 2021-02-19 17:00:30 -05:00
David Holdeman 3c0d8a3206 Add missing MRE pins, fix bug (#2380)
* get type for table with multi-id pin

* add missing pins

* add missing type styles

* missing colon

* fix type

* add missing color

* use whole type
2021-02-19 16:59:57 -05:00
GitHub build-firmware Action 260aa6e333 Auto-generated configs and docs 2021-02-18 23:20:11 +00:00
Andrey G 4b5da445f1 Subaru build (#2376)
* Subaru EG33: gen_config.sh update

* gen_config and gen_enum_to_string for subaru_eg33 board too

* Subaru eg33: add to buildables

* Subaru: fix build

* Subaru eg33: fix build and cleanup

* subaru eg33: add compile script

* github: subaru_eg33: call special  gen_config.sh
2021-02-18 18:18:13 -05:00
rusefillc 369d68d464 would this give me h72 SD? 2021-02-18 17:04:51 -05:00
rusefillc 14e8ebd034 would this give me h72 SD? 2021-02-18 16:16:45 -05:00
rusefillc 32cdd1dcea h72 2021-02-17 19:25:49 -05:00
andreika-git 9b5a266d59 Hellen72 more defaults (#2369)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-02-17 11:20:03 -05:00
rusefi 483bee389b https://github.com/andreika-git/hellen-one/issues/3 2021-02-17 10:18:46 -05:00
rusefi 79deda97ac https://github.com/andreika-git/hellen-one/issues/3 2021-02-17 10:16:21 -05:00
rusefi 07bafa81fb h72 might require this 2021-02-17 09:50:28 -05:00
rusefi cffd7964ef h72 wants control 2021-02-16 16:08:45 -05:00
rusefillc c2147799bc USB mass storage tweaking #2352 2021-02-16 14:59:54 -05:00
Matthew Kennedy c75af2ac75 properly put buffers in no-cache regions (#2357)
* configure for no cache

* this doesn't need a setting

* now we don't need invalidate

* reorder and comment

* mmc

* sw knock
2021-02-15 17:39:11 -05:00
David Holdeman 70341538f0 MRE connectors (#2354)
* Add MRE connector images

* fix name

* missing colon
2021-02-14 20:56:25 -05:00
Matthew Kennedy a576c2e109 USB mass storage tweaking (#2352)
* disable TS in case of USB MSD

* housekeeping while we're here

* enable on MRE

* changelog
2021-02-14 15:03:07 -05:00
Matthew Kennedy 5391b4260f automatic switch between internal and MSD SD card (#2349)
* auto enable usb msd

* guard and turn on for proteus
2021-02-14 08:10:39 -05:00
Matthew Kennedy adff68748c move chconf/mcuconf/halconf in to hw_ports (#2321)
* move f4 config files

* don't need this

* f7

* f7

* h7

* this was duplicated

* turn off smart build

* loader too

* update prometheus paths

* bootloader should include confdir

* fix the flash size while we're at it

* move chconf_common

* use wait

* normalize board.mk

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-10 19:38:24 -05:00
Matthew Kennedy a3d0b61cf1 get mcu temperature within port (#2326)
* remove EFI_ADC_TEMP_SENSOR

* implement

* comment

* s

* switch adc_inputs over

* header

* s

* I think aligned-on-stack should work ok

* num channels

* cache safety

* move adc init too

* don't compile that file for the h7

* cypress & kinetis

* ports

* guard against bootloader

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-09 22:04:36 -05:00
Matthew Kennedy 8cc6ef83f9 h7 flash, guard against no CAN (#2317)
* h7 flash

* guard some other stuff

* I guess it just builds now?

* maybe ci too
2021-02-08 16:24:38 -05:00
Matthew Kennedy ad6fc5415d move board.h for f7/h7 (#2316)
* f7 board.h

* h7
2021-02-08 15:46:48 -05:00
Matthew Kennedy 3412d8fe64 move f4 board.h (#2313)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-08 15:29:07 -05:00
Matthew Kennedy 37fa81b5d0 include board.c from hw_ports.mk (#2311)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead

* move board.c

* set explicit cpu type for simulator

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-08 07:52:31 -06:00
Matthew Kennedy c0757a7d13 simplify MCU selection (#2308)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead
2021-02-08 02:11:44 -05:00
Matthew Kennedy 58c18f8df9 goodbye f746 (#2309) 2021-02-07 07:52:57 -06:00
David Holdeman 3ae34637b8 add info to 4S (#2300) 2021-02-06 16:06:25 -06:00
Andrey G 0f47cff952 Add subaru eg33 (#2294)
* engine: Subaru SVX EG33 engine configuration

Not tested yet. Just basic settings and placeholder

* board: add Dron_Gus's Subaru EG33 p'n'p board

* board: subaru eg33: linker script: stack, bss and heap to ram0

* board: subaru eg33: add mapping.yaml

* board: subaru eg33: scripts for autogenerated

* board: subaru eg33: fix DMA conflict (ADC1 vs SPI5)

* board: subaru eg33: enable ADC3

* board: subaru eg33: Autogenerated

* board: subaru eg33: disable fsio control of Main Relay

Default MAIN_RELAY_LOGIC cause error during parsing

* board: subaru eg33: configuration hack to fix usbconsole.c

* gen_config: generate config for Subaru SVX board too
2021-02-06 12:50:34 -06:00
rusefillc 660b8e319d H7 compilation #2284 2021-02-06 00:07:05 -05:00
rusefillc c549a13c1f let's build for h7 2021-02-05 22:10:59 -05:00
rusefillc 1c51e06e35 let's build for h7 2021-02-05 20:58:34 -05:00
rusefillc 48adc90975 let's build for h7 2021-02-05 20:16:10 -05:00
rusefillc 79b035a7b0 that's a bit useless? 2021-02-05 20:14:52 -05:00
rusefillc 2b2c020582 hellen72b 2021-02-05 19:20:04 -05:00
Matthew Kennedy 7af3931032 hardware ci tweaks (#2266)
* frankenso config

* Revert "frankenso config"

This reverts commit 5bb2375ba2d33ae487273eaa5b7a4f12e8a9cecc.

* add hardware CI flag for proteus

* rename ci job

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-02 08:14:24 -06:00
David Holdeman 2a6efec24f Pinouts Improvements (#2263)
* redo pinout generation in ci script

* missing operand

* fix some errors

* copy yaml

* more bugs

* fix bug

* wait for image to load

* set background color for hover in dark theme

* add feature: click on rows to select pin

* change cursor to pointer

* undo accidental submodule bump

* oops
2021-02-01 17:31:36 -06:00
Matthew Kennedy e22a9e9d02 -g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -05:00
David Holdeman 46ac46f171 Connector images, hellen128 mapping (#2255)
* add some connector images

* proteus black23

* add script

* add black23 to script

* remove redirect to send to stdout

* copy img

* black35

* rotate white35

* white35

* forgot last row of black35

* rename

* create in subdir

* hellen72 main

* connectors subdir stupid

* undo submodule update

* remove hash signs

* add hellen128 image

* cd to script dir first

* hellen128 rough draft

* gen hellen128

* fix paths
2021-01-31 08:11:18 -05:00
rusefillc 9cec794f27 IGNORE_FLASH_CONFIGURATION 2021-01-28 18:03:45 -05:00
rusefillc 3c62dfc39d mre_f4_recovery build 2021-01-28 17:46:49 -05:00
rusefillc d5f914f96a Hellen mapping #2235
fixing CLT mis-mapping
2021-01-27 22:58:06 -05:00
rusefillc ab12a4d187 Revert "FRANKENSO to use HAL_VSS_USE_PAL"
This reverts commit 7c66b535
2021-01-24 00:05:17 -05:00
rusefillc 7c66b535e5 FRANKENSO to use HAL_VSS_USE_PAL 2021-01-23 22:57:13 -05:00
rusefillc 0ae7eed5be knock-knock 2021-01-23 00:00:34 -05:00
David Holdeman 8e2f6e57d8 Hellen mapping (#2235)
* convert hellen mapping.yaml

* remove mapping.yaml as it is not used
2021-01-22 16:51:02 -05:00
David Holdeman 928b8ce70a New board pin-mapping system (#2231)
* convert mre mapping

* convert mre mapping

* funny stuff for GPIOA_5

* move class next to id

* rough draft

* update scripts

* fix some errors

* fix some errors

* try

* check against null

* try amp

* try

* try

* fix some errors

* update scripts

* fix maybe

* fix maybe 2

* fix maybe

* fix maybe

* fix

* try

* fix

* use .equals

* use StringBuilder

* use instanceof

* use .max

* remove getMaxValue

* Suppress Warning

* major optimization

* fix maybe

* off-by-one error

* move yaml file loop

* add j2 connector

* add pads yaml

* check for null or empty

* add AV pins to pads

* forgot class

* move registerpins out of loop

* fix typo

* rebase

* check if string

* convert frankenso

* convert frankenso

* tyop

* missing class

* copy mre to skel

* remove prometheus yaml

* remove kinetis yaml

* build configDefinition

* replace var with string

* slight refactor
2021-01-22 12:03:14 -05:00
rusefillc 7f893c6159 Hellen72 2021-01-22 02:02:16 -05:00
andreika-git 5fbb1c6b5d hellen72 trigger PAL mode (#2233)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-01-21 10:22:29 -05:00
Andrey G 27905c6817 Chibi os 20 (#2212)
* Update ChibiOS

* Fix Makefiles includes paths

* halconf.h: remove flash hack

* mcuconf: fix EXTI ptiorityes

* Digital Input: ICU: use designated initializers, initialize 'arr'

* ChibiOS: lis302dl fix

* ADC: update to new API

* UARTConfig: timeout_cb field, formating

* ChibiOS: remove _exit, _kill, _getpid

* Fix lis302dl

* Bump config versions

* chconfig_common: cosmetic changes

* stm32f4ems: commulative config update

* Update Simulator

* ALLCSRC already contain all needed ChibiOS files.

Same for ALLINC and ALLCPPSRC

* ChibiOS fix for Simulator

* ChibiOS: port lock/unlock hook and MMC over SPI timeout

* STM32F7: update configs

* STM32F7: update linker file

* Cypress: port ADC lld to ChibiOS-20

* Cypress: port SPI lld to ChibiOS-20

* Cypress: port CAN lld to ChibiOS-20

* Cypress: fix include path for rules.ld

* Cypress: update chconf.h and halconf.h for ChibiOS-20

* Kinetis: update ADC lld to ChibiOS-20

* Kinetis: update SPI lld to ChibiOS-20

* Kinetis: update UART lld driver for ChibiOS-20

* Kinetis: update chconf.h and halconf.h for ChibiOS-20

* Kinetis: fix include path for rules.ld

* Nucleo F746: update ld script

* Nucleo F746: fix compile

* Bootloader: fix compilation with ChibiOS-20, cleanup

* Bootloader: add way to pass crosscompiler using CROSS_COMPILE

* Debug build arguments

* Simulator: fix windows compilation

Exclude syscalls_cpp.cpp from compilation
2021-01-19 15:20:35 -05:00
Andrey G d134fabc51 Simplify Makefile, unify board.mk files (#2229)
* Proper way to add lis302 driver

* Proper way to add license directory to includes

* Makefile: simplify

All ChibiOS stuff is accumulated in ALLCSRC, ALLINC and so on.

* board.mk: append sources and includes to ALLSRC, ALLCPPSRC, ALLINC

* Cypress: fix CANv2 includence into build
2021-01-17 09:32:06 -05:00
rusefi dcc1d7ad01 nb2 and proteus usability 2021-01-11 01:17:03 -05:00
rusefillc 554dec7a05 Hellen 2021-01-09 11:24:13 -05:00
andreika-git 3dac7599c4 Hellen72 config (#2200)
* Hellen72 config

* Hellen72 files

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-01-08 12:50:13 -05:00
Andrey G f962a7bd64 Gpio cleanup #2 (#1530)
* pin repository: PIN_USED size in now equal to brain_pin_e enum size

expect special values...

* smart gpios: register gpio chip to given base (no auto-allocation)

* drivers: gpio: core: add gpiochip_unregister()

* drivers: gpio: MC33810 intergation

* smart_gpio.cpp: cleanup ifdef mess, minor cleanups

* gpio: core: additional check for gpio ranges overlaps

* unit test: gpio chip: fixed and extended
2021-01-06 18:29:47 -05:00
rusefi 35482fd21e progress 2021-01-03 17:58:00 -05:00
rusefi c29a0d9b06 docs 2021-01-01 18:19:52 -05:00
rusefi e530ded915 F7 HW CI 2020-12-28 23:26:51 -05:00
rusefi 154912509b fixing QC config 2020-12-28 19:19:29 -05:00
rusefillc b286ec8a34 fine-grained check modes 2020-12-27 17:41:28 -05:00
rusefi 3d3b5706d3 HW_CHECK_SPARK_FSIO 2020-12-26 16:16:40 -05:00
rusefillc 80854bf5ce proteusBoardTest 2020-12-26 10:50:18 -05:00
rusefillc 027c5a3580 proteusBoardTest 2020-12-26 10:46:45 -05:00
rusefillc f9de491b67 proteusBoardTest 2020-12-26 10:41:33 -05:00
rusefi c67af9632a PROTEUS_QC_TEST_BOARD 2020-12-26 00:57:23 -05:00
Matthew Kennedy 7617b115de Partition configs by board type (#2106)
* remove old flag

* flags

* reorder switch

* oops
2020-12-22 21:54:40 -05:00
rusefi 4c347026ff Proteus is compiled without VSS feature #2122 2020-12-22 21:28:51 -05:00
rusefi 6ddfff8fd9 Proteus is compiled without VSS feature #2122 2020-12-22 20:50:01 -05:00
rusefillc 632afe3432 fixing master PROTEUS_DEFAULTS 2020-12-22 17:13:05 -05:00
rusefillc 1d434336f8 VR_HW_CHECK_MODE 2020-12-21 13:33:09 -05:00
rusefi 99a349e4c6 VR_HW_CHECK_MODE 2020-12-21 12:30:15 -05:00
rusefillc 1be84c072e proteus_f4_hardware_QC_special_build 2020-12-20 09:14:14 -05:00
rusefillc bf0dfcf659 proteus_f4_hardware_QC_special_build 2020-12-20 09:11:36 -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 08c7849b29 it's weird 2020-11-27 16:41:11 -05:00
Matthew Kennedy dfa38e6829 default to off (#1989) 2020-11-25 22:44:08 -05:00
rusefi e2ac877926 GDB helper 2020-11-25 13:53:29 -05:00
rusefi b3e910008c MRE mapping 2020-11-15 17:16:58 -05:00
rusefi 7adde869d7 v12 Proteus 2020-11-06 14:18:54 -05:00
Matthew Kennedy 789926a61d convert cranking defaults to mg (#1921)
* convert cranking defaults to mg

* fix tests
2020-11-03 14:12:26 -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
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -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
Matthew Kennedy 8520a128bb show SD menu on proteus (#1837)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-30 19:18:37 -04:00
rusefi d09d2da420 Cypress artifact needs .hex file #1835 2020-09-29 18:50:51 -04:00
David Holdeman 37f439390e add hex to bundle (#1836) 2020-09-29 17:04:41 -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
Matthew Kennedy 9632a784f3 add analog inputs to switches (#1829)
* add analog in to switches

* also clarify boost cut pressure

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-28 14:45:23 -04:00
andreika-git 3db4d3a56f Hellen says fix gen_config for Cypress (#1824)
* Hellen says merge #1772 hardware.cpp

* Hellen says merge #1772 adc.h

* Hellen says fix gen_config for Cypress

* Hellen says fix gen_config actions for Cypress

* Hellen says reset .h files

Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-27 09:56:44 -04:00
rusefi 15cb74bbf8 cypress into GHA #1819
code style match
2020-09-27 07:07:01 -04:00
rusefi 940086ee34 cypress into GHA #1819 2020-09-27 06:43:32 -04:00
rusefi 5d3ded340b cypress into GHA #1819 2020-09-27 06:27:50 -04:00
rusefi 1d99e908a1 cypress into GHA #1819 2020-09-27 06:13:58 -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
Matthew Kennedy a62089e590 proteus SD card defaults (#1796)
* proteus SD defaults

* disable serial console pins
2020-09-14 10:54:25 +03:00
rusefi 255f2e5fa3 Hellen says merge #1772 getting closer? 2020-09-10 21:12:25 -04:00
Matthew Kennedy c2eb7c9f4a remove tach output pin (#1779)
* remove from cfg

* cfg

* rip out impl

* efi gpio
2020-09-09 16:52:23 -04:00
rusefi adbb3f07e7 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi fdac041e7d Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/config/boards/kinetis/efifeatures.h
#	firmware/config/boards/prometheus/efifeatures.h
#	firmware/config/boards/skeleton/efifeatures.h
#	firmware/config/boards/subaru-ej20gn/efifeatures.h
#	firmware/config/stm32f4ems/efifeatures.h
#	firmware/config/stm32f7ems/efifeatures.h
2020-09-07 15:32:15 -04:00
rusefi df908db68e Hellen says merge #1772 efifeatures 2020-09-07 15:27:29 -04:00
rusefi a87dfb7f87 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
Matthew Kennedy 4802a47d23 reorder ADC channel index (#1763)
* change config

* correct logic

* clearing these no longer needed

* test expected this to be set
2020-09-06 18:25:26 -04:00
rusefi ce87837309 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -04:00
Matthew Kennedy 96a9c7f4c4 Multiple knock sensors (#1745)
* fw

* cfg fields

* fix order

* ui for channel select

* clarify

* comments

* config
2020-09-02 07:19:02 -04:00
rusefi cdde5fe11d price of lazy progress 2020-08-31 20:56:46 -04:00
Matthew Kennedy 1b07647e72 Software knock detection (#1730)
* s

* science

* set pin mode

* turn stuff off so it fits

* filtering maybe

* filtering actually works

* generate filter parameters internally

* shorter window

* guard behind enable flag

* use checked in filter

* add biquad reset

* tracing

* const

* exec order

* do it from a thread

* smaller buffer, comment

* configure with header

* only for proteus

* oops

* unused

* not needed

* guards

* pin config

* don't need that include

* precook filter steady state

* define sample rate

* config enable switch
2020-08-28 21:13:50 -04:00
rusefi d0ee2c78e3 progress 2020-08-17 19:51:50 -04:00
Andrei 178c55e62b vss_exti untested 2020-08-13 18:27:31 +03: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
rusefi 93d015598a EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter #806 2020-07-12 21:35:01 -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 989082fa1e SHORT_BOARDNAME becomes BUNDLE_NAME 2020-07-06 00:29:30 -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 c107aa6d1b UART DMA for "primary" connector #1528 2020-06-21 23:12:08 -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