georgik / esp32-spooky-maze-game

Rust Bare Metal implementation of maze game for ESP32
MIT License
32 stars 7 forks source link

Experiment: Disable loop optimization for xtensa #32

Closed MabezDev closed 1 year ago

georgik commented 1 year ago

Thank you @MabezDev . As we were discussing the problem is caused by allocating too big chunk of data for Framebuffer for ESP32 on stack which causes overwrite of ROM functions which are in the middle of ESP32 memory. This issue is not present in ESP32-S2 and later version of chips since they do not have this type of ROM in the middle of address space.

The suggestion was to move framebuffer to static alloc to avoid allocation on the stack.

Closing PR.