Hack-a-Day / 2018-Supercon-Badge

Retrocomputing badge for the 2018 Hackaday Superconference
https://hackaday.io/project/161859-2018-hackaday-superconference-badge
MIT License
27 stars 8 forks source link

Typing lines in Basic interpreter resets badge #1

Closed szczys closed 6 years ago

szczys commented 6 years ago

Reproduce:

szczys commented 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

szczys commented 6 years ago

Changing optimization from 's' to '1' fixed this reset error.

Right-click project --> Properties --> xc32-gcc --> Option Categories, select "Optimization" --> choose 1

jaromir-sukuba commented 6 years ago

Anyway, this is strange and shouldn't happen with higher optimizations. I'll take a look at this.