Commit Graph

142 Commits

Author SHA1 Message Date
Matthew Kennedy 34061103ff dead bin2header 2023-11-25 00:32:52 -08:00
Matthew Kennedy 87c2a67645 use FLASH_BASE instead of completely magic numbers 2023-11-02 12:45:21 -07:00
Matthew Kennedy 0ec79437e6 cover H7 too 2023-11-02 12:42:50 -07:00
Matthew Kennedy f60594f6d2 more F7 cache misbehavior 2023-11-02 12:41:08 -07:00
Matthew Kennedy e5a751e3b1
remove ccache (#288) 2023-11-02 11:28:14 -07:00
Matthew Kennedy 19b6222d98
enable f7 openblt (#230)
* enable f7 openblt

* replace __core_init with one that doesn't set up cache

* MRE F7 too
2023-11-02 02:32:30 -07:00
Matthew Kennedy 0bedacc298
bootloader checksum (#279)
* blindly implement checksum

* extra erase of checksum page

* don't need to write the sum ourselves

* maybe implement bootloader crc correctly

* minus is not plus

* modify build script to properly embed checksum

* cleanup

* use lma instead of vma

* implement bootloader blinky

* stub firmwareError

* static blinky
2023-11-02 02:16:56 -07:00
Matthew Kennedy feb900b94a
move bootloader files (#277)
* move bootloader files

* minor cleanups

* makefile
2023-10-31 18:13:16 -07:00
Matthew Kennedy 17570a4819 probably fix hellen openblt 2023-10-03 19:01:58 -07:00
Matthew Kennedy cef93b1c48 s 2023-08-27 16:44:01 -07:00
Matthew Kennedy f98cc33ae5 oops that doesn't work 2023-08-27 16:25:20 -07:00
Matthew Kennedy ba78401609 dynamic bootloader size 2023-08-27 16:07:26 -07:00
Matthew Kennedy 5813c20a32
OpenBLT-based USB serial bootloader (#228)
* flash layout

* bootloader builds

* output name

* hard fp

* strip out dfu

* bootloader gets hardfault

* loader gets USB but not MSD

* kinda usb?

* USB enumerates!

* cleanup

* shared params

* nonfunctional openblt

* stub flash

* flash.h

* openblt responds over USB!

* implement flash driver

* blt conf, linker

* boards no longer need specific openblt files

* no ccache

* common_make.sh

* cleanup

* delete bootloader crust

* simplifying linker logic

* script tweaks

* flash layout is handled entirely by FOME flash driver

* simplify memcpy

* format

* comment

* dead

* makefiles cleanup

* cleanup

* h7 linker script for bootloader

* h7 bootloader build

* build script
2023-08-27 10:30:02 -07:00
Matthew Kennedy d6534157a0 rename obd_code_e -> ObdCode 2023-04-11 16:32:47 -07:00
Matthew Kennedy 556a04b8d4 use fixed number instead of nproc 2023-03-13 14:03:33 -07:00
Matthew Kennedy aa48077d58 dead stuff 2023-03-02 02:21:53 -08:00
Matthew Kennedy 07b2f1b783 include after main rules so that deps exist 2023-02-22 15:58:15 -08:00
Matthew Kennedy 72acb81682 fome-ify 2023-02-21 02:29:22 -08:00
Matthew Kennedy 61c17791b8 joystick, lcd 2023-02-20 21:54:10 -08:00
Matthew Kennedy cc6cadfdd6 deduplicate $(BOARD_DIR) in makefiles (#5024)
* calculate BOARD_DIR exactly once

* deduplicate board scripts

* unit tests

* make passes variables to openblt build properly

* was this an intentional omission?

* s

* prometheus

* prometheus
2023-02-01 14:41:27 -05:00
David Holdeman 79b146c5ed remove clean_env_variables script (#5012) 2023-01-28 19:55:40 -05:00
rusefillc 9067282c80 Default binary should have more relaxed pinout: serial fix #4998
ohh unexpected consequences
2023-01-23 08:38:10 -05:00
rusefillc 3aa9ffca60 Refactoring: less confusion macro names around serial/uart/etc in connectivity #4999 2023-01-23 05:09:32 -05:00
Matthew Kennedy de9ab76a31 gcc 10 (#4641)
* scripts

* change check version

* disable inlining

* all the spots

* it's funny that this works with the wrong file extension

* bootloader

* hardware ci runs gcc 10
2022-10-18 22:30:16 -04:00
rusefillc 10298e9365 not used by BL? 2022-09-05 18:48:02 -04:00
rusefillc 573ddbfab2 +x 2022-09-05 18:39:06 -04:00
Matthew Kennedy 5fc7000834 Pt2001 module (#4396)
* pt2001 uses module

* read flag0

* c

* libfirmware

* makefiles

* are unit tests happy?

* bootloader
2022-08-08 08:53:08 -04:00
Matthew Kennedy cd98ad35c2 use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
Matthew Kennedy a2e1a079b8 allow enum_class in rusefi_hw_enums.h (#4104)
* make things c++ friendly

* install various canaries in coal mines

* using is much clearer than typedef

* fixing builds

* lps25

* trigger includes were a mess

* c -> c++ cleanup

* os util

* why did so many include os_util.h?

* fwd declare

* cypress/kinetis

* s

* eg33 happy

* happy sim

* cypress usb

* pch

* cypress

* doesn't need to include all that

* h7
2022-04-25 20:38:16 -04:00
rusefillc 6823d15398 more copy-pasta :( 2022-02-06 22:00:49 -05:00
rusefillc 2dd4929def 407 eeprom (#3896)
* I2C EEPROM support #3860

enable

* I2C EEPROM support #3860

fresh contib

* I2C EEPROM support #3860

fresh contib

* I2C EEPROM support #3860

BL gives us extra pain

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-05 15:57:11 -05:00
rusefillc feaa5920eb Catch up with Chibios 20.3 #2555 2022-01-15 22:09:33 -05:00
rusefillc d447e34344 mk files refactoring 2022-01-06 21:48:48 -05:00
rusefillc d3556d1c17 Live Data progress
fixing build?
2022-01-06 20:16:59 -05:00
rusefillc e2223afdb7 reducing copy-pasta - would this work? 2022-01-04 19:28:01 -05:00
Scott Smith 8406fafa9e Expose console over serial port for H7 proc (#3578)
This way you can use the console/TunerStudio with the ST-Link

In the process, combine TS_PRIMARY_UART and TS_PRIMARY_SERIAL into TS_PRIMARY_PORT, to make UART vs
SERIAL selection more robus.  Ditto for TS_SECONDARY_*.  Also change use of TS_NO_PRIMARY to be #if
not #ifdef, so that it can be properly set as a compile flag and not be overwritten by various
header files.
2021-11-20 00:39:08 -05:00
Matthew Kennedy a79b0c424c turn on c++ 20 (#3579)
* set flags

* emit initializers

* jar
2021-11-19 22:19:34 -05:00
Matthew Kennedy 7296593448 remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy c1941f3a49 (void) -> () (#3550)
* static functions with (void)

* more

* Revert "more"

This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
Scott Smith 7367aa5b8a Compile each project's PCH to a separate file to reduce developer friction. (#3505)
Having to remove the precompiled header when switching from firmware to simulator to unit_tests and
back again is annoying.  Use a directory to store the precompiled header output.  Turn off
precompiled header warnings as GCC still complains even if it finds a valid one eventually.
2021-11-08 15:52:58 -05:00
rusefillc c28af491bc Update readme.md 2021-11-05 19:53:58 -04:00
rusefillc 54acc2bf82 BL docs 2021-10-30 10:13:08 -04:00
Matthew Kennedy 07d96730bd bootloader (#3364) 2021-10-18 20:26:00 -04:00
rusefi eca29e6958 refactoring - nicer style 2021-10-08 23:14:11 -04:00
Matthew Kennedy 4e6b61234f yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Matthew Kennedy d3ec2b21d1 Use pch in lots of files (#3066)
* most engine.h

* most engine_configuration

* more

* more

* more

* more

* more

* moooooore

* ok I'm done for now

* oops
2021-07-26 01:05:17 -04:00
Matthew Kennedy f44a84b40c set up precompiled header (#2971)
* ignore

* set up precompiled header

* makefile

* fixes

* cleanup

* only depend cpp on pch

* efifeatures in pch

* f7 efifeatures

* consolidate

* simulator

* proteus build

* error handling is a good one

* bootloader pch

* don't auto include pch

* dirs

* delete on clean

* bootloader cleans

* clean.sh deletes pch

* disable in bl for now

* there was a typo so maybe it'll work now

* remove todo

* don't need that any more

* don't need these parts

* don't need this part

* undo changes

* use a different cpp as example

* s

* Revert "cleanup"

This reverts commit 8de8698490f5d09c2df753f00a89751aa898be9a.

* also unnecessary now

* buh

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-25 21:23:23 -04:00
rusefillc a37e875923 Fix bootloader build #2907
helping build?
2021-07-05 15:08:11 -04:00
Andrey G f911e18aee Fix bootloader build (#2907)
* Chibios-Contrib fix

* hm?!!

* Chibios-Contrib path is also relative to PROJECT_DIR

* Revert "Chibios-Contrib path is also relative to PROJECT_DIR"

This reverts commit 8cab5c5508df5fb57b2fe86d80589a3081cbf56c.
2021-07-05 14:18:05 -04:00
rusefillc 20492441b4 helping build? 2021-07-05 11:51:54 -04:00