Atmel Studio F5, device programming not working correctly

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

I seem to be having a small issue with Atmel Studio version 6.1.2730 service pack 2 not programming correctly when using F5. These were the instructions I followed:

http://www.pololu.com/docs/0J36/...

I'm using an ATtiny87 as a target with a MKII programmer. Compiler optimization is turned off. When I hit F5, the small program compiles, the green light on the MKII turns red for a second and it seems like the ATtiny87 is programmed. When I look at the MCU pins with an O-scope, the MCU seems to have been erased and not reprogrammed. When I use the "Device Programming" (tools -> Device programming), the MCU gets programmed correctly every time. Are there any ideas why F5 is not programming the MCU correctly?
Matt

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

I don't like the idea of using F5 (which is (more or less) "Start with debugging") for programming only. Why go through all the hoops and jumps in the Polulu tutorial for getting something that is already present in Atmels Studio?

What if you try the "Start without debugging"(or the equivalent Ctrl-Alt-F5)? This alternative is present for exactly this scenario (programming only).

If you think Ctrl-Alt-F5 is akward, why not pick a free F-key (F12?) and assign it the funcion "Start Without Debugging"?

If you prefer clicking you can set up a button in one of the tool bars if not already there.

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

Johan, The Ctrl-Alt-F5 key combination behaves the same way as F5, the chip is erased and not programmed. Maybe I need to do a fresh install of Atmel Studio. (There is probably a setting somewhere I messed up)

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

Check what you have under Project->|Name| Properties (Alt + F7)->Tool->Programming settings. This entry controls this behaviour...

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

Success! There is a drop down box with 4 options under "Programming Settings”.
1) Skip programming
2) Erase entire chip
3) Incremental programming
4) Erase only program area
I had it set to #4, it needs to be set to #2.
Meolsen and Johan, the help is appreciated.