panda
panda copied to clipboard
Compiling with newer versions of GCC results in broken firmware
The application firmware image compiled with arm-none-eabi-gcc
version 10.3 instead of 9.3.1 (default in ubuntu 20.04) does not boot on white pandas (have not tested others). Bootstub seems fine.
Same issue as https://github.com/commaai/panda/pull/1204 ?
I am seeing the same, but the buffer size is already set to the smaller one.
The application firmware image compiled with
arm-none-eabi-gcc
version 10.3 instead of 9.3.1 (default in ubuntu 20.04) does not boot on white pandas (have not tested others). Bootstub seems fine.
Tried with grey panda and had similar or same problem. Just seems to be completly dead.
Looks like after https://github.com/commaai/panda/commit/c66b98b2a67441faa4cfcd36c3c9d9f90474cd08 it works again. Seems like touching these UART FIFOs has the tendency to break/fix the code on newer compilers. See https://github.com/commaai/panda/pull/1204
Tested with arm-none-eabi-gcc (Arch Repository) 13.2.0
Still want to look into the root cause at some point to prevent this issue from happening again, so will keep this open for now.
Once we investigate and fix properly, we’ll also add a latest GCC build to CI.
@pd0wm reported that #1559 fixed the issue. Should we close it or still want to investigate the cause?
No, we definitely still need to look into this.