Atmel studio 7 not working perfectly on win 7 64 bit

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to create my project on atmel studio 7 running on 

windows 7 ultimate(service pack 1) 64 bit

 

as i'm trying to generate hex file it is rebuilding successfully, no compilation error

 

but as i flash the hex on my atxmega it is not showing anything on my lcd even I'm not able to print logs.

 

 

Last Edited: Tue. Sep 15, 2020 - 12:02 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So have you ever had any other project work on this installation of Atmel Studio?

 

How do you know that the problem is Atmel Studio - and not some issue(s) in your code and/or issue(s) in your hardware?

 

Mehul9 wrote:
it is rebuilding successfully, no compilation error

Just because there are no syntax errors is no guarantee that the code is actually "correct" to do what you wanted.

 

There are many ways to write code that's syntactically valid, but logically/operationally flawed...

 

what debugging have you done to see what's happening?

 

have you confirmed basics with a simple LED blinking program?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 07:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have already ran the code on AS 6.2 and it was working fine.

 

this is not the first time i'm working on as7

 

i have already created applications and bootloader project on it.

 

it suddenly started showing this behaviour...

actually there are two files gsmm66.c and gsmm66.h 

and as i have added some extra array variable it started showing this behaviour...

 

my xmega app section is of 256kb and my app code is not utilizing even 50% of it, so even it is not a problem.

 

Last Edited: Tue. Sep 15, 2020 - 08:17 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That wasn't the question.

 

Have you ever had anything work in this installation of AS7 ?

 

Have you done a basic "blinky" to verify that you have everything installed & configured correctly?

 

It's never safe to assume that a project from some old version of any tool will "just work" in the latest tool.

 

  • things will have changed - otherwise it wouldn't be a new version!
  • there may be latent bugs in your code, that you just happened to get away with in the old version;
  • there may be different defaults - so you need to ensure that you are actually getting the settings you think.

 

None of this is unique to Atmel Studio - this is standard stuff when updating tool versions.

 

So, again, you need to debug your code to see what it's doing and where it's going wrong.

 

EDIT

 

You edited your post after I had started typing.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 08:18 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mehul9 wrote:
i have added some extra array variable it started showing this behaviour...

Aha!

 

So possibilities are:

  • You have introduced a bug (or bugs) by doing that;
  • You have  "activated" some latent bug(s) in the pre-existing code;
  • Both of the above.

 

Again, this is very common - not a specific problem with Atmel Studio.

 

There have been plenty of threads like this here before ...

 

EDIT

 

For example, this one:

 

https://www.avrfreaks.net/forum/...

 

Key suspects: https://www.avrfreaks.net/commen...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 08:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks awneil,

 

So basically the code is created on AS6.2 and then moved to AS7 .

 

in AS7, i have already added a new feature till that point it was working fine and now i'm trying to add another new feature due to which i have declared few new array variables.(problem started from here)

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

And also one of the most occurring problem i'm facing in as7 is the order of execution of services and driver.

 

due to which i'm getting implicit error.....  which i was not able to see in as 6.2

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

Mehul9 wrote:
in AS7, i have already added a new feature till that point it was working fine

Which goes to show that your AS7 installation is fine.

 

Therefore the problem must be in (or caused by) the new code that you've added.

 

So you need to debug your code!

 

 

problem i'm facing in as7 is the order of execution of services and driver

What do you mean by that?

 

 i'm getting implicit error.

You need to post the full error message - copy & paste from the 'Output' window[1] - and the code to which it relates.

 

See Tip #1 in my signature (below) for instructions.

 

At a guess, you mean you're getting warnings about "implicit declarations" of functions? That usually indicates that you have some #includes missing ...

 

which i was not able to see in as 6.2

But you've said yourself that you've changed the  code since moving to AS7 - so of course you didn't see the new problems in the old code on the old IDE!

 

EDIT

 

[1] If you don't know how to find the 'Output' window, see:

 

https://www.avrfreaks.net/commen...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 09:03 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In #1, Mehul9 wrote:
rebuilding successfully, no compilation error

In #7, Mehul9 wrote:
i'm getting implicit error

 

So are you getting errors, or are you not?

 

It's hard to hit a moving target!

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 09:04 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was getting the error at first, then after adding directories i was able to resolve that...

 

 

current no error..but i have warnings.

e.g variable defined but not used ...like that

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

Mehul9 wrote:
i have warnings.

So fix them.

 

Always pay attention to warnings.

 

In #2, I wrote:
Just because there are no syntax errors is no guarantee that the code is actually "correct" to do what you wanted.

 

There are many ways to write code that's syntactically valid, but logically/operationally flawed...

Warnings may be a clue to where such things are happening ...

 

Were you getting warnings in AS6.2 ?

 

In #4, I wrote:
It's never safe to assume that a project from some old version of any tool will "just work" in the latest tool ... there may be different defaults

One of those defaults might well be which warnings are reported, and which are suppressed.

 

So, when you moved the code from AS6.2 to AS7 - before making any changes - did you start getting (extra) warnings ?

 

Again, that might point to latent bugs in the original code ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 15, 2020 - 09:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes i was getting warning in AS6.2 as well .....

 

i have not paid attention on no of warning, but i thing in as7 no of error was greater than as6.

 

EDIT:

both have same number of warnings when moved from 6.2 to 7.

Last Edited: Tue. Sep 15, 2020 - 10:51 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

one other thing i want to add is that..... same code(the last perfect working code on both with same no of warning) when hex generated from 6.2 i was working as expected..

 

when hex generated from as7 i can see that the speed of refreshing my lcd screen is slow. 

 

on 6.2 it feels like a blink and on as7 it feels like sliding down animation...

Last Edited: Tue. Sep 15, 2020 - 10:52 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mehul9 wrote:
i have not paid attention on no of warning

That's a very bad practice!

 

Again, the warnings may well be pointing to flaws in your code

 

If you then start adding more code, you are building on shaky foundations - so it's not at all surprising if it all falls over in a heap!

 

Mehul9 wrote:
from as7 i can see that the speed of refreshing my lcd screen is slow

So what investigation(s) have you done to find what is causing this?

 

Again:

It's never safe to assume that a project from some old version of any tool will "just work" in the latest tool.

 

  • things will have changed - otherwise it wouldn't be a new version!
  • there may be latent bugs in your code, that you just happened to get away with in the old version;
  • there may be different defaults - so you need to ensure that you are actually getting the settings you think.

 

None of this is unique to Atmel Studio - this is standard stuff when updating tool versions.

another default that's likely to be different is the optimisation level...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Mehul9 wrote:

when hex generated from as7 i can see that the speed of refreshing my lcd screen is slow. 

 

Fuses?

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."