2023-12-10 11:14:53 -08:00
|
|
|
## Programming
|
2017-11-10 05:27:25 -05:00
|
|
|
|
|
|
|
|
```
|
2023-04-16 15:08:46 -07:00
|
|
|
./flash.py # flash application
|
2023-07-17 20:17:18 -07:00
|
|
|
./recover.py # flash bootstub
|
2017-11-10 05:27:25 -05:00
|
|
|
```
|
|
|
|
|
|
2023-12-10 11:14:53 -08:00
|
|
|
## Debugging
|
|
|
|
|
|
|
|
|
|
To print out the serial console from the STM32, run `tests/debug_console.py`
|
|
|
|
|
|
2017-11-14 22:24:59 -05:00
|
|
|
Troubleshooting
|
|
|
|
|
----
|
|
|
|
|
|
2023-04-16 15:08:46 -07:00
|
|
|
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`.
|
2023-07-17 20:17:18 -07:00
|
|
|
|
2022-08-24 19:15:25 -07:00
|
|
|
Otherwise if LED is off and panda can't be seen with `lsusb` command, use [panda paw](https://comma.ai/shop/products/panda-paw) to go into DFU mode.
|
2022-03-14 21:02:08 +02:00
|
|
|
|
2025-05-19 19:24:49 -07:00
|
|
|
If your device has an internal panda and none of the above works, try running `../scripts/reflash_internal_panda.py`.
|