question about usbasp

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


Hi,I am using USBasp and atmel studio for attiny84 microcontroller.I am installing software to the microcontroller via "TOOLS tab" in atmel studio.I am using avrdude version 5.10

My questions:

1)Is the microcontroller memory automatically erased when I install software to the microcontroller with Usbasp?Or firstly,should I delete it manually with the cmd command?

2)What if we load with usbasp the same software on a microcontroller over and over again?Such as,5-8 times.is also the remnants of the previous software being deleted?There is no problem in sight.But I doubt the possibility of taking up memory space.

3)How can I prove if usbasp automatically erases the chip?If,this true




 

 

Last Edited: Sat. Sep 12, 2020 - 02:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

(1) read the avrdude docs.   The default is to erase the whole of Flash (and EEPROM) memory.   You have to set special flags if you want to behave differently.

 

(2) the previous memory is erased first.   you can re-program 100,000 times and more.

 

(3) send an avrdude command to read the Flash (and EEPROM)

 

Of course USBASP can be controlled by programs other than avrdude.

They may have different flags and defaults.    But still end up with the same USBASP and AVR target.

 

David.

 

I strongly advise that you use an up to date avrdude.

The version that came with WinAVR-2010 is more than 10 years old.

Fine for elderly chips like tiny84 and mega328p.    No good for later Tiny and Mega.   And impossible for the new Tiny and Mega.

Last Edited: Sat. Sep 12, 2020 - 02:14 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In many cases the  WinAVR-2010  stille generate the best code.

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

sparrow2 wrote:

In many cases the  WinAVR-2010  stille generate the best code.

Rubbish.

 

Fred Flintstone's car worked.    But modern cars are better.