How to set the entry point of the code worried project.

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

How to set the entry point of the code worried project.

4,227 Views
waZim
Contributor I
hi,

I am kinda new to Code warrior and recently migrated from Radix,

i am trying to compile my project in code warrior for Wii now and i get linker errors that "__start" is not defined or something like that,

i read somewhere that it uses the __start.c file to load some stuff and then give control to the project main(). but i could not find this __start.c file any where in my RVL stdk paths,, even in my whole drive.

and i could not make it work..

Any kind of help would be greatly appriciated.

..
Wasim
Labels (1)
0 Kudos
6 Replies

710 Views
RichTestardi
Senior Contributor II
It probably depends on exactly which version of CW you are using, but for CF V1 and V2, anyway, the entry point is set in the Project Settings -> Linker -> ColdFire Linker panel.  I expect that's where you'll see __start specified.  What version of CW are you using?
 
-- Rich
0 Kudos

710 Views
waZim
Contributor I
Dear Rich,

First of all thank you very much for the response,

i actually dont have any idea of what this version 1 and version 2 are? my code warrior is somewhere like 5.9.0 which means you are using a very old version?

Actually i am using a code warrior IDE and the version details and stuff is attached with this reply for your reference,

The entry point for my project is in the project settings, and i knew that already but the thing is that, i dont know what to change it to, so that i can make the project run, since i dont see the __start.c file which is needed for this "__start" entry point, and i also dont know where to get this "__start.c" file from.

..
Wasim
0 Kudos

710 Views
RichTestardi
Senior Contributor II
Sorry, I misunderstood -- I thought in the subject you were asking how to set the entry point...
 
5.9 is your "IDE version" of Code Warrior.  If you click the "Installed Products", button from the Help About dialog you'll see the "real" version information, which will tell you (and us) two things:
 
  the target processor family ("Microcontrollers", "ColdFire", or something else), and
  the tool version (like "6.2", or "7.1").
 
That's the info people will usually want to know, to know what processor family you are building for and what version of the tools you have.  See attached cw.JPG for an example.
 
How did you create your project?  Did you inherit it from someone or use the Wizard to create it?
 
The __start entry point is not necessarily in a __start.c file...  The default location of the file and the symbol name depends on the target processor you are building for.
 
If you are building for ColdFire V1 (using the "Microcontrollers 6.2" version) or V2 (using the "ColdFire 7.1" version) and you used the Wizard to create your project, there will typically be a file like startcf.c in the Sources subdirectory which defines the _startup assembly language entry point.  This source file is typically "included" in the project pane under "Project Settings -> StartUp Code" -- if you deleted this, then startcf.c will no longer be linked into your project.  See attached proj.JPG for an example.
 
Basically, if you inherited the project, the startup code, file, and project pane entry can be *anywhere* -- the above is just conventions established by the Wizard...  If you are building for ColdFire, you could search your source files for "move.w" or "move.l" to try and find assembly language startup...  But I still don't even know what kind of processor you are building for (and I'm assuming it's probably *not* ColdFire, since you did not post this in the CW for CF forum).
 
-- Rich
 
 
 
However, if you inherited your project from someone else
 
0 Kudos

710 Views
waZim
Contributor I
Rich,

thanks again for the reply, now i understand i am making the project for Wii, i have mentioned this in my first post but it was acutally not very clear since i didn't mentioned the name "Processor" with it

Now i am sending you the installed application dialog.

and i am going to try to make the project again, but the tutorials that i have with me are not saying anything about how to make a project for Wii, and i can make a simple project in Code Warrior for windows only, which runs under win32..

So what should i do for that, since you dont seem like working for Wii, but i hope you still know something about it

..
Wasim
0 Kudos

710 Views
RichTestardi
Senior Contributor II
Ha!  Sorry!  I had no idea such a version of CodeWarrior even existed! :-)  I totally missed that in your first post!
 
I'm afraid you're (way) out of my league here -- if you are creating a project from scratch, I assume you tried the Wizard and that's what is not building...  I wouldn't even know where to start.
 
-- Rich
 
0 Kudos

710 Views
J2MEJediMaster
Specialist I
I didn't think such a version of CodeWarrior existed, either. I know we've had some tools for game development, but I don't know if those were phased out. But your screenshot says CodeWarrior for Wii. I don't know anything about this version of CodeWarrior, so your best bet is to submit a service request to get help. Click here to do that.

---Tom

0 Kudos