How to build a project in Atmel Studio 7?

Go To Last Post
106 posts / 0 new

Pages

Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey people,

I am totally new to the AVR toolchain. I have a bunch of .c and . h files for an RFID reader that uses Atmega64. I have installed WinAVR and Atmel Studio 7. So this is what I did:

Created a new project in the documents folder ----> added the .c and .h files that were given (like why?) ----> build ----> build failed. Am I doing something wrong here?

 

SOS

 

 

This topic has a solution.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

Last Edited: Thu. Jan 4, 2018 - 03:30 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Until you show us the build output how can anyone here guess what you have done wrong. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

It's just these two lines:

 

------ Build started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do you add project files to the project? Are there any configuration options?

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

------ Build started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a screenshot

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:

Azim Malik. A.
University at Buffalo

It would be a lot easier if you just show this to your teacher:  then they could see exactly what you're actually doing, see exactly how you've got everything configured, see exactly what is happening - and show you how to fix it.

 

Doing this stuff remotely is hard at the best of times - you aren't supplying enough information to make it possible.

 

EDIT

 

typo

Last Edited: Fri. Aug 25, 2017 - 06:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:

------ Build started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

that's saying "nothing to do because it's already been built successfully". The build system will only attempt to build after you make changes. It "watches" the dates of the file edits and only builds when the edits are newer than the already built output. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

clawson wrote:
that's saying "nothing to do because it's already been built successfully".

Then it's saying it very badly!

 

 

0 succeeded or up-to-date

I would certainly take that to mean that none succeeded and none were up-to-date!

 

 1 failed

and that 1 has been tried but failed.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't see the "added the .c and .h files" in the solution explorer window.

  • Right click on the solution (EMDB409Reader) and do Add/Existing...

or (if you have actually copied the files into that folder):

  • Click on the "Show All Files Icon"
  • Right Click on the included files that show up under the solution and do "Include in Project"

 

David (aka frog_jr)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, ignore me, too much beer! surprise

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I tried copying it they don't show up in the solution window.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

LOL. Come on! Someone has to help this brother in trouble.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:
Come on! Someone...
Did you see Post#10?

David (aka frog_jr)

Last Edited: Fri. Aug 25, 2017 - 06:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did. But I dont see either Show All Files Icon or Include in Project. Refresh:- ATMEL Studio 7.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Right click the EMDB409Reader (in bold) in the Solution Explorer. Select "Add" from the popup menu. Select a .c file that you want to be part of the project. Do not do this with .h files as they will be included using #include statements in the various files.

 

YOU may need to add appropriate #include statements in your main.c file.

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

Last Edited: Fri. Aug 25, 2017 - 07:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Jim,

I added the .c and .h files all by right-clicking on the EMDB409Reader ---> add ---> exisiting file. 

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do they show in the Solution Explorer window?

 

The Show All Files icon:

David (aka frog_jr)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:
Come on! Someone has to help this brother in trouble.

See #7 - that is the person best placed - and paid - to do this!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jim,

There are multiple c files. does that mean I should add all of them or only the main.c?

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Add the files you need for your project; both .h and .c

Do not include files not needed.

If you click on the "Show all Files" a second time, only the files that ARE a part of your project will be displayed.

 

Edit: typo

David (aka frog_jr)

Last Edited: Fri. Aug 25, 2017 - 07:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That's my alma matter and no one has used ATMEL 7 - it was mostly Keil uVision

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I added the .c and .h files to the project and the files that are part of the project were displayed, i.e., .c and .h files................even then its the same issue. Should dump this and go to WinAVR. In that I had avr/io.h header file error.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:
o one has used ATMEL 7 - it was mostly Keil uVision

So why do you have difficulty understanding that you have to add files to the Project so that they will be built?

 

That is exactly the same model that uVision - and just about every other IDE - uses!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have added the files. I m not aware if there is any other configuration setting that I am missing here. Sometimes the antivirus can mess up the build operation if it identifies the software as malware or so (it seems) - there was a post on here.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it not building because no changes have been made to the code yet??

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are all of the files of interest showing in the Solution Explorer window?

  1. Do a Build / Clean Solution.
  2. Do a Build / Build Solution.
  3. Post ALL of the output that appears in the Output tab.

David (aka frog_jr)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

show this to your teacher:

Maybe he IS the teacher?? surprise

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Zip up your project and PM it to me and I will take a look and see if I can make heads or tails on what your problem is.

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just a guess but I think this might be something to do with Low Frequency RFID reader with Remote Data Retrieval for Bio-compatible Transponders​. 

 

David

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am fully aware of the link

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No. I am an intern.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Output:

 

 

------ Clean started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Clean: 1 succeeded, 0 failed, 0 skipped ==========

 

------ Build started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

 

 

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What people want to see:

 

  • a screenshot to show the other files have been added to the project - in the yellow area

  • the rest of the build output like
------ Build started: Project: Sonic001, Configuration: Debug AVR ------
Build started.
Project "Sonic001.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\david\OneDrive\Documents\1854Concepts\Misc\Sonic\Sonic001\Sonic001\Sonic001.cproj" (target "Build" depends on it):
 Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
 Task "RunCompilerTask"
  Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
  C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync 
  make: Nothing to be done for 'all'.
 Done executing task "RunCompilerTask".
 Using "RunOutputFileVerifyTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
 Task "RunOutputFileVerifyTask"
    Program Memory Usage  : 1708 bytes   20.8 % Full
    Data Memory Usage   : 6 bytes   1.2 % Full
 Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "Sonic001.cproj".
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
Target "Build" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets" from project "C:\Users\david\OneDrive\Documents\1854Concepts\Misc\Sonic\Sonic001\Sonic001\Sonic001.cproj" (entry point):
Done building target "Build" in project "Sonic001.cproj".
Done building project "Sonic001.cproj".

Build succeeded.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

 

As you don't seem to be generating any output try rebuild.

 

 

David

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 Build started: Project: EMDB409Reader, Configuration: Debug AVR ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the properties for your project what are the c compiler options for the Toolchain? (right click on bold name in your screenshot above). 

 

David 

 

P.S. "Looks like someone is a pro at stalking. Haha." - nope I'm very amateur.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what are the c compiler options for the Toolchain

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:
 I am an intern.

So, surely, you must have a supervisor or mentor or suchlike.

 

Why are you not getting them to help you?

 

Again, they could see exactly what you're actually doing, see exactly how you've got everything configured, see exactly what is happening - and show you how to fix it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1) Since this does not seem to be a very complicated project, and probably not is holding any secrets (yet?), then why not simply ZIP up the whole project file tree and attach it to a post here. Then jgmdesign (and others) get to try it out. By that it might be determined if the problem lies within the project or in other places (e.g. your Studio installation).

 

2) The build output seems totally empty. After a "clean" it does not even show compilation of your main file. That is strange. Have you tried to set up another project, just to check this. Just create a new project for a ATmega64 following the New Project wizard. Then build. Show us the complete build output of that. (This, again, can help us establish if there is a problem with your original project setup, or with your Studio installation.)

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If that was the case, I would have asked them in the first place.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

Last Edited: Thu. Jan 4, 2018 - 03:36 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok. I will post it today.

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just posted an example that was built

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That really tells very little

Did you see my PM? There was no zip file attached

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

azimmali wrote:
I just posted an example that was built

OK, so it does not seem that the Studio installation is broken in general. So, for the project this whole thread started out with, it is likely that there is something wrong in that specific project.

 

What we need now is for you to show us the project that is failing the build. ZIP up the whole project file tree and attach the ZIP file to a post here.

 

If you, e.g. for reasons of non-disclosure, can not do that then I believe your only option is to try to set up another project with the same files as the failing project. Take it in small steps., i.e. set up the empty project, do a build, add some files, do a build etc until you have all necessary files added.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have attached the Atmel Project and the program files of the project as zip files.

Attachment(s): 

Amateur programmer.
Believe when I tell you that my struggle on here is real.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I doubt those are your ATMEL STUDIO project.

 

The request is for you to ZIP the PROJECT up and post it here unless there is a privacy concern.

 

IF there is a privace concern, my offer to PM it to me is still there, but it must be the Studio Project and in ZIP form.

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

Pages