You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the code is working, the screen should flash red. If the screen is blank then the code has crashed.
As the comment says, writing to the static inline bool seems to be the cause of the crash.
I can't reproduce this with the Picosystem SDK or with just the Pico SDK.
The only difference between MinSizeRel and Release is that MinSizeRel sets -Os and Release sets -O3.
Note that the problem class is only instantiated if you press a button, but the crash happens anyway. This makes me think it is something to do with the crt0.
The text was updated successfully, but these errors were encountered:
The following code crashes only on Picosystem and only when built with MinSizeRel:
(edited to remove
inline
declarations and only instantiate the class if a button is pressed.)To reproduce:
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=../../32blit-sdk/pico.toolchain ..
If the code is working, the screen should flash red. If the screen is blank then the code has crashed.
As the comment says, writing to the
static inline bool
seems to be the cause of the crash.I can't reproduce this with the Picosystem SDK or with just the Pico SDK.
The only difference between MinSizeRel and Release is that MinSizeRel sets
-Os
and Release sets-O3
.Note that the problem class is only instantiated if you press a button, but the crash happens anyway. This makes me think it is something to do with the crt0.
The text was updated successfully, but these errors were encountered: