panda/board
Adeeb Shihadeh cccceabf8a exit flashing scripts with error if no pandas 2024-03-21 13:04:45 -07:00
..
boards remove rtc (#1897) 2024-03-11 16:08:43 -07:00
debug In-circuit debugging (#1560) 2023-08-05 16:04:09 -07:00
drivers remove rtc (#1897) 2024-03-11 16:08:43 -07:00
jungle exit flashing scripts with error if no pandas 2024-03-21 13:04:45 -07:00
obj Revert commits that broke USB for openpilot. 2017-07-12 11:27:16 -07:00
safety remove comma pedal (#1902) 2024-03-17 22:22:46 -07:00
stm32f4 Rename stm32fx/ -> stm32f4/ (#1898) 2024-03-11 16:18:56 -07:00
stm32h7 remove rtc (#1897) 2024-03-11 16:08:43 -07:00
README.md Docs update (#1769) 2023-12-10 11:14:53 -08:00
SConscript remove pedal fw (#1872) 2024-02-16 22:58:01 -08:00
__init__.py Revert commits that broke USB for openpilot. 2017-07-12 11:27:16 -07:00
bootstub.c (almost) enable cppcheck unusedFunction (#1875) 2024-02-17 14:16:15 -08:00
bootstub_declarations.h rename puts to avoid conflict with stdio.h (#1174) 2022-11-29 22:55:10 -08:00
can_comms.h enable misra-constParameterPointer (#1826) 2024-01-20 21:50:42 -08:00
can_definitions.h remove pedal fw (#1872) 2024-02-16 22:58:01 -08:00
comms_definitions.h enable misra-constParameterPointer (#1826) 2024-01-20 21:50:42 -08:00
config.h Rename stm32fx/ -> stm32f4/ (#1898) 2024-03-11 16:18:56 -07:00
crc.h enable misra-constParameterPointer (#1826) 2024-01-20 21:50:42 -08: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 enable misra-c2012-12.2 (#1824) 2024-01-20 16:19:34 -08:00
flash.py exit flashing scripts with error if no pandas 2024-03-21 13:04:45 -07:00
flasher.h (almost) enable cppcheck unusedFunction (#1875) 2024-02-17 14:16:15 -08:00
health.h update cppcheck (#1859) 2024-02-10 14:50:36 -08:00
libc.h enable misra-c2012-21.2 (#1819) 2024-01-18 14:29:01 -08:00
main.c remove rtc (#1897) 2024-03-11 16:08:43 -07:00
main_comms.h remove rtc (#1897) 2024-03-11 16:08:43 -07: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 remove HW GMLAN support (#1848) 2024-02-03 23:18:33 -08:00
provision.h (almost) enable cppcheck unusedFunction (#1875) 2024-02-17 14:16:15 -08:00
recover.py exit flashing scripts with error if no pandas 2024-03-21 13:04:45 -07:00
safety.h remove comma pedal (#1902) 2024-03-17 22:22:46 -07:00
safety_declarations.h remove comma pedal (#1902) 2024-03-17 22:22:46 -07:00
utils.h enable misra-c2012-10.5 (#1825) 2024-01-20 17:05:12 -08:00

README.md

Programming

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

Debugging

To print out the serial console from the STM32, run tests/debug_console.py

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.