Closed szczys closed 6 years ago
Further investigation shows this is the line that is crashing the badge: https://github.com/Hack-a-Day/2018-Supercon-Badge/blob/db80758257f790b8d871018d07bc8c0821c8ebe9/firmware/badge1.X/src/badge.c#L799
Changing optimization from 's' to '1' fixed this reset error.
Right-click project --> Properties --> xc32-gcc --> Option Categories, select "Optimization" --> choose 1
Anyway, this is strange and shouldn't happen with higher optimizations. I'll take a look at this.
Reproduce:
50 print a