Closed malsyned closed 6 years ago
This isn't as easy as moving other things into program memory. If this function calls other functions like memcpy_P, I'm not sure how that affects the stack or how the stack writing affects it. I would want to make sure that whatever calls I made open-coded.
The AVR8 tools include a 4-byte array containing "EMTY" that is replicated across the span between the heap start and the stack. The template for it should be stored in program memory but isn't.