project template
Hi
I'm using "Crossworks for ARM" since about a half year and i like it. Now i will create my own project-template for the ATMEL Microcontroller,because it need a lot of time, to added all my files by starting a new project.
Now, my project-template works very well, but through all the files this template is very confused (see attachment)
and i think a mistake has slipped in.
1) clearness
By Creating a project, window: "Select files to add to project"
- it is possible to add more than 2 directory's? ("Links to system files" and "Project files")
- it is possible to add one selectable file, if it selectable than copy X- files to the project directory?
(e.g. File(Text) "UART", if it selected than copy: uart1.c and uart2.c and ...)
e.g.: here i use that for display the files:
<code>
<!-- hier beginnt DBGU-Schnittstelle -->
<folder name="DBGU-Schnittstelle" filter="c;cpp;cxx;cc;h;s;asm;inc">
<file name="$(ProjectDir)/dbgu/dbgu.c" source="$(PackagesDir)/targets/Atmel_AT91SAM7/MyAT91SAM7S/dbgu/dbgu.c"/>
<file name="$(ProjectDir)/dbgu/dbgu.h" source="$(PackagesDir)/targets/Atmel_AT91SAM7/MyAT91SAM7S/dbgu/dbgu.h"/>
</folder>
</code>
2) my mistake
- if i compile my project, then the DEFINE value from _TARGET_PROCESSOR is not correctly.
In your file "AT91SAM7_Startup.s" the define is correct "AT91SAM7S256", but in my "main.c" that define is wrong and the value is "AT91SAM7S32" every time.
I have tried to select a other processor from "Project Explorer" window, but the same problem.
In your files the processor has changed, but not in my files (always "AT91SAM7S32")
set by template:
<code>
<propertygroup name="Target" value="AT91SAM7S256" choose="Yes"/>
</code>
i use this code to test the define in program:
<code>
#if (__TARGET_PROCESSOR != AT91SAM7S256)
#error STOP! wrong PROCESSOR
#endif
</code>
please forgive me for the bad English-style its not my favorite language, i hope you can understand the text.
MfG Stephan
/attachments/token/d0k2nhc64we6yhw
Please sign in to leave a comment.
Comments
0 comments