2023-12-11 03:14:53 +08:00
|
|
|
## Programming
|
2017-11-10 18:27:25 +08:00
|
|
|
|
|
|
|
```
|
2023-04-17 06:08:46 +08:00
|
|
|
./flash.py # flash application
|
2023-07-18 11:17:18 +08:00
|
|
|
./recover.py # flash bootstub
|
2017-11-10 18:27:25 +08:00
|
|
|
```
|
|
|
|
|
2023-12-11 03:14:53 +08:00
|
|
|
## Debugging
|
|
|
|
|
|
|
|
To print out the serial console from the STM32, run `tests/debug_console.py`
|
|
|
|
|
2017-11-15 11:24:59 +08:00
|
|
|
Troubleshooting
|
|
|
|
----
|
|
|
|
|
2023-04-17 06:08:46 +08: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-18 11:17:18 +08:00
|
|
|
|
2022-08-25 10:15:25 +08: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-15 03:02:08 +08:00
|
|
|
|
2023-07-18 11:17:18 +08:00
|
|
|
If your device has an internal panda and none of the above works, try running `../tests/reflash_internal_panda.py`.
|