Atmel Studio 6 Debugger problem

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

AOA

 

I am using Atmel studio 6.0 (Windows 10). Its debugger is not working proper .  can anybody help me

Last Edited: Tue. Feb 20, 2018 - 07:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel Studio 6.0 is very old and well known to be buggy.

 

So the obvious default answer when having problems with any out-of-date product is:

 

Have you tried the latest version?

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

Yes I have tried to install Atmel Studio 7 but there was some error installing 7. Then i installed Atmel studio  6.2 but still debugger is not working proper

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

nusteme wrote:

...but still debugger is not working proper

 

What is it doing, or not doing?

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "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." - Heater's ex-boss

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

nusteme wrote:
there was some error installing 7.

What "error", exactly?

 

Likely to be more productive to fix that error, than to go back to a buggy predecessor ?

 

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

Also what "debugger". Presumably you have this attached to a Dragon or a JTAGICEmkII or a JTAGICE3 or an Atmel-ICE or an AVR-One!

 

Which is it?

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

I m using Atmega16 AVR and when i start debugging my program didn't jump in external interrupt service routine when interrupt is generated. Also if i want to check my variables using watches, their values didn't update as i execute my code. But when i check same code on proteus it working proper.

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

when i start debugging my program didn't jump in external interrupt service routine when interrupt is generated.

What program? We can't see all the way over to your place and check if your program is WRITTEN CORRECTLY.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

nusteme wrote:
my program didn't jump in external interrupt service routine when interrupt is generated

So why do you think that's a fault with the debugger?

 

Also if i want to check my variables using watches, their values didn't update as i execute my code

See: https://www.avrfreaks.net/comment... - and follow the link

Also: https://www.avrfreaks.net/comment...

 

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

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

ok this is my code

 

#include <avr/io.h>

#include <avr/interrupt.h>

unsigned char z=0;

void main()

{

  DDRB=0xFF;  //Configures port B as output

  DDRD=(0<<DDD3);   //configure bit4 of port D as input

  GICR=0b10000000;   //Enabling Interrupt 1

  MCUCR=(1<<ISC10|0<<ISC11);   //selecting mode of interrupt 1

   SREG=SREG|0b10000000;   //Enabling Global Interrupt  

  while(1)

  {

  PORTB=z;  //continuously outputs z

  }

}

ISR(INT1_vect)

{

  z++;

}

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

How to properly post source code: https://www.avrfreaks.net/comment...

 

You also need to post your schematic, and some good, clear, in-focus photographs of your setup - instructions for doing this as above.

 

EDIT

 

You are missing 'volatile' - see: https://www.avrfreaks.net/comment...

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: Wed. Feb 21, 2018 - 11:22 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
#include <avr/io.h>
#include <avr/interrupt.h>
unsigned char z=0;
void main()
{
	DDRB=0xFF;			    //Configures port B as output
	DDRD=(0<<DDD3); 		//configure bit4 of port D as input 
	GICR=0b10000000; 		//Enabling Interrupt 1
	MCUCR=(1<<ISC10|0<<ISC11); 	//selecting mode of interrupt 1
	SREG=SREG|0b10000000; 	//Enabling Global Interrupt 	
	while(1)
	{
		PORTB=z;		     //continuously outputs z 
	}
}
ISR(INT1_vect)
{
	z++;
}

 

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

Did you not read #11 and #12 ?

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

Did you not read #11 and #12 ? sorry i didn't get you

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

Post #11 and post #12 both told you of a critical change you need to make to your code - but you have simply re-posted exactly the same code, without that change.

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...