Commit Graph

180 Commits

Author SHA1 Message Date
Matthew Kennedy 4fe0ceec61
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 bc85adc74e
start making tunerstudio more sane: part 1 (#2378)
* ts cleanup part 1

* unused unused

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-19 07:40:59 -05:00
Matthew Kennedy dade25ef34
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 423acd384b
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 10c31c2955
-g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -05:00
Andrey G 777979c3ca
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
rusefillc ea816c3536 DBGMCU->IDCODE 2021-01-14 23:19:54 -05:00
Matthew Kennedy bb8650179c
consolidate EFI_UNIT_TEST and friends (#1940)
* restructure

* guard c++

* idle too

* status_loop.h

* consolidate definitions

* use 1/0 instead, check for existence

* missed a few

* dead define

* defs for bootloader
2020-11-11 20:34:39 -05:00
Matthew Kennedy e0bb7ad581
disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
Matthew Kennedy 2083b34cf9
simplify getTimeNowNt() (#1876)
* remove old impl

* add cpp wrapper to os_access

* clean up os_access

* remove touchTimeCounter

* new impl

* put comment about lock free impl

* include cpp wrappers for BL

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-15 08:57:13 -04:00
rusefi 661c57c43a The Big Refactoring of 2019: folder structure #723 2020-08-02 21:04:50 -04:00
rusefi dc303d7323 bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:40:16 -04:00
rusefi ef36b230c2 bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:25:32 -04:00
rusefi 465d242347 bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:23:00 -04:00
Matthew Kennedy 38d3641c00
trace global lock/unlock (#1582)
* trace global lock/unlock

* bootloader stub

* add to java

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-10 23:27:27 -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 a2573f5acd
Convert integration_and_primary_bundle scripts to sh (#1562)
* convert gen_upload_docs.bat

* convert run.bat

* forgot to add run.sh

* convert gen_upload_docs.bat

* remove checking from bats

* fix path

* fix path again

* fix file extension

* remove escapes

* added missing quotation and escapes

* add escapes

* change config for testing

* convert build_current_bundle

* convert clean_bootloader

* convert compile_bootloader_discovery

* convert compile_bootloader

* fix path

* convert run.sh

* fix path again

* convert hw_test

* convert flash_erase407

* convert flash_openocd407

* fix missing or

* fix another missing or

* fix quote

* add quotes

* add more quotes

* remove spurious call

* add more quotes

* convert simulator_test

* Add simulator_test

* Added semicolon

* add exports

* change destination path

* add quotes and error check

* moved rm and changed path back

* change path

* let the dead be

* add env var to skip hw test

* redo logic

Co-authored-by: David Holdeman <David Holdeman>
2020-07-03 11:03:50 -04:00
rusefi 38c3f119b1 UART DMA for "primary" connector #1528 2020-06-21 23:22:45 -04:00
Matthew Kennedy 94e63e7c43
binary logging (#1443)
* field support

* tests

* makefiles

* test data too

* missing include dir

* write correct thing

* fix one test

* fix test

* omnomnomnom ram

* format

* use defined names

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-17 15:56:37 -04:00
Matthew Kennedy 1f16228bdb
Perf Trace Improvements (#1383)
* add tid field to thread

* change perf trace format

* trace consumers

* Update java parsing

* guard for test + kinetis

* stubs

* ram

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-29 10:53:35 -04:00
rusefi 0a41aae042 "FASLE" -> FALSE 2020-04-26 01:25:41 -04:00
dron0gus 474d5e64cf
Update chibios (#1364)
* Update ChibiOS

* Fix coexistance of ChibiOS and our flash drivers

* Add 'int' = internal prefix for all on-chip flash functions

This avoid conflict with ChibiOS functions available after
enabling HAL_USE_EFL

* Exclude ChibiOS flash driver from bootloader

* Makefile magic?

* Kinetis: fix build after ChibiOS update and switching to SMART_BUILD

* Bootloader now use SMART_BUILD too
2020-04-25 16:32:32 -04:00
rusefi 907b80efa9 code style 2020-04-01 19:00:56 -04:00
Matthew Kennedy 4740f525ee
save some ram (#1211)
* remove dead stuff

* why store those pointers twice?
2020-03-22 19:06:29 -04:00
Matthew Kennedy a617cb30a5
bootloader ci (#1189)
* bootloader ci

* trailing slash

* Revert "progress?"

This reverts commit 6085bee005.

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 22:12:52 -04:00
rusefi 6085bee005 progress? 2020-03-13 21:23:58 -04:00
rusefi 97ce0eda46 fixing build? 2020-03-13 20:30:07 -04:00
Matthew Kennedy 98e6e4b0eb Fix master (#1134)
* Revert "something went very wrong."

This reverts commit 53179dfd22.

* Revert "trying to fix build broken by "Sensor reconfiguration while running (#1131)""

This reverts commit 0bf32a7291.

* Revert "partial Revert of "Stricter compile options (#1132)""

This reverts commit a17cc28382.

* temp prometheus fix

* fix bootloader

* fix batch files
2020-02-08 16:34:29 -05:00
rusefi 53179dfd22 something went very wrong.
first we have functional defects
that we do not write test to cover newly intdroduced defects
then attempts to fix defects do not compile
2020-02-08 08:15:46 -05:00
rusefi 0bf32a7291 trying to fix build broken by "Sensor reconfiguration while running (#1131)" 2020-02-08 07:26:54 -05:00
rusefi db4ea08568 The Big Refactoring of 2019: folder structure #723 2019-12-04 00:04:27 -05:00
Matthew Kennedy 3f0385f70d Remove chibios trace flag (#1037)
* remove from scripts

* remove from others
2019-12-02 19:11:07 -05:00
rusefi 9597215ad9 recoviring CI 2019-11-21 17:12:46 -05:00
rusefi efeae62769 Really need to Fix and expand commit gate check 2019-11-19 23:28:34 -05:00
rusefi 9632555d47 NOT A GREAT FIX - TODO @andreika any chance you can help here? 2019-11-19 20:56:35 -05:00
rusefi 78e32c0c0a clean-up 2019-11-19 20:56:11 -05:00
rusefi 71fd295d9c making GCC 9 happier 2019-11-19 20:43:12 -05:00
rusefi 33a488aa54 fixing bootleader build 2019-08-03 20:09:18 -04:00
rusefi fc241ce665 setDefaultBoardConfiguration shouldn't have Frankenso pinout #852
merging methods since always invoked together
2019-07-24 21:24:39 -04:00
andreika-git e1b00468f0 Small fix for simulator + bootloader (#877)
* fix simulator

* fix bootloader
2019-07-09 06:06:07 -04:00
rusefi c2f0fc2f17 reducing scripts duplication 2019-06-08 15:10:54 -04:00
rusefi 0d9e077f27 not a great fix in my opinion 2019-06-02 14:44:21 -04:00
rusefi 5da787f4b4 would it help BL? 2019-05-05 11:13:20 -04:00
rusefi ff641d81e2 fixing build & refactoring 2019-04-28 23:42:49 -04:00
rusefi 5b522dc8fd this change is probably breaking stuff, but some stuff is already broken. something is not right in too many places :( 2019-04-21 14:00:19 -04:00
rusefi 0ccd37d964 fixing build? 2019-04-21 08:51:52 -04:00
rusefi 7c3e88c7dc Try ccache #769 2019-04-20 21:44:00 -04:00
rusefi 9058742ba1 fixing bootloader 2019-04-18 09:05:58 -04:00
rusEfi f8fec2e2fb thank you Dron_gus fot the idea! 2019-04-13 19:55:18 -04:00
rusefi 6516c4753d we need TLE8888 driver #714
reviving build
2019-04-13 16:35:45 -04:00
rusefi d8281626df defined(__DOXYGEN__) ? fix #748 2019-04-12 22:10:57 -04:00
rusefi a829206947 fixing build - BOOTLOADER has it's special limitations 2019-04-10 09:02:32 -04:00
rusefi 2f47681356 The Big Refactoring of 2019: folder structure #723 2019-04-05 01:24:42 -04:00
rusefi 0922cd67cc fixing build 2019-04-01 02:23:18 -04:00
rusefi 7e1395156d The Big Refactoring of 2019: folder structure #723 2019-03-31 17:31:24 -04:00
rusefi 76b8be870e version into file 2019-03-29 11:24:53 -04:00
rusefi e126c5c8fc naming convention 2019-03-29 11:24:25 -04:00
andreika-git 001fbb2526 More portability & bootloader fix (#720)
* fix bootloader

* EFI_FSIO

* EFI_EMULATE_POSITION_SENSORS, EFI_BOARD_TEST, EFI_AUX_PID, EFI_JOYSTICK
2019-03-29 15:46:15 +01:00
rusefi 40ba99d8b2 unifying_file_naming 2019-03-29 09:18:10 -04:00
rusefi bd2b992918 unifying_file_naming 2019-03-29 09:11:13 -04:00
rusefi 613a2ad81c Firmware Update via UART and/or USB #398 2019-03-29 01:52:58 -04:00
andreika-git d6ff361743 Fix bootloader (#717)
* Use hw_stm32.mk

* Fix bootloader
2019-03-29 06:46:48 +01:00
rusefi ba9ed59401 Firmware Update via UART and/or USB #398
bootloader into jenkins
2019-03-28 07:38:15 -04:00
rusefi 9182059f61 bootloader progress 2019-03-27 23:45:35 -04:00
rusefi 0c5cd4cbe0 MD is pretty much same thing as TXT 2019-03-27 20:40:46 -04:00
andreika-git 4b2a903684 Prometheus 405 and bootloader fix+update (#712)
* Fix Prometheus-405 compilation

* Add more bootloader bat-files for some board configs

* Fix Prometheus compilation for new ChibiOS

* Fix Bootloader compilation for new ChibiOS

* Update pre-generated bootloader files for Prometheus 405/469
2019-03-22 11:38:18 -04:00
rusefi d9c8c1fc3e #631 TIME_MS2I mostly 2019-01-28 20:00:17 -05:00
rusefi 98c7ad808c refactoring 2018-09-16 22:39:46 -04:00
rusefi 3b87b725d1 refactoring 2018-09-16 22:25:17 -04:00
andreika-git dc6317a737 Prometheus board config (#561) 2018-01-29 18:27:01 -05:00
andreika-git d7c46fbb21 Bootloader set default pin states (#524)
* Set default pin states needed by Bootloader

* Small Bootloader fix
2017-12-24 13:45:03 -05:00
Andrei f3f7b75b56 Refactoring 2017-06-04 22:01:40 +03:00
Andrei 26f6bda49e nicefy 2017-06-02 13:58:32 +03:00
Andrei 0b13607efd Added link to the DFU protocol appnote 2017-06-02 12:31:52 +03:00
rusefi f0c3df2820 bootloader 2017-06-01 20:49:18 -04:00
rusefi 0be35cfc81 bootloader - first step 2017-06-01 20:32:26 -04:00
Andrei 3db7ac986a More readme.txt and STMFlashLoader_all_screenshots.png 2017-05-31 17:39:17 +03:00
Andrei 87f0890ae0 readme.txt, first draft 2017-05-31 03:35:42 +03:00
Andrei 3abb2232a8 remove debug garbage 2017-05-31 01:43:39 +03:00
Andrei 1f82dac45f Bootloader code, first commit 2017-05-31 01:38:51 +03:00