panda/board
Shane Smiskol 57e280ad29
safety: add body safety tests (#1716)
* partial body safety tests

* cmt

* test this flasher msg

* move

* address check on can flashing msg

* no other test tests this, valid when we rx one

* this is more reflective on the current behavior

* better test

* clean up

* stash

* clean up

* revert

* Update board/safety/safety_body.h

* fix misra
2023-11-10 19:02:32 -08:00
..
boards SOM boot recovery (#1712) 2023-11-09 18:01:46 -08:00
debug In-circuit debugging (#1560) 2023-08-05 16:04:09 -07:00
drivers SOM boot recovery (#1712) 2023-11-09 18:01:46 -08:00
jungle skip flash if up to date (#1686) 2023-10-05 13:13:40 -07:00
obj Revert commits that broke USB for openpilot. 2017-07-12 11:27:16 -07:00
pedal unify CAN/FDCAN odjects naming (#1596) 2023-08-21 16:09:31 -07:00
safety safety: add body safety tests (#1716) 2023-11-10 19:02:32 -08:00
stm32fx H7: fix GMLAN bitbang timer (#1542) 2023-10-03 13:14:14 -07:00
stm32h7 H7: fix GMLAN bitbang timer (#1542) 2023-10-03 13:14:14 -07:00
README.md instructions for flashing internal panda (#1521) 2023-07-17 20:17:18 -07:00
SConscript cleanup bus count constant 2023-08-04 10:47:03 -07:00
__init__.py Revert commits that broke USB for openpilot. 2017-07-12 11:27:16 -07:00
bootstub.c panda jungle (#1547) 2023-08-03 23:55:13 -07:00
bootstub_declarations.h rename puts to avoid conflict with stdio.h (#1174) 2022-11-29 22:55:10 -08:00
can_comms.h refresh can tx slots available after write (#1432) 2023-05-20 22:00:13 -07:00
can_definitions.h cleanup bus count constant 2023-08-04 10:47:03 -07:00
comms_definitions.h No more magic for the can chunks (#1191) 2023-01-13 10:59:58 -08:00
config.h panda jungle (#1547) 2023-08-03 23:55:13 -07:00
crc.h SPI: send bootstub status in version request (#1492) 2023-07-03 15:23:12 -07:00
critical.h Revert "Revert "Register readback on most modules. Still need to convert the other ones (#396)"" 2019-12-05 14:19:29 -08:00
dfu_util_f4.sh DFU flasher: permissions and address 2022-08-25 10:24:25 -07:00
dfu_util_h7.sh flashing: unify recover.sh (#1043) 2022-08-24 19:15:25 -07:00
early_init.h finish esp/gps removal (#1559) 2023-08-06 12:29:54 -07:00
fake_stm.h Remove flash logging (#1674) 2023-09-30 12:49:46 -07:00
faults.h Remove flash logging (#1674) 2023-09-30 12:49:46 -07:00
flash.py improve flash and recover scripts (#1349) 2023-04-16 15:08:46 -07:00
flasher.h Remove flash logging (#1674) 2023-09-30 12:49:46 -07:00
health.h SOM boot recovery (#1712) 2023-11-09 18:01:46 -08:00
libc.h memcpy with 4 and 16 bytes copy support (#763) 2021-11-04 16:06:51 -07:00
main.c refactor bootkick (#1690) 2023-11-08 22:54:55 -08:00
main_comms.h SOM boot recovery (#1712) 2023-11-09 18:01:46 -08:00
main_declarations.h Bring back green led mode + fix small python lib bug (#1206) 2023-01-10 15:09:51 -08:00
power_saving.h finish esp/gps removal (#1559) 2023-08-06 12:29:54 -07:00
provision.h add comms handler to get MCU UID (#1212) 2023-01-15 20:13:26 -08:00
recover.py improve flash and recover scripts (#1349) 2023-04-16 15:08:46 -07:00
safety.h safety: use CLAMP for update_counter (#1706) 2023-11-06 22:08:24 -08:00
safety_declarations.h safety: sample_t is not fully reset on safety mode init (#1376) 2023-10-03 03:15:16 -07:00
utils.h add CLAMP macro (#1356) 2023-04-20 14:34:11 -07:00

README.md

Programming

Panda

./flash.py        # flash application
./recover.py      # flash bootstub

Troubleshooting

If your panda will not flash and green LED is on, use recover.py. If panda is blinking fast with green LED, use flash.py.

Otherwise if LED is off and panda can't be seen with lsusb command, use panda paw to go into DFU mode.

If your device has an internal panda and none of the above works, try running ../tests/reflash_internal_panda.py.