rusefi/firmware
Matthew Kennedy e0763c6994
stop trigger emulator PWM when disabled (#2443)
* simplify trig emulator

* spelling is hard

* fix various builds

* spelling again

* add command/button for external stimulation

* enable hw stim for HW-in-loop test

* s

* I does spelling good

* clear flag when disabled

* generate enough for console build

* don't disable that

* this test needs external stimulation enabled

* import

* ui improvements

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-11 08:38:52 -05:00
..
ChibiOS@948b015c9c enable CAN on H7 (#2393) 2021-03-09 18:54:01 -05:00
ChibiOS-Contrib@fdcbac6a8c Store ini filesystem in compressed block device (#2420) 2021-03-07 19:25:34 -05:00
bootloader update all compile scripts to use available cores rather than a hardcoded value (#2425) 2021-03-06 12:55:46 -05:00
config enable CAN on H7 (#2393) 2021-03-09 18:54:01 -05:00
console logging cleanup before refactor (#2438) 2021-03-09 08:43:29 -05:00
controllers stop trigger emulator PWM when disabled (#2443) 2021-03-11 08:38:52 -05:00
development gpio helper (#2195) 2021-01-08 20:01:26 -05:00
docs Migrate to newer ChibiOS #710 2021-01-10 12:30:10 -05:00
ext Store ini filesystem in compressed block device (#2420) 2021-03-07 19:25:34 -05:00
ext_algo
hw_layer Auto-generated configs and docs 2021-03-11 04:22:28 +00:00
iar_egt
init hook up lps25 on proteus (#2418) 2021-03-04 22:39:20 -05:00
integration stop trigger emulator PWM when disabled (#2443) 2021-03-11 08:38:52 -05:00
tunerstudio stop trigger emulator PWM when disabled (#2443) 2021-03-11 08:38:52 -05:00
util logging cleanup before refactor (#2438) 2021-03-09 08:43:29 -05:00
.cproject
.gitattributes
.gitignore
.project
CHANGELOG.md Life in the Cracks 2021 Release 2021-03-10 23:20:22 -05:00
Doxyfile Fix doxygen (#2286) 2021-02-05 23:09:02 -05:00
DoxygenLayout.xml
Makefile Embed ini (#2417) 2021-03-03 07:50:53 -05:00
build-notes.txt
clean.bat
clean.sh
clean_build.bat
clean_compile_two_versions.bat
clean_compile_two_versions.sh Add two new V8 firing orders (#2423) 2021-03-05 19:28:17 -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
flash_dfu.sh
flash_erase407.bat
flash_erase407.sh
flash_erase767.bat
flash_openocd407.bat
flash_openocd407.sh
flash_openocd767.bat
flash_openocd_h7.bat H7 compilation #2284 2021-02-23 19:11:18 -05:00
flash_reboot_dfu.bat
flash_release.bat
gen_config.bat
gen_config.sh Subaru build (#2376) 2021-02-18 18:18:13 -05:00
gen_config_board.bat
gen_config_board.sh Store ini filesystem in compressed block device (#2420) 2021-03-07 19:25:34 -05:00
gen_config_default.sh
gen_enum_to_string.bat
gen_enum_to_string.sh Subaru build (#2376) 2021-02-18 18:18:13 -05:00
gen_firing_order.bat
gen_fsio_example.bat
gen_fsio_example_reverse.bat
gen_live_documentation.bat
gen_live_documentation.sh
gen_ptrace_enums.bat
gen_signature.sh is gen_config invoked too often now? #2387 2021-03-05 20:16:59 -05:00
gen_system_fsio.bat
gen_trigger_images.bat
generate_docs.bat
generate_memory_usage_report.bat
get_performance_trace.bat
global.h properly put buffers in no-cache regions (#2357) 2021-02-15 17:39:11 -05:00
globalaccess.h
kill_for_coverity.c
license.txt
main.cpp
main_hardfault.c
make4.bat
os_access.h
readme.md
reboot_ecu.bat
run_hw_test.bat
rusefi.cpp stop trigger emulator PWM when disabled (#2443) 2021-03-11 08:38:52 -05:00
rusefi.h
rusefi.mk build (#2399) 2021-02-24 21:55:51 -05:00
rusefi_rules.mk
svnversion.h poke 2021-01-07 08:59:33 -05:00
update_version.bat
update_version.sh

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.