Discussion Forum

multiple startup files in one project - how to choose the right one

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Joerg Hansen
Posted
24-Feb-2009 15:26 GMT
Toolset
ARM
New! multiple startup files in one project - how to choose the right one

Hello,

I have two startup files at my project because I like to produce code for two different MCs. How can I choose the right one?
Within the C-code I can use directives, but I don't know how it works within startup files.

Thanks for your help!

Joerg

Read-Only
Author
Andy Neil
Posted
24-Feb-2009 15:32 GMT
Toolset
ARM
New! RE: multiple startup files in one project - how to choose the right one

Create two separate Targets within your uVision Project - each one uses exactly one of the startup files...

Read-Only
Author
Joerg Hansen
Posted
24-Feb-2009 15:57 GMT
Toolset
ARM
New! RE: multiple startup files in one project - how to choose the right one

I have two targets. But I can not specify the files for the target. The files are in each target the same. If I remove one file from one target, it is also removed at the other target.

Read-Only
Author
Tamir Michael
Posted
24-Feb-2009 16:00 GMT
Toolset
ARM
New! RE: multiple startup files in one project - how to choose the right one

give them different names, then.

Read-Only
Author
Joerg Hansen
Posted
24-Feb-2009 16:06 GMT
Toolset
ARM
New! RE: multiple startup files in one project - how to choose the right one

The startup files have different names. Whatever I do, the files are in each project the same.

Read-Only
Author
Joerg Hansen
Posted
24-Feb-2009 16:53 GMT
Toolset
ARM
New! RE: multiple startup files in one project - how to choose the right one

I solved the problem. The check boxes "Include in Target Build" and "Always Build" have to be unchecked for the startup file you do not want to use for your target. Then choose the other target and do it the same way.

Thanks for your help!

Read-Only
Author
Andy Neil
Posted
25-Feb-2009 00:25 GMT
Toolset
None
New! RE: check boxes "Include in Target Build" and "Always Build"

Yes, that's the way to do it!

See also: http://www.keil.com/forum/docs/thread7095.asp

And: http://www.keil.com/forum/docs/thread4651.asp

:-)

Read-Only
Author
John Linq
Posted
25-Feb-2009 02:25 GMT
Toolset
None
New! RE: check boxes "Include in Target Build" and "Always Build"

Hi,

It is great that I just learned one new thing from this topic.

But I have found another question. The check boxes of "Include in Target Build" and "Always Build" have three statuses: unchecked, checked, gray checked. What is the difference between checked and gray checked?

I can not find the answer from the IDE helper.

Read-Only
Author
Andy Neil
Posted
25-Feb-2009 07:33 GMT
Toolset
None
New! RE: check boxes have three statuses

See the 5th post in this thread: http://www.keil.com/forum/docs/thread14100.asp

Read-Only
Author
John Linq
Posted
25-Feb-2009 09:08 GMT
Toolset
None
New! RE: check boxes have three statuses

Hi,

Thank you.

> Checked with a "grey" check: The setting is inherited
> from the Group or Project options;

Next Thread | Thread List | Previous Thread Start a Thread | Settings