Commit Graph

72 Commits (d572c012cb9f3f421d1556b37a1d3f18b5366b06)

Author SHA1 Message Date
Willem Melching 97cd401abf
fix pc detection, remove tools (#626) 2021-02-01 14:57:49 +01:00
robbederks a38925a0a4
this fixes the fw on newer compilers. haven't figured out why it broke yet (#549) 2020-06-02 14:21:41 -07:00
Jason Young 4c7755c471
Match Panda DFU entry fix in "make recover" process (#509)
* Match DFU entry fix from f07a6ee in "make recover" process

* Why use many code when few code do trick
2020-04-16 15:51:16 -07:00
Comma Device bac4d85434 dos and python3 2019-11-06 21:42:07 +00:00
rbiasini 59f5813173
Black (#254)
* late usb

* Added type support for black panda

* Added harness presence and orientation detection

* harness relay driving code

* Added intercept support in black panda code. Switched around can0 and can2

* Disable ADCs after orientation detection. Ignition interrupts via harness

* WIP: Hardware abstraction layer + black panda bringup

* Fixed bootstub build

* Fixed bootstub for pedal

* Fixed infinite loops

* Got CAN buses working on white again

* Fixed pedal build and black can interfaces

* Got CAN buses working on black panda

* Finished loopback test for black panda

* Erase all flash sectors on the panda. Increased binary limit. Added extra python functions.

* Fixed python

* Made new code MISRA compliant

* Cleaned up ignition. Fixed build

* Fixed health packet

* Fixed CAN mode on black bug. Changed OBD to switch on ELM mode

* Fixes from Github review

* Fixed MISRA issue for pedal

* Fixed failing gmlan tests

* ELM327 safety: allow diagnostic on all buses

* Cleaned up EON relay code

* delete only 3 sectors instead of 11 to allow a new build to be flashed. Much faster to flash

* Removed CAN only can0 output mode. Does not make sense on black panda due to reversibility issues.

* Added heartbeat logic for EON code on panda. Go to NOOUTPUT if EON does not send a heartbeat for 5 seconds.

* Remove all CAN buses live on EON startup. Shouldn't be necessary to have this separate case

* Formatting

* Added file I forgot to push

* Added heartbeat to testing code to make sure EON tests don't fail. Should probably find a better way to do this though. Heartbeat thread didn't work, concurrent USB connection issues...

* Safety: support black panda for Honda Bosch

* Disable OBD2 if setting to NOOUTPUT mode

* Run safety tests for all hw_types

* Fail test if subtest fails

* fix safety tests
2019-07-23 15:07:06 -07:00
Willem Melching 50658b2b00 Use dfu-utils binary from panda repo on EON 2019-06-10 13:56:13 -07:00
dekerr 4a3b587c64 generate dependencies and clean (#184)
* gen dependencies
Main.o and bootstub.o were missing headers (like recent power_saving.h). Generate them instead to guarantee makefile re-makes if any dependency is modified.
2019-05-06 17:33:38 -07:00
rbiasini a6193a8285
Dcp remove (#168)
* No DCP charge mode when building from EON
2019-03-11 23:41:40 -07:00
kernyan e0dd55841a Fixed undefined reference error when "make recover" in EON
In fd233832ef
the linker flag -lgcc might not work on EON as it does not have the
correct library.

The fix was a workaround in sha.c such that we no longer need to import
function __aeabi_llsr from library, by replacing right shift operation
with const argument.

E.g.,
uint64_t a = b >> i // requires __aeabi_llsr from libgcc
uint64_t a = b >> 2 // does not require external library

Resolves: #522
2019-02-13 00:43:30 -08:00
Riccardo de1ba06d71 Build optimizer: back to Os now that 'make --recover' is fixed 2019-02-06 11:45:30 -08:00
Drew Hintz fd233832ef add -lgcc flag to fix "undefined reference to __aeabi_llsr" (#156)
https://github.com/commaai/openpilot/issues/522
2019-02-06 11:44:18 -08:00
Riccardo 1cc74e2b42 Reverted code optimizer option to O2 after 'make recover' broke 2019-02-05 22:17:35 -08:00
Drew Hintz 9ee628557f optimize board build for size to avoid going over the limit. (#150)
* optimize board build for size to avoid going over the limit.
Here are the sizes of board/obj/panda.bin with different settings:
-O2 32228
-Og 30172
-Os 28028

* warning if panda.bin is over the panda's limit

* if bin is too big, error out
2019-01-23 13:24:29 -08:00
George Hotz a4c8b64678 change to O2 to fix make recover 2018-04-11 19:12:58 -07:00
Chris Vickery 711fd112b7 Enable compiler optimizations, fix things it breaks 2018-04-11 16:15:38 -07:00
Chris Vickery 6dbd8c972b
Implement WebUSB and upgrade WinUSB to 2.0 (#107)
* Implement webusb and winusb 2.0 specs

* Add missing constants

* Refactor string system, add support for USB2.1

* Uncapitalize the panda

* Add USB 2.0 extension descriptor and device qualifier getter

* Sleep during reconnect process to be more reliable

* Disable compiler optimizations because they break SPI coms
2018-04-11 10:08:56 -07:00
Vasily Tarasov 786a004af5 Enable optimization to reduce firmware size
With no optimization, Chevy Volt safety makes panda.bin
over 32k and it no longer fits in a Panda.
2018-02-22 20:47:17 -08:00
George Hotz af74aa9f5a from python import 2018-01-18 21:31:30 -08:00
George Hotz 7a7684e420 add two more headers to makefile 2017-09-25 19:21:00 -07:00
George Hotz 975ee16d75 add safety files to makefile 2017-09-25 19:19:11 -07:00
George Hotz 22a00b1043 add st updater 2017-08-28 10:42:23 -07:00
George Hotz 8da4eeb48c bump version to 0.9.3 2017-08-25 12:07:30 -07:00
George Hotz afb5509ad5 specify device id in dfu-util call 2017-08-23 18:38:17 -07:00
George Hotz 251724e66f set pythonpath in build.mk 2017-08-23 14:17:01 -07:00
Firmware Batman 72d9247ce0 refactor boardesp and version build 2017-08-22 09:08:24 -07:00
Firmware Batman 52a2dc7fe2 add semantic versioning 2017-08-21 14:35:38 -07:00
Firmware Batman 71d81ed916 some computers are slow to enumerate 2017-08-21 13:32:28 -07:00
Firmware Batman 798f942346 fix legacy build issue, add build test, fix warnings 2017-08-01 03:00:53 +02:00
Firmware Batman 991ad5be20 add wifi tests 2017-07-30 08:26:48 -07:00
Firmware Batman 1066c2d1b0 fixed SPI, so much subtlety 2017-07-29 19:19:43 -07:00
Firmware Batman 0ee6e4741c move llgpio to drivers 2017-07-29 17:53:39 -07:00
Firmware Batman 9ed4516318 move dac to drivers, add sleep 2017-07-29 17:49:53 -07:00
Firmware Batman 7b6e176368 make new flasher the default for make 2017-07-29 17:21:22 -07:00
Firmware Batman 5630e71813 fixes during vegas trip 2017-07-27 14:33:49 -07:00
Firmware Batman 9a1c1b692f write soft flasher 2017-07-24 15:16:22 -07:00
Firmware Batman 362c9d8aa9 move early back to header 2017-07-19 17:21:47 -07:00
Firmware Batman c8c8601751 well that's a concern, O2 breaks comm over SPI 2017-07-19 17:09:55 -07:00
Firmware Batman 64495a0018 all tests passing, clean up usb power 2017-07-18 23:07:19 -07:00
Firmware Batman bd57d8be56 enable O2 2017-07-18 10:28:41 -07:00
Firmware Batman 6a56dd1ad2 clean up interrupts more 2017-07-18 10:19:42 -07:00
Firmware Batman b1c4418f51 move the gnu11 2017-07-17 23:05:03 -07:00
Firmware Batman c7a9263361 refactor safety and enable tests 2017-07-17 15:29:31 -07:00
George Hotz 7733b09288 Revert commits that broke USB for openpilot.
Revert "fix openpilot board flashing"

This reverts commit 8ff93ad5da.

Revert "Fixed output_enabled led not turning off when mode changed to no output."

This reverts commit 27a8af1107.

Revert "Fixed loopback test for new GMLAN 'can4' behavior."

This reverts commit 59592f599a.

Revert "GMLAN is now always mapped through CAN4 (index 3)"

This reverts commit 329c091024.

Revert "Removed compile time config for CAN loopback, implemented as usb message."

This reverts commit e1a4c32985.

Revert "Change all output safety mode identifier to prevent user mistakes."

This reverts commit 6b363e2e92.

Revert "untabify"

This reverts commit 191f67b083.

Revert "Refactor of safety to support more modular additions of safety policies."

This reverts commit e5b524eddc.

Revert "Split up some more header files into compilation units."

This reverts commit e2a78912f5.

Revert "Enabled emulated control writes over USB."

This reverts commit 133cfe9703.

Revert "Moved CAN and USART code out of main.c and into more appropriate files."

This reverts commit daad2dc062.

Revert "Large Panda CAN cleanup. Restrict GMLAN to valid baud rates."

This reverts commit a0616a2bc2.

Revert "Panda library now correctly sends USB direction bit."

This reverts commit 1712c901d4.

Revert "Board makefile now automatically calculates header file dependencies."

This reverts commit 4a8d4e597b.

Revert "Loopback test works over wifi. (Disable trying to send over wifi)"

This reverts commit dae636968a.

Revert "Fix legacy board build"

This reverts commit 62bf4e5756.

Revert "Style cop"

This reverts commit c439f43726.

Revert "Untabify"

This reverts commit 41e5eec621.

Revert "Fixed disabling gmlan."

This reverts commit 5e1e45a4af.

Revert "Removed dead code, standardized canid in more commands, better erroring behavior."

This reverts commit b59aeb6d87.

Revert "loopback test works with new CAN bus ids."

This reverts commit 75970861cf.

Revert "Large reorganization of code and early integration of can bitrate setting."

This reverts commit a1ed7b62ee.
2017-07-12 11:27:16 -07:00
Jessy Diamond Exum e5b524eddc Refactor of safety to support more modular additions of safety policies. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum e2a78912f5 Split up some more header files into compilation units. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum 4a8d4e597b Board makefile now automatically calculates header file dependencies. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum 75970861cf loopback test works with new CAN bus ids. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum a1ed7b62ee Large reorganization of code and early integration of can bitrate setting. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum 431080403d Panda firmware auto detects REV C hardware. 2017-06-27 19:27:24 -07:00
Jessy Diamond Exum bbe0d2217f More consistent make rule for c files in 'board'. 2017-06-19 20:46:07 -07:00