commaai/panda

Compiling with newer versions of GCC results in broken firmware

robbederks opened this issue · 8 comments

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.

pd0wm commented

Same issue as #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.

pd0wm commented

Looks like after c66b98b it works again. Seems like touching these UART FIFOs has the tendency to break/fix the code on newer compilers. See #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.