Got back to work this morning. Creating a separate .c file with the initialization values do eliminate the error -- so the proposed solution is correct. I still want to know specifically why the warning is thrown to begin with.
As feared, it does break the abstraction I was trying to create.
What'd be nice if MPLABX had a way to manage const string resources (separate from the actual code) and push them into program memory at the right place during build time. That doesn't exist, right?
Edit: BTW, thanks for your help, guys. For what it's worth: .asm is far more powerful for the things that I do. This excursion into embedded C is very frustrating for me. As a reminder, I've been coding C apps since 1994, and .asm since 1979. I am not a novice.
As feared, it does break the abstraction I was trying to create.
What'd be nice if MPLABX had a way to manage const string resources (separate from the actual code) and push them into program memory at the right place during build time. That doesn't exist, right?
Edit: BTW, thanks for your help, guys. For what it's worth: .asm is far more powerful for the things that I do. This excursion into embedded C is very frustrating for me. As a reminder, I've been coding C apps since 1994, and .asm since 1979. I am not a novice.
