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
When using certain c operations the firmware behaves weird and eventually hard resets.
I had an issue with comparing int8 value to a negative value. The problem was solved by removing peephole rules file from makefile. The operation produces jrsgt and jrslt instructions that are currently not used anywhere else, which could be a clue.
Additionally, I had an issue with "function not doing what it supposed to" when using bool from stdbool.h for a simple flag variable. Replacing the type with uint8_t solved the issue. I am not sure if it was related to peephole rules, but I am suspecting it could. I might try in the future to reproduce it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Peephole optimizer potentially causes issues.
This is initial report.
When using certain c operations the firmware behaves weird and eventually hard resets.
jrsgt
andjrslt
instructions that are currently not used anywhere else, which could be a clue.Additionally, I had an issue with "function not doing what it supposed to" when using
bool
fromstdbool.h
for a simple flag variable. Replacing the type with uint8_t solved the issue. I am not sure if it was related to peephole rules, but I am suspecting it could. I might try in the future to reproduce it.Beta Was this translation helpful? Give feedback.
All reactions