Is there an easier (more direct) way to flash your program?

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

I'm using AS 6.2.1563 & all is well....I compile and program without trouble.

However, it seems like I'm doing an awful lot of clicking these days.  When I used studio 4 I kept the programming window open & off to the side & would simply compile, then simply click the friendly PROGRAM button

 

 

In studio 6, I click:

 

1)Device programming icon

2)Apply (since #1 comes up "select tool...")

3)memories

4)program

5)X  to close the programming window

 

This clicking wouldn't be too bad if I did it once, but I need to do it every time I program!  It seems that whenever the programming window is open, I can no longer edit (or recompile) the program.  So after making a few changes I have to repeat 1-5. I've lived with this annoyance since moving to AS6, but keep wondering if I missed out on some useful shortcut or settings during my changeover to AS6.  Note I am not using or trying to use the debugger (especially with all of my isrs), just straight ISP/PDI flash programming.   My programmer is an AVR ISP  II (apparently now discontinued).

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Sun. Aug 2, 2015 - 01:56 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

What happens if you try to press Run button? I've never tried that with a programmer not capable of debugging.

 

There is not much you can do from the AS itself. But you can create a shortcut for "atprogram" with required parameters and have it on the taskbar or on the desktop. If you are only working on one project at a time, it might work.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

I was just wondering if AS6.2 had some sort of setting for "one button programming"  that could be kept open so you can compile & re-flash the system without going through 5 different menus.

Maybe the "run" button does this, I'll try it out.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

avrcandies wrote:
2)Apply (since #1 comes up "select tool...")

I'm sure I've read in the documentation somewhere that, if only 1 interface is present, it should get selected automatically - but that never happens.

 

 

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

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

Thanks--it worked!  Actually, this is mentioned as a note in the programming section, but skimming through whenever I saw the word "debugging", I'd skip over it by going right to figs 45/46/47 where things are boldly labeled "Programming"

Would be more informative to label the AS6 menu "one button programming", "immediate programming" or something more descriptive.

 

so CTRL+ALT+F5  does the trick (compiles & flashes device)

 

ONE THING TO NOTE:

There is a twist.  I thought I was having a mysterious loop or pointer problem, since when programming, I suddenly noticed my splash messages came up twice (which I didn't remember happening before).  I fiddled with them & the brownout values to no avail.   If I added extra initial delay time, the message doubling went away (when in doubt simply apply enough delay & duct tape to make things work).  I then noticed that if I had used the normal programming menus, this effect would never occur. 

 

Upon further examination I found that "one button programming" (OBP) probably resets the OLD code & runs it for roughly 1/2 sec before it flashes the NEW code and runs that.  Its not an issue, but something to be aware of, since it might lead to a fruitless debugging party.  I could verify, since when I edited the splash message & cleared the terminal, OBP would cause the old message to show, followed by (after a moment), the revised message.

 

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Sun. Aug 2, 2015 - 09:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

CTRL+ALT+F5  does the trick

And people wonder why the Arduino IDE is so popular despite its primitive nature...

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

westfw wrote:
And people wonder why the Arduino IDE is so popular despite its primitive nature...

It's that 'flexibility' <=> 'complexity' thing again!

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

westfw wrote:

CTRL+ALT+F5  does the trick

And people wonder why the Arduino IDE is so popular despite its primitive nature...

From the page Morten linked to....

, or press the button on the toolbar.

I don't think it's particularly onerous to use an icon on the toolbar as an alternative to some key binding.