mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 21:13:42 +08:00
b061d88cfa
FrogPilot handles the GM SystemPowerMode message on both bus 0 and bus 2 (SDGM cars send it on bus 2). C3XL-dev only checked bus 0, so GM cars with 0x1F1 on bus 2 never set ignition_can and the device would not auto power-on. Mirror FrogPilot: check 0x1F1 on bus 2 as well, keep other exceptions bus-0 only.
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 ../scripts/reflash_internal_panda.py.