Problems Using .incbin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems Using .incbin

2,213 Views
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.
Labels (1)
0 Kudos
6 Replies

592 Views
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 Kudos

592 Views
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 Kudos

592 Views
Ioline
Contributor I
Correction, Ignore By Make is not checked...
0 Kudos

592 Views
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 Kudos

592 Views
Ioline
Contributor I
Yup, there is a dot next to it.  I don't understand it should work.
0 Kudos

592 Views
Ioline
Contributor I
Update:  Still not working...
0 Kudos