rusefi/firmware
Andrei 48ab85d636 cypress_usb_print_test
cypress trying to start TS

TS connect success!

blind code ready for GPT,ADC,SPI

SPI basic test works on 9201 and 8860

Timer is working

ADC fix?

Flash kinda works... in debug mode

DRV8860 driver works! ADC partially works! Flash works!

adc 1 channel works

fix for ADC channels>16 & fastADC problem

ADC works!

EXTINT first attempt... no IRQ?

Led3 blinks

EXTINT works!

trigger_adc EXTINT part works!

trigger_ADC analog preparations... not working yet

ADC now 100% works! But fast is NOT 10kHz!

Fast ADC works... Almost - strange adcToVoltage values...

fastADC working only first 22secs + fatal error after 33secs + USB not connecting

fastADC is working again, problems solved!

triggerADC - It works! (Still no timeshift compensation)

Forgot drv8860

ADC->EXTI trigger switching works! (but not seamlessly)

ADC->EXTI trigger switching now seamless? Needs more testing

ADC->EXTI trigger switching works!

trigger+RPM works but still trgerrors...

trying to impl. adaptive threshold... No luck so far :(

trigger detector almost works - trgerr=0 but no rpm<200?

triggerADC finally works!!! For now...

backup_ram for cypress

main_relay, stepper

better main_relay+stepper

USB VBus detection

CAN driver draft

CAN update

CAN interrupts fix

update

update

update

update

update

main.cpp clean-up

rusefi.ini clean-up

compilation fix

compilation fix

compilation fix
2020-09-11 18:21:53 +03:00
..
.vscode
ChibiOS@85cf4582a9
ChibiOS-Contrib@8f7c2d187b
bootloader cypress_usb_print_test 2020-09-11 18:21:53 +03:00
config Hellen says merge #1772 fast ADC 2020-09-11 03:54:07 -04:00
console Hellen says merge #1772 TS 2020-09-11 05:50:48 -04:00
controllers cypress_usb_print_test 2020-09-11 18:21:53 +03:00
development code style 2020-01-21 01:47:58 -05:00
docs
ext
ext_algo
hw_layer cypress_usb_print_test 2020-09-11 18:21:53 +03:00
iar_egt
init Add timeout + raw value access for sensors (#1098) 2020-01-12 03:25:23 -05:00
integration cypress_usb_print_test 2020-09-11 18:21:53 +03:00
tunerstudio Hellen says cyclic buffer 2020-09-07 11:31:29 -04:00
util Hellen says cyclic buffer 2020-09-07 11:31:29 -04:00
.cproject
.gitignore
.project
Doxyfile
DoxygenLayout.xml
Makefile Hellen says merge #1772 smart build by default 2020-09-09 16:53:54 -04:00
build-notes.txt skeleton & docs (#995) 2019-11-03 08:41:14 -05:00
clean.bat
clean_build.bat
clean_compile_two_versions.bat Remove chibios trace flag (#1037) 2019-12-02 19:11:07 -05:00
compile.bat
compile_and_program.bat
cov_config.bat
cov_run.bat
coverity.yml
dump.bat
dump_iar.bat
dump_release.bat
egt2can.cpp
exception.txt
flash.bat
flash_dfu.bat notes to self 2019-12-16 01:47:34 -05:00
flash_dfu.sh A Unix shell script matching the functionality flash_dfu.bat 2019-11-11 20:25:55 -05:00
flash_erase407.bat
flash_erase767.bat
flash_openocd407.bat
flash_openocd767.bat
flash_release.bat
gen_config.bat kinetis into gen_config.bat 2019-11-16 14:44:47 -05:00
gen_config.sh scripts: add gen_config, gen_config_board and gen_enum_to_string for Linux (#1081) 2020-01-02 18:58:28 -05:00
gen_config2.bat
gen_config_board.bat
gen_config_board.sh scripts: add gen_config, gen_config_board and gen_enum_to_string for Linux (#1081) 2020-01-02 18:58:28 -05:00
gen_enum_to_string.bat
gen_enum_to_string.sh scripts: add gen_config, gen_config_board and gen_enum_to_string for Linux (#1081) 2020-01-02 18:58:28 -05:00
gen_firing_order.bat firing order tool integration 2019-11-24 23:49:05 -05:00
gen_fsio_example.bat
gen_ptrace_enums.bat PerfTraceTool 2019-11-25 00:57:36 -05:00
gen_system_fsio.bat
gen_trigger_images.bat
generate_docs.bat
generate_memory_usage_report.bat
global.h happy new year unification 2020-01-13 21:57:43 -05:00
globalaccess.h happy new year 2020-01-08 00:02:40 -05:00
kill_for_coverity.c
license.txt
main.cpp cypress_usb_print_test 2020-09-11 18:21:53 +03:00
main_hardfault.c
make4.bat
os_access.h happy new year 2020-01-08 00:02:40 -05:00
readme.md skeleton & docs (#995) 2019-11-03 08:41:14 -05:00
reboot_ecu.bat
run_hw_test.bat docs :( 2019-12-21 19:50:16 -05:00
rusefi.cpp happy new year unification 2020-01-13 21:57:43 -05:00
rusefi.h happy new year unification 2020-01-13 21:57:43 -05:00
rusefi.mk
rusefi_rules.mk shared GCC settings between projects 2019-12-02 10:26:16 -05:00
svnversion.h poke 2019-11-18 15:37:58 -05:00
update_version.bat

readme.md

Doxygen

Q&A on source code

See also ../unit_tests

This directory contains the source code for the RusEFI firmware.

The ideal is that typical end users should be able to use pre-built firmware. They should not need to modify or even rebuild from the source code for basic use, but building from the source code provides the opportunity for optimization, supporting unexpected engine configurations, and specialized enhancements.

TL;DR

make PROJECT_BOARD=microrusefi PROJECT_CPU=ARCH_STM32F4

Environment

Rebuilding from source code requires this firmware, a modern C/C++ compiler for embedded ARM systems, and a platform that supports 'make' based builds.

While many compilers have the potential to work, we suggest using the official ARM version of GCC available at launchpad.net.

Linux and MacOS systems should have the software development tools, primarily 'make', pre-installed or readily installed. MS-Windows requires selecting and installing a Unix-compatible system environment.

Note that the developers are volunteers, with varied motivations. These motivations often include using leading-edge language and build system concepts, requiring recent versions of tools. Should you encounter build problems, review the latest version of this document.

Expected Future Changes

The firmware build is moving toward a system that separates board features from processor features. This will require specifying both the board type and specific processor.

The existing system evolved based on the original RusEFI boards. Those used 'STM32 Discovery' development boards plugged into base boards that held the ECU-specific chips. That approach resulted in hard-coded assumption about pin assignments, and associations of hardware with a specific processor variant. That legacy is slowly being cleaned up, but is still evident in some settings and limitations.