Commit Graph

127 Commits

Author SHA1 Message Date
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 e22a9e9d02 -g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -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
rusefillc c6528313fc DBGMCU->IDCODE 2021-01-14 23:19:54 -05:00
Matthew Kennedy 6b0c533d2c 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 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
Matthew Kennedy 94bd5921c5 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 3105eb9192 The Big Refactoring of 2019: folder structure #723 2020-08-02 21:04:50 -04:00
rusefi e10a67232c bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:40:16 -04:00
rusefi de471f88e2 bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:25:32 -04:00
rusefi ac047c5836 bootloader not well? #1638
trying to fix error detection mechanism
2020-07-25 17:23:00 -04:00
Matthew Kennedy 1a0cad431b 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 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 1fdfb2cf31 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 57b0d7f7ef UART DMA for "primary" connector #1528 2020-06-21 23:22:45 -04:00
Matthew Kennedy e6e48ce66c 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 a9bf0f8358 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 5769d6d147 "FASLE" -> FALSE 2020-04-26 01:25:41 -04:00
dron0gus d5a76b5dda 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 cc35e8a9b0 code style 2020-04-01 19:00:56 -04:00
Matthew Kennedy 61c4d0fe83 save some ram (#1211)
* remove dead stuff

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

* trailing slash

* Revert "progress?"

This reverts commit e5c3da2ab1.

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

This reverts commit e0fb325d5a.

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

This reverts commit 55e8ee5052.

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

This reverts commit b0d7cc9a22.

* temp prometheus fix

* fix bootloader

* fix batch files
2020-02-08 16:34:29 -05:00
rusefi e0fb325d5a 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 55e8ee5052 trying to fix build broken by "Sensor reconfiguration while running (#1131)" 2020-02-08 07:26:54 -05:00
rusefi b55f0c06d5 The Big Refactoring of 2019: folder structure #723 2019-12-04 00:04:27 -05:00
Matthew Kennedy d27b8fe080 Remove chibios trace flag (#1037)
* remove from scripts

* remove from others
2019-12-02 19:11:07 -05:00
rusefi b158f0ec34 recoviring CI 2019-11-21 17:12:46 -05:00
rusefi da158b90aa Really need to Fix and expand commit gate check 2019-11-19 23:28:34 -05:00
rusefi 0d75d72bee NOT A GREAT FIX - TODO @andreika any chance you can help here? 2019-11-19 20:56:35 -05:00
rusefi b4c544f257 clean-up 2019-11-19 20:56:11 -05:00
rusefi cd5c3b0dc3 making GCC 9 happier 2019-11-19 20:43:12 -05:00
rusefi 7a16cd9d6c fixing bootleader build 2019-08-03 20:09:18 -04:00
rusefi ac18459e3f setDefaultBoardConfiguration shouldn't have Frankenso pinout #852
merging methods since always invoked together
2019-07-24 21:24:39 -04:00
andreika-git 18f2c3c990 Small fix for simulator + bootloader (#877)
* fix simulator

* fix bootloader
2019-07-09 06:06:07 -04:00
rusefi db45ea785d reducing scripts duplication 2019-06-08 15:10:54 -04:00
rusefi 90456e7131 not a great fix in my opinion 2019-06-02 14:44:21 -04:00
rusefi 2ee08ec29e would it help BL? 2019-05-05 11:13:20 -04:00
rusefi f6c5f8764a fixing build & refactoring 2019-04-28 23:42:49 -04:00
rusefi 23e591a253 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 165a20c88b fixing build? 2019-04-21 08:51:52 -04:00
rusefi 4627cc9c8f Try ccache #769 2019-04-20 21:44:00 -04:00
rusefi ca7fe4fffa fixing bootloader 2019-04-18 09:05:58 -04:00
rusEfi ad50909f18 thank you Dron_gus fot the idea! 2019-04-13 19:55:18 -04:00
rusefi 4adf3e0ff7 we need TLE8888 driver #714
reviving build
2019-04-13 16:35:45 -04:00
rusefi 24948a2641 defined(__DOXYGEN__) ? fix #748 2019-04-12 22:10:57 -04:00
rusefi e002f141fa fixing build - BOOTLOADER has it's special limitations 2019-04-10 09:02:32 -04:00
rusefi bbdd19fb26 The Big Refactoring of 2019: folder structure #723 2019-04-05 01:24:42 -04:00
rusefi 5fa493e38f fixing build 2019-04-01 02:23:18 -04:00
rusefi 5c5014d09d The Big Refactoring of 2019: folder structure #723 2019-03-31 17:31:24 -04:00
rusefi 4da9e93107 version into file 2019-03-29 11:24:53 -04:00
rusefi f40eed3cfd naming convention 2019-03-29 11:24:25 -04:00
andreika-git c7b1bb1ff1 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 0ce89735a5 unifying_file_naming 2019-03-29 09:18:10 -04:00
rusefi e28ce71bb8 unifying_file_naming 2019-03-29 09:11:13 -04:00
rusefi 0c05462810 Firmware Update via UART and/or USB #398 2019-03-29 01:52:58 -04:00
andreika-git 2363d1b4ae Fix bootloader (#717)
* Use hw_stm32.mk

* Fix bootloader
2019-03-29 06:46:48 +01:00
rusefi aa794255eb Firmware Update via UART and/or USB #398
bootloader into jenkins
2019-03-28 07:38:15 -04:00
rusefi b5f6e169ee bootloader progress 2019-03-27 23:45:35 -04:00
rusefi 6015be0bec MD is pretty much same thing as TXT 2019-03-27 20:40:46 -04:00
andreika-git 0431bddd6b 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 0e82173958 #631 TIME_MS2I mostly 2019-01-28 20:00:17 -05:00
rusefi c3a57b6a77 refactoring 2018-09-16 22:39:46 -04:00
rusefi 4868a9fd82 refactoring 2018-09-16 22:25:17 -04:00
andreika-git e3c338d1b2 Prometheus board config (#561) 2018-01-29 18:27:01 -05:00
andreika-git e9c8a2a6a8 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 f52a0064fa Refactoring 2017-06-04 22:01:40 +03:00
Andrei 293142c676 nicefy 2017-06-02 13:58:32 +03:00
Andrei 31e34a051c Added link to the DFU protocol appnote 2017-06-02 12:31:52 +03:00
rusefi 7f0ab9657d bootloader 2017-06-01 20:49:18 -04:00
rusefi 1e0e88bfee bootloader - first step 2017-06-01 20:32:26 -04:00
Andrei 121a1d73a1 More readme.txt and STMFlashLoader_all_screenshots.png 2017-05-31 17:39:17 +03:00
Andrei 55f045f1d6 readme.txt, first draft 2017-05-31 03:35:42 +03:00
Andrei 3fa3369be9 remove debug garbage 2017-05-31 01:43:39 +03:00
Andrei b90b2607ae Bootloader code, first commit 2017-05-31 01:38:51 +03:00