Problems Using .incbin

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

Problems Using .incbin

3,608 次查看
Ioline
Contributor I
I am having troubles loading a binary image with .incbin.  CodeWarrior claims that it either does not exist or cannot be opened.  I have included the file in the project manager, so I figure that it can be loaded.  Am I missing something?  Thanks.
标签 (1)
0 项奖励
回复
6 回复数

1,987 次查看
J2MEJediMaster
Specialist I
You probably need to make the project recognize the file's extension. Proceed as follows:

1) Go to the Project's Settings panel (press ALT-F7)
2) Click on the File Mappings selection at the left. The File Mappings panel appears.
3) Click on the Choose button, and navigate to your file. Click Open.
4) Information on the file should appear in the controls. For the Compiler setting you probably want to pick None.
5) You may want to experiment with the Flags menu. If it's the be incorporated into the final module, you'll want to leave Ignored by Make unchecked.

HTH.

---Tom
0 项奖励
回复

1,987 次查看
Ioline
Contributor I
The settings are:
 
File Type:  BINA
Extension: .bin
Compliler: None
Edit Language: None
Flags: Ignore By Make
 
I have the binary file included in the Project window, and it still gives the same warning.
0 项奖励
回复

1,987 次查看
Ioline
Contributor I
Correction, Ignore By Make is not checked...
0 项奖励
回复

1,987 次查看
J2MEJediMaster
Specialist I
If it's still not working, have you made sure that the file is part of your target? That is, the file's name in the Project window should have a black dot adjacent to it, the dot appearing in the column with the small target.

---Tom

0 项奖励
回复

1,987 次查看
Ioline
Contributor I
Yup, there is a dot next to it.  I don't understand it should work.
0 项奖励
回复

1,987 次查看
Ioline
Contributor I
Update:  Still not working...
0 项奖励
回复