malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

fill_chars is not stored in program memory on AVR8 #41

Closed malsyned closed 6 years ago

malsyned commented 6 years ago

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.

malsyned commented 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.