Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: @ "ICODE" Issue/ Visual Studio 2005 -> 2010 Upgrade
PostPosted: Thu Feb 02, 2012 5:10 am 
Offline

Joined: Mon Nov 28, 2011 7:58 am
Posts: 5
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 ... U3OTMxMmEw

props file:
https://docs.google.com/open?id=0BzxmXl ... JiZWJiOGZi

Cstartup_SAM7.c file:
https://docs.google.com/open?id=0BzxmXl ... YzOTI5YTNh

Thanks in advance!
Will


Top
 Profile  
 
 Post subject: Re: @ "ICODE" Issue/ Visual Studio 2005 -> 2010 Upgrade
PostPosted: Fri Feb 03, 2012 1:49 am 
Offline

Joined: Mon Nov 28, 2011 7:58 am
Posts: 5
Hi. I have this issue fixed. I posted the same problem on a different forum and eventually worked it out. It did not have anything to do with @ "ICODE".

If anyone else has issues with upgrading a project from Visual Studio 2005 to VS2010, please see the following thread for the fix:
http://social.msdn.microsoft.com/Forums ... a25a75e481

Thanks, and good luck,
Will


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: