How to build a project in Atmel Studio 7?

Go To Last Post
106 posts / 0 new

Pages

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

Well, in spite of my Anti virus kicking up a fuss about tar and rar files I opened the first one and made a project out of the files and here are some screenshots of what I get:

 

 

YOu will notice all the files are in the solution on the right....in your screenshot above in post #6 this is not the case.

 

It fails to build, but now we know why:

 

YOu will need to look at those files to see why.

 

I have PM'ed you the project to put into your Atmel Studio folder on your PC.

 

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

Lots of poisoned ISR names.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I think the .h and .c files are using old signal definitions from an old version of AVR-GCC.  The OP will need to go here:

http://www.nongnu.org/avr-libc/u...

 

TO fix these

 

JIm

 

EDIT:  A couple of updates

1) The OP has run into the same problem with the project I sent him that he is posting in this thread.  THis leads me to believe that he has changed the settings of AS7, and given the OP's seemingly very 'noob'-ish-ness I would suggest simply uninstalling AS& and re-installing it rather than trying to figure out what has happened, and then advise how to fix it.  THe thread is getting long in tooth, and nothing substantial has happened to this point so rather than 50+ more posts, why not start with a clean slate.

 

2) As I posted I could create a project with the files, and I was greeted with several warnings and errors I posted above.  I did some looking and in less than 20 minutes corrected teh errors and warnings and now have a successful build:

 

 

Since the output screen I posted above pretty much tells what the problems are for the OP's sake on learning I won't give up the answers.  But I will leave one hint with regards to the warning:

 

 

 

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

Last Edited: Mon. Aug 28, 2017 - 03:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

More hints. My 6YO Modbus project has this added

 

 * Modifications February 2011 John Samperi Ampertronics Pty Ltd
 * Support for Mega164P and family.
 * Removed old SIGNAL references and replaced for the current
 * ISR(vector) and added comment on some necessary changes in
 * some locations for different processor types or USART.
 *

 also things like

//SIGNAL( SIG_OUTPUT_COMPARE1A )

ISR (TIMER1_COMPA_vect)
{
    ( void )pxMBPortCBTimerExpired(  );
}

and

 

// Use correct ISR name for the processor used. Defined in interrupt.h

#if defined (__AVR_ATmega8515__) || defined (__AVR_ATmega163__) 
ISR (UART_UDRE_vect)

#else

ISR (USART0_UDRE_vect)

#endif

{
    pxMBFrameCBTransmitterEmpty(  );
}


#if defined (__AVR_ATmega8515__) || defined (__AVR_ATmega163__) 

ISR (UART_RX_vect)

#elif defined (__AVR_ATmega162__)

ISR (USART0_RXC_vect)

#else

ISR (USART0_RX_vect)

#endif

{
    pxMBFrameCBByteReceived(  );
}


#ifdef RTS_ENABLE

	#if defined (__AVR_ATmega8515__) || defined (__AVR_ATmega163__) 

	ISR (UART_TX_vect )

	#elif defined (__AVR_ATmega162__)

	ISR (USART0_TXC_vect)

	#else

	ISR (USART0_TX_vect)

	#endif

{
    RTS_LOW;
}
#endif

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Awww C'mon John,

 

You are taking the fun outta this cheeky

 

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

Well, the mystery still is why the OP is getting a completely empty build output after a clean+build.

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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]

Last Edited: Mon. Aug 28, 2017 - 07:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So are you suggesting I uninstall the software and reinstall it? crying

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

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

And what on earth is OP?

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

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

OP is either "original post" meaning post #1 in a thread or "original poster" meaning the person who started the thread and made post #1

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

azimmali wrote:
So are you suggesting I uninstall the software and reinstall it? 

 

No. Since you managed to set up an "empty" project and make that do a build, I suggest you do another attempt on setting up a project for the EMD8409.

 

Do it in small steps, testing to build after each step: Set up project. Build. Add a few files. Build. Add a few more. Build. At each step, make sure that your build output does not go completely empty as in your current project.

 

Never mind you will get build errors along the way. In fact, that is progress as compared to your current project. We'll deal with those build errors eventually - e.g. the ones js mentioned above.

 

(And if it comes down to needing to reinstall the software that's not such a big deal. It takes at most a few tenths of minutes, unless something goes really wrong.)

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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

Where can I get the new header files?

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

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

So you are suggesting me to run a say only main.c and the headers associated with it??

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

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

What new header files?

 

If you're talking about the obsolete avr/signal.h then the file to use instead is, as the error message says, avr/interrupt.h . And you already have the file avr/interrupt.h, and don't need to get it again. Isn't that clear from the same screen-dump??! Hint: Look at the ource line above the one that generated the error and that you commented out. What file is included there? Did that line generate an error?

 

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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 the OP read ANYTHING in my recent posts I said I was able to create the project with the files he posted AND I got it to build, but fail with errors and warnings which I posted screen shots of.  I also said that it took 20 minutes to fix the problems and both I and John left s couple of hints as to that to look for....and a link to a website as well.

 

azimmali wrote:
So are you suggesting I uninstall the software and reinstall it? crying

I did suggest that as I have no idea(and neither does anyone else at this point) what you have done to any of the settings in your installation of AS7.  My installation is whatever the installer package does by default, so unless you tweaked your installation the project I PM'ed you should have given you the same screens I posted earlier in this thread.

 

azimmali wrote:
Where can I get the new header files?

If you follow what has been explained you do not need to add ANYTHING

 

Post #52 is what I got after creating a project with the files you PM'ed me and the result after I added them to the project and hit BUILD.  You will see a dozen errors and three warnings.  I clicked on those warnings and they took me to your files that had issues. 

 

Using the link I provided in post #54 I was able to correct ALL of the errors in their corresponding locations and then built the project and received no errors and I showed in my first screenshot also in post #54

 

Also in post #54 I pointed to where the warnings were coming from and left you with a hint on where you need to fix the issue.....in the second screenshot in post #54.

 

 

If you are still having the same problems after all of this then either ZIP up your problem project like we asked you to do in the first place, OR uninstall AS7 and start fresh.

 

I don't know what more anyone can do for you.  I could send you the project I have set up and compiles/builds without errors, but then that falls into Cliffs question about spoons.

 

Jim

 

EDIT:

JOHAN WROTE:

Hint: Look at the ource line above the one that generated the error and that you commented out.

Are you referring to the screenshot of what I commented out, or the OP?

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

Last Edited: Mon. Aug 28, 2017 - 05:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah, so I commented out avr/signal.h and tried building - Its still the same two line output. Ughhhh!!! .:((

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

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

Jim,

The thing doesn't show me any errors. And I did not change any installation settings - by default - i installed all the three ARM architectures that were offered.

 

Azim

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

Last Edited: Mon. Aug 28, 2017 - 05:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there anything else, that I should be concerned of building the project other than adding the files related to it?

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

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

Create a new project, select GCC C executable project, select ATTiny45 and change code to: 

 


#include <avr/io.h>
#include <stdio.h>


int main(void)
{
 printf("hello world");
    /* Replace with your application code */
    while (1) 
    {
    }
}

Build and do you see something like:

 

------ Build started: Project: GccApplication2, Configuration: Debug AVR ------
Build started.
Project "GccApplication2.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\GccApplication2\GccApplication2\GccApplication2.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 
  Building file: .././main.c
  Invoking: AVR/GNU C Compiler : 5.4.0
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -funsigned-bitfields -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.2.118\include"  -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=attiny45 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.2.118\gcc\dev\attiny45" -c -std=gnu99 -MD -MP -MF "main.d" -MT"main.d" -MT"main.o"   -o "main.o" ".././main.c" 
  Finished building: .././main.c
  Building target: GccApplication2.elf
  Invoking: AVR/GNU Linker : 5.4.0
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -o GccApplication2.elf  main.o   -Wl,-Map="GccApplication2.map" -Wl,--start-group -Wl,-lm  -Wl,--end-group -Wl,--gc-sections -mmcu=attiny45 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.2.118\gcc\dev\attiny45"  
  Finished building target: GccApplication2.elf
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures  "GccApplication2.elf" "GccApplication2.hex"
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom  --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0  --no-change-warnings -O ihex "GccApplication2.elf" "GccApplication2.eep" || exit 0
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "GccApplication2.elf" > "GccApplication2.lss"
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "GccApplication2.elf" "GccApplication2.srec"
  "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "GccApplication2.elf"
     text    data     bss     dec     hex filename
     1562      12       6    1580     62c GccApplication2.elf
 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  : 1574 bytes   38.4 % Full
    Data Memory Usage   : 18 bytes   7.0 % Full
 Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "GccApplication2.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\GccApplication2\GccApplication2\GccApplication2.cproj" (entry point):
Done building target "Build" in project "GccApplication2.cproj".
Done building project "GccApplication2.cproj".

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

 

David

 

 

 

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

 

 

This is what i get everytime I build any project on AS7.

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

Last Edited: Mon. Aug 28, 2017 - 05:40 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did read your posts Jim. When the tool is adamant that it wont to show me any errors, what do you want me to do?

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

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

azimmali wrote:
Yeah, so I commented out avr/signal.h and tried building - Its still the same two line output. Ughhhh!!! .:((

Have you understood anything??

 

We know it is a problem with your project and the build not generating any output at all. This is the problem we need to deal with now.

 

That is totally unrelated to the problems with deprecated header files and other errors coming from a build that actually works. This is to be dealt with later.

 

Do you understand this division into two completely separate problems, and do you understand why we need to deal with the former first?

 

And I have to ask: What is your previous experience with software development in general? With C development specifically? (This will help us form and formulate help on a fitting level.)

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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

azimmali wrote:
This is what i get everytime I build any project on AS7.

 

OK, one option then might be to try a reinstalll of Atmel Studio.

 

Could you just do these tests first:

 

1. Right-click on the file main.c in the Project Explorer and select Compile. Do you get any build output from that?

 

2. Try to build the complete project. After that, are there any files in the folder Output Files in Solution Explorer?

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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

Hi Johan,

I am somewhere between a beginner - intermediate. I am new to Embedded Software Development. I have used Kiel earlier but that was primarily making some minor changes to an already existing file. I would shamelessly say, that I have little practical exposure to programming - better say I have a phobia and want to get rid of it.

 

Azim

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

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Tools->Options->Projects->Build and Run: Set MSBuild project build output verbosity = Diagnostic to get full logs.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Johan,

I did as you said. The build output is empty with just a flashing cursor.

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

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

Yes, its showing stuff in the compiler window. Thanks.

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

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

azimmali wrote:
Yes, its showing stuff in the compiler window.

Show it to us!

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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

....this is like pulling teeth....

  • 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:

cc Jim, Johan

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.

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

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

Haven't pulled mine yet, so no clue how painful that would be.

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

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

ok so now you can fix your errors.

 

David

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

And for some weird reason my antivirus is blocking traffic whenever I upload something to this site. 

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

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

Well, I would say I have to figure out how to fix them.

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

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

azimmali wrote:

azimmali wrote:

cc Jim, Johan

 

Gee, that looks a lot like what I posted in post #52.

 

DAFlippers wrote:

....this is like pulling teeth....

Thats easier....and they numb you up first..

 

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

So I change the ISR names to the ones that are being used - not cool -( the company gave me this prehistoric code )- shouldn't complain though. How do I deal with those warnings? In addition to that, I can't edit the header files (access denied).

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

Last Edited: Mon. Aug 28, 2017 - 06:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

------ Build started: Project: EMD8409, Configuration: Debug AVR ------
Build started.
Project "EMD8409.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 "E:\EMDB409\AVREMDB\EMD8409\EMD8409\EMD8409.cproj" (target "Build" depends on it):
    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".
    Task "RunOutputFileVerifyTask"
                Program Memory Usage     :    25092 bytes   38.3 % Full
                Data Memory Usage         :    1764 bytes   43.1 % Full
                EEPROM Memory Usage     :    7 bytes   0.3 % Full
    Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "EMD8409.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 "E:\EMDB409\AVREMDB\EMD8409\EMD8409\EMD8409.cproj" (entry point):
Done building target "Build" in project "EMD8409.cproj".
Done building project "EMD8409.cproj".

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

 

 

 

 

 

Dayum Daddy!!!

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: EMDB409Pro, Configuration: Debug AVR ------
Build started.
Project "EMDB409Pro.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 "E:\EMDB409\AVREMDB\EMD8409\EMD8409\EMDB409Pro.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 
        Building file: .././main.c
        Invoking: AVR/GNU C Compiler : 5.4.0
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -funsigned-bitfields -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\include"  -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega64 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega64" -c -std=gnu99 -MD -MP -MF "main.d" -MT"main.d" -MT"main.o"   -o "main.o" ".././main.c" 
        Finished building: .././main.c
        Building target: EMDB409Pro.elf
        Invoking: AVR/GNU Linker : 5.4.0
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -o EMDB409Pro.elf  boot_ld.o level1_4026.o level1_41xx.o level1_6869.o level2.o level2_4026.o level2_41xx.o level2_6869.o level3.o level3_4026.o level3_41xx.o level3_6869.o level4.o main.o   -Wl,-Map="EMDB409Pro.map" -Wl,--start-group -Wl,-lm  -Wl,--end-group -Wl,--gc-sections -mmcu=atmega64 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega64"  
        Finished building target: EMDB409Pro.elf
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures  "EMDB409Pro.elf" "EMDB409Pro.hex"
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom  --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0  --no-change-warnings -O ihex "EMDB409Pro.elf" "EMDB409Pro.eep" || exit 0
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "EMDB409Pro.elf" > "EMDB409Pro.lss"
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "EMDB409Pro.elf" "EMDB409Pro.srec"
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "EMDB409Pro.elf"
           text       data        bss        dec        hex    filename
          25086         13       1758      26857       68e9    EMDB409Pro.elf
    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     :    25092 bytes   38.3 % Full
                Data Memory Usage         :    1764 bytes   43.1 % Full
                EEPROM Memory Usage     :    7 bytes   0.3 % Full
    Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "EMDB409Pro.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 "E:\EMDB409\AVREMDB\EMD8409\EMD8409\EMDB409Pro.cproj" (entry point):
Done building target "Build" in project "EMDB409Pro.cproj".
Done building project "EMDB409Pro.cproj".

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

 

 

 

 

This is the output I got the second time I compiled it. I take back the daddy comment. - what's the difference? anyone?

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

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

I just did a blunder - renamed the project and now AS7 wont open it. indecision

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

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

Unfortunately for you I think a lot of people have given up on this thread. 

 

David

 

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

That's ok -  I fixed it. The earlier version also opened a makefile. But this new version isn't. I will try again to see what the error is and giving up is never an option. Thanks for helping out.

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 just did a blunder - renamed the project and now AS7 wont open it. 

 

Why!?!? Do not try haphazard changes! This is absolutely basic when fault seeking. Also, work ob one problem at a time. What on earth where you trying to accomplish with renaming the project?

 

You are absolutely not knowing what you're doing. You should find someone locally that can help you sort this out "in situ".  We are close to 100 posts, and we are going around in circles: You have a project that actually does a build - that was progress. Then you decide to break it with a completely un-necessary renaming of the project. So now you're one step back and need to fix that first..

 

We're glad to help here, but it means we spend time on peoples problems. But this just changed from helping to just spend time in vain. No fun. No gain. Just wasted time.

 

Go tell your manager that you are not able to resolve your problems and that you need help by someone locally. This remote help over the web is obviously not working.

 

And with that, I am one of those giving up.

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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]

Last Edited: Mon. Aug 28, 2017 - 08:42 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DAFlippers wrote:

Unfortunately for you I think a lot of people have given up on this thread. 

 

David

 

JohanEkdahl wrote:
And with that, I am one of those giving up.

 

I am not out yet.

 

JohanEkdahl wrote:
You are absolutely not knowing what you're doing. You should find someone locally that can help you sort this out "in situ".

 

Hmmmmmm.......  Thanks for an idea

 

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

Now, on the St. Louis team we have Who's on first, What's on second, I Don't Know is on third--

That's what I want to find out. I want you to tell me the names of the fellows on the St. Louis team.

I'm telling you. Who's on first, What's on second, I Don't Know is on third--

 

etc. round and round we go......we fix the problem but we have just gone back to first base.....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Well everyone it would appear that this thread is dead........

 

I PM'ed the OP and offered to set up a Skype call, AND a Teamviewer session to get this sorted out, and received a PM with still another issue...

 

I told the OP to just "STOP" and that his antics were irritating many talented community members, and that it happens, and I then made my offer to work with him to get hings fixed as we are in the same state geographically, even though several hundred miles away.  Skype and a remote desktop can close the gap quite easily.

 

The reply back was less than enthusiastic, and that he will now try and rectify this himself.....another PM followed saying that he has the project compiling without errors and that was it.

 

I have asked that the OP let us all know what he did to get all this working perfectly in less than 90 minutes time so we can all learn from this.  From what I was told he was hung up on makefiles, which I explained that if he leaves AS7 alone and if he does not have anything special going on there is no need to worry about makefiles as Studio handles all of this in the background.  Had he taken me up on my offer I would have shown him where the makefile resides in the project, but alas.....

 

We shall see if there is a reply.

 

well at least the OP was able to get things working, so great job everyone!  Thanks for hanging in there cheeky

 

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

I think the thing to understand is how output verbosity came to be set to Quiet (or whatever it was).  Could this have been done by the installer in which case this could happen again?  Having asked that question I set up a new laptop less than a month ago, installed AS7 and verbosity was set to Diagnostic. 

 

David 

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

azimmali wrote:
 I am an intern.

awneil wrote:
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.

 

azimmali wrote:
 The company is a startup with lots of software engineers. I am the first intern in the hardware department

Surely, the whole point of an internship is for the internee to learn from experienced mentors??

 

If this company has no hardware experience,how can they possibly have a hardware intern??

 

But, anyhow, this is not a hardware problem - this is a software issue.

 

JohanEkdahl wrote:
Go tell your manager that you are not able to resolve your problems and that you need help by someone locally. This remote help over the web is obviously not working.
 

Absolutely!

 

Or ask those "software engineers".

 

Atmel Studio is basically just Microsoft Visual Studio - it is not anything special or unique to embedded development that should be unfamiliar to any software developer.

 

 

Last Edited: Tue. Aug 29, 2017 - 08:22 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Andy,

The OP is probably not reading the thread anymore so theres no point in beating this up anymore.

 

DAFlippers wrote:

I think the thing to understand is how output verbosity came to be set to Quiet (or whatever it was).  Could this have been done by the installer in which case this could happen again?  Having asked that question I set up a new laptop less than a month ago, installed AS7 and verbosity was set to Diagnostic. 

 

David 

Hmmm, point for Morten to look into maybe?

 

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

DAFlippers wrote:
I think the thing to understand is how output verbosity came to be set to Quiet (or whatever it was). 

Given the general shoot-from-the-hip approach the OP has demonstrated, my first guess would be that he himself fiddled with it.

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"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]

Pages