atprogram without -chiperase

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

Has anyone tried atprogram without chiperase? Supposedly it should erase the affected pages automatically ("SAM devices will always do this"), but it looks that it does not.

atprogram.exe help program
...

  -e  --erase               Erase only affected pages before programming.
                            AVR UC3 and AVR XMEGA only. SAM devices will
                            always do this.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tested with a D21, seems to work, i.e., it erases enough when programming (not page aligned though, i.e., only what is needed). Note there is also the erase command.

/Lars

 

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

Maybe different atprogram versions? Mine is from Studio 6.2 (version 0.6.1.932). It seems to have a lot of problems. For example, writing fuses rarely works (but sometimes magically does). I tried a bit newer one, from Studio 7.0 (v0.6.1.996). That seems to do much better job with the fuses, but still does not "Erase only affected pages before programming".

I asked Atmel Support. They suggested to upgrade (to v0.6.1.1042, which I assume is the latest). Somehow I'm not that eager to install yet another version of Microsoft bloatware. So, for now, I think I'm going to stick to always doing -chiperase and never touching fuses from atprogram...

Eugene

Last Edited: Sat. Feb 4, 2017 - 03:03 PM