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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,414 次查看
j___
Contributor IV

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.

 

Regards,

Jim

Original Attachment has been moved to: nxp_post_2016-02-16.txt.zip

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,082 次查看
j___
Contributor IV

Solved.

There were 2 .cmd files in the folder structure. Even though the project pane in CW8.3 showed that the command file in a sub-folder was assigned to the project, it found the command file in the root folder. I deleted the other command file.

Jim

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,082 次查看
j___
Contributor IV

I added one more example to the text file.

Regards,

Jim

0 项奖励
回复
1,083 次查看
j___
Contributor IV

Solved.

There were 2 .cmd files in the folder structure. Even though the project pane in CW8.3 showed that the command file in a sub-folder was assigned to the project, it found the command file in the root folder. I deleted the other command file.

Jim

0 项奖励
回复