Adeeb Shihadeh
6eb89cefdf
board: remove set_phone_power ( #1747 )
2023-11-25 13:17:08 -08:00
Adeeb Shihadeh
4c0d2505b7
remove k-line driver ( #1743 )
2023-11-23 17:09:10 -08:00
Adeeb Shihadeh
f1cd12651c
safety: remove LIN hook ( #1741 )
...
* safety: remove LIN hook
* rm more
2023-11-23 16:30:20 -08:00
Adeeb Shihadeh
a1d699b87d
SOM boot recovery ( #1712 )
...
* reset
* simpler
* only once per panda boot
* cleanup
* also check serial
2023-11-09 18:01:46 -08:00
Adeeb Shihadeh
aaa1172fa2
HITL bootkick tests ( #1685 )
...
* HITL bootkick tests
* both bootkick cases
* more
* som use gpio
* cleanup
* pretty reliable now
2023-10-06 13:38:35 -07:00
Adeeb Shihadeh
b6e37f25b6
Remove flash logging ( #1674 )
...
* Revert "Disable flash logging (#1667 )"
This reverts commit 62db60595b .
* Revert "Faster log retrieval (#1484 )"
This reverts commit 694aae9c26 .
* Revert "Flash bounds checking outside of bootstub (#1459 )"
This reverts commit 054344de6b .
* Revert "Logging (#1445 )"
This reverts commit 0cc91a7f7b .
* cleanup
* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
c66b98b2a6
finish esp/gps removal ( #1559 )
2023-08-06 12:29:54 -07:00
Robbe Derks
a945053ade
Force relay drive ( #1539 )
...
force drive
Co-authored-by: Comma Device <device@comma.ai >
2023-08-01 16:33:34 -07:00
Adeeb Shihadeh
7f1944cf43
debug endpoint for custom clock source period ( #1538 )
...
* debug endpoint for custom clock source period
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-08-01 16:17:42 -07:00
Robbe Derks
694aae9c26
Faster log retrieval ( #1484 )
...
improve get_logs
2023-06-30 17:26:39 +02:00
Igor Biletskyy
5889e3784f
H7: fix FDCAN_IR register check ( #1480 )
...
* init
* typo
* misra
* leftover
2023-06-21 18:56:10 -07:00
Igor Biletskyy
9d56e80390
Change can_health request method ( #1472 )
...
* init
* fix typo
* remove tx lost as fake and add rx lsot
2023-06-20 12:29:20 -07:00
Igor Biletskyy
0f4e8f79f5
add IRQ rate helper function ( #1471 )
...
init
2023-06-20 11:47:43 -07:00
Robbe Derks
0cc91a7f7b
Logging ( #1445 )
...
* try 1
* some fixes
* fix some misra
* first poc working
* more things
* more misra fixes
* fix misra
* add rate limiting
* fix misra
* add some unit tests through libpanda
* add more tests and fix some stuff
* fix misra again
* add startup log hitl test
* list
* don't fail on wrong timestamps
* improvements
* fix tests
* expected logs test?
* not sure why this passed
* oh, it doesn't reset
* only show last few
* guess at expected logs
* needs this
* ugh
* reduce compiler warnings
* adjust expected logs
* this is correct
* is it really 1?
* min max
* reduce spam in SPI test
* some cleanup
2023-06-13 17:00:56 +02:00
Robbe Derks
2c937656cf
Continuous harness detection ( #1402 )
...
* read in mV and make threshold board-dependent
* refactor and add SBU voltages to health
* refactor relay driving
* more refactoring and readout lock
* avoid race condition
* fix misra
* continuous detection
* 1Hz is fine
* another race condition
* use harness detection to trigger bootkick
* update orientation detection test
* more in-depth harness tests
* fix ignition
* fix
* raise threshold
2023-05-08 13:30:23 +02:00
Robbe Derks
fea1feb598
ADC cleanup ( #1401 )
...
* cleanup function names
* cleanup voltage reading
* define constant
* fix misra
* remove comments
2023-05-04 13:22:01 +02:00
Adeeb Shihadeh
3c75a8bc00
add fan stall count to health ( #1355 )
...
* add fan stall count to health
* fix misra
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-04-20 13:30:56 -07:00
Adeeb Shihadeh
6f852b44a9
SPI: log checksum errors in health ( #1334 )
...
* SPI: log checksum errors in health
* actually send it
* check in hitl teardown
* check that
* fix misra
2023-04-05 22:05:14 -07:00
Igor Biletskyy
75792fb255
Fix different ADC scales ( #1288 )
...
* different ADC scales
* add HITL
* we had it, remove
2023-03-14 14:49:39 -07:00
Robbe Derks
d6af117c62
Microsecond timer fix ( #1236 )
...
* add microsecond timer readout
* add CI test
* fix
2023-02-14 12:16:15 +01:00
Adeeb Shihadeh
b8693da342
add comms handler to get MCU UID ( #1212 )
...
* cleanup first
* get uid
* add to bootstub and test
* fix pedal
* match that
Co-authored-by: Comma Device <device@comma.ai >
2023-01-15 20:13:26 -08:00
Robbe Derks
11d90f9e78
No more magic for the can chunks ( #1191 )
...
* no more magic
* bump version
* no need for this
* comment cleanup
* add comms_can_reset tests
* we can't ensure this for compatibility reasons
* add CANPacket_t checksum
2023-01-13 10:59:58 -08:00
Robbe Derks
744b21ef69
Bring back green led mode + fix small python lib bug ( #1206 )
...
bring back green led mode
Co-authored-by: Panda Provisioning <panda@comma.ai >
2023-01-10 15:09:51 -08:00
Robbe Derks
1d732d4747
F4: Cleanup clock src, second try ( #1193 )
...
* F4: cleanup clock source
* little more
* void
* restore the timer setup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
Co-authored-by: Comma Device <device@comma.ai >
2022-12-14 15:30:04 +01:00
Adeeb Shihadeh
88b30e1a84
CAN comms test ( #1181 )
...
* CAN comms test
* remove those
* cleanup
* little more
2022-11-30 22:12:28 -08:00
Adeeb Shihadeh
e6f62a62aa
rename puts to avoid conflict with stdio.h ( #1174 )
...
* rename puts to avoid conflict with stdio.h
* better name
2022-11-29 22:55:10 -08:00
Adeeb Shihadeh
80dac4cd94
cleanup CAN definitions ( #1170 )
2022-11-29 15:56:43 -08:00
Adeeb Shihadeh
c075050d5d
Revert "F4: cleanup clock source ( #1160 )"
...
This reverts commit f0f67ccf85 .
2022-11-21 20:31:01 -08:00
Adeeb Shihadeh
3df9099660
Misc cleanup ( #1161 )
...
* unused python stuff
* green led
* docs cleanup
* little more
2022-11-17 11:46:43 -08:00
Robbe Derks
5aa5f855e4
setup UART for SOM debugging ( #1151 )
...
* cleanup external debug serial
* wip: bring up uart7
* more wip
* this does something
* this works
* increase fifo size
* fix misra
* cleanup
* fix misra again
* add SOM debug enum
* reduce SOM buffer on F4
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-11-17 17:59:11 +01:00
Adeeb Shihadeh
f0f67ccf85
F4: cleanup clock source ( #1160 )
...
* F4: cleanup clock source
* little more
* void
2022-11-17 07:49:26 -08:00
Adeeb Shihadeh
966f7e0539
SPI: fixes + fake bulk transfers ( #1150 )
...
* check spi checkusm
* ugh, fix control handler
* fake bulk xfer
* cleanup
* one more
* unused
* fix linter
* some typing
Co-authored-by: Comma Device <device@comma.ai >
2022-11-10 21:34:43 -08:00
Greg Hogan
2f3e2825e5
CAN-FD non-ISO support ( #1082 )
...
CAN FD non-ISO support
2022-10-12 15:28:20 -07:00
Adeeb Shihadeh
e987e6c639
add pandaState.safetyRxChecksInvalid field ( #1083 )
...
* add fault for invalid safety RX checks
* fix test build
* debug
* fix debug
* fix test
* just a bool in health
2022-10-03 16:05:16 -07:00
Igor Biletskyy
b86199244a
merge health.h and can_health.h ( #1075 )
...
init
2022-09-19 16:11:49 -07:00
Igor Biletskyy
a19f12559e
check if set CAN speed is valid ( #1073 )
...
* check
* MISRA
2022-09-16 23:51:55 -07:00
Igor Biletskyy
fd226de0a4
board struct: add has_canfd ( #1072 )
...
* add
* gate this
* and this
* forgot white
2022-09-16 21:56:48 -07:00
Igor Biletskyy
59ede3fe61
CAN health packet: add speed and canfd info ( #1071 )
...
in
2022-09-16 20:39:18 -07:00
Igor Biletskyy
f029c99440
health packet: fix confusing variable names ( #1068 )
...
* fix naming
* different buffer overflows
* naming
2022-09-15 13:08:46 -07:00
Igor Biletskyy
0eef8cf333
CAN: health message for each CAN module ( #1067 )
...
* initial can health pkt
* MISRA: variable scope
* MISRA 10.4
* typo
* add total_fwd_cnt
* check size of can_health_t
* improve
* comment
* that's better
* move
* add health check to tests
* why?
* ...
* revert later
* meh
* Revert "meh"
This reverts commit 0eb84321942a494454c17c242e7309deb8a92341.
* Revert "revert later"
This reverts commit 2d98957a8fd5350d50ebb1d26c9912f984d72043.
* adjust test
2022-09-15 13:04:10 -07:00
Adeeb Shihadeh
13d64d4cc3
USB power mode + bootkick cleanup ( #1051 )
...
* remove tick
* remove more
* delete more
* board tick
* update health
* dos bootkicking
* cleanup
2022-08-31 20:46:07 -07:00
Adeeb Shihadeh
7e843b370d
allow disabling heartbeat while in non-car safety mode ( #1035 )
...
* allow disabling heartbeat while in non-car safety mode
* simple test
* clean that up
* remove that
2022-08-17 22:42:18 -07:00
Robbe Derks
ba8772123f
Simple integrating fan controller ( #1022 )
...
* fast rpm measurement
* fix indentation
* this seems stable
* clip fan integral
* fix misra
* add fan power to health
* board-specific max rpm
* refactor fan enable
* cleanup
* stall detection and reset
Co-authored-by: Comma Device <device@comma.ai >
2022-08-17 20:43:49 -07:00
Robbe Derks
d24971ef8a
Communication refactor ( #997 )
...
* cleanup is_enumerated, rename comms and init spi
* big comms refactor, building now
* misra fixes
* more fixes
* misra try 3
* cleanup
* this belongs in a separate PR
* remove unneccesary file
* revert llspi changes
* this needs packing
* fix pedal usb
Co-authored-by: Comma Device <device@comma.ai >
2022-08-03 13:11:52 +02:00