AnsweredAssumed Answered

Link Error: referenced but has not been written. Put const data into program memory. 56F8345, CW 8.3

Question asked by j... on Feb 16, 2016

I have found a couple of old posts regarding this same error. However, I was not able to figure out a solution from those old posts.


I have const data that is using the most of the 8KB "data memory". I need to link a large array of constants to be located in the program space.  I am getting the error: "... referenced but has not been written. Check your linker command file"


I have tried 2 approaches to locating this data, 1) using the __pmem keyword, 2) using sections. They both produced the same error.


Please see the attached text file for my 2 approach examples.


A solution to this would surely be appreciated.




Original Attachment has been moved to: