Hi all,
Here is my issue:
I have a project using Atmel AT91SAM7, with an IAR workbench compiler, using Visual Studio 2005. I recently upgraded my project to Visual Studio 2010, and my project stopped building. My error message is the following:
Code:
1>C:\temp2\Devices\Device\BuildTools\iccarm.targets(45,5): error MSB3721: The command ""C:\Program Files\IAR Systems\Embedded Workbench 4.0\ARM\bin\iccarm" --silent -z9 --debug --cpu_mode thumb --endian little --cpu ARM7TDMI --stack_align 4 --interwork -e --fpu None -I "C:\Program Files\IAR Systems\Embedded Workbench 4.0\ARM\inc" Cstartup_SAM7.c-o Release\Cstartup_SAM7.r79" exited with code 2.
When I look at the Cstartup_SAM7.c file, I see in the VS2010 IDE, the "@" symbol is underlined in red with the error message "unrecognized token" referring to the line:
Code:
void AT91F_LowLevelInit(void) @ "ICODE"
When I open the project in VS 2005, there are no red lines, or warnings and it builds fine. I checked the project configuration properties (ie: IAR ARM ANSI C/C++ compiler, etc...) for the project, and they are almost identical (between VS 2010 and 2005).
I am thinking the
@ "ICODE" error is the main stumbling block to my project not building. The
@ "ICODE" seems to be a built-in ARM directive that the compiler should know about. Does anyone have any suggestions on what to try? I am including links to files that may be related to this issue. (the filename attach feature of this forum is not working for me).
target file:
https://docs.google.com/open?id=0BzxmXl ... U3OTMxMmEwprops file:
https://docs.google.com/open?id=0BzxmXl ... JiZWJiOGZiCstartup_SAM7.c file:
https://docs.google.com/open?id=0BzxmXl ... YzOTI5YTNhThanks in advance!
Will