ATMEL-ICE Why does right hand led flicker when code running?

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

When my code is running the right hand LED on the ATMEL ICE is green but flickers at about 4Hz (flickers counted by eye + measured for 10 secs with stopwatch). I've tried searching for the answer to this specific question but not found an answer.

This happens both with an ATMega328P and an ATTiny85. Both are just running very simple code:

start: rjmp start

I use Atmel Studio 7.0.2397 and do "Debug / Start Debugging and Break" then do "Debug / Continue".

I wonder if the ICE is stopping the target briefly to poll it. I am considering measuring execution time of some lengthy CPU bound code with and without the ICE, to see if execution is marginally slower with the ICE enabled but I haven't done that yet.

TIA for any help understanding what's happening.

This topic has a solution.
Last Edited: Mon. Apr 6, 2020 - 12:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Dave Lowther wrote:
I've tried searching for the answer to this specific question but not found an answer.

Really?

 

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


Thanks for the quick reply. My manual doesn't say what your manual says :-(

 

 

I'm so pleased I wasn't just being word blind.

 

Thanks for the super quick help.

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


I'll see if I can get a newer version (I only downloaded it in Jan this year, but it looks to be quite old)

 

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

Right, I've got the latest (hopefully) version 42330C from the Microchip website. I got that old version from the Farnell web site when I bought the ICE. It's still on their website.

 

Thanks again for your help. Now I've got something to read to see if any other new and useful info is in it

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

I've e-mailed Farnell to let them know they should update it

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

 

Dave Lowther wrote:
version 42330C from the Microchip website.

Yes, that's the one I was looking at:

 

 

Dave Lowther wrote:
I got that old version from the Farnell web site

 

Always best to go to the manufacturer's own product page to make sure you have the latest & complete info:

 

https://www.microchip.com/DevelopmentTools/ProductDetails/ATATMEL-ICE

 

Although they do seem to be a bit confused about the date:

 

 

frown

 

#UseManufacturerSite

 

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: Mon. Apr 6, 2020 - 12:45 PM