Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
These are two hex file the lamp.hex is the program that I want to flash and his 
result after a flash with -D

They are similar but not equal!

Original comment by [email protected] on 17 Nov 2011 at 8:59

Attachments:

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
You have to erase the flash before you can reprogram it. Why would you not 
erase the flash?

Original comment by [email protected] on 19 Nov 2011 at 9:44

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
That's strange, Arduino upload programs with a "-D" option, always, before 
programming. It is so wrong with flash?

Original comment by [email protected] on 19 Nov 2011 at 1:37

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Without "-D" avrdude erase flash AND EEPROM, with my radio Turnigy 9X I have to 
setup again all my parameter.

Original comment by [email protected] on 19 Nov 2011 at 2:16

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Before new contents can be written to the Flash Program Memory, the memory has 
to be
erased. Without erasing, it is only possible to program bits in Flash memory to 
zero, not selectively setting a bit to one. 

Arduino is a special case. What you're seeing is expected behavior.

Original comment by [email protected] on 20 Nov 2011 at 4:31

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
It is possible to erase only a page (256byte) before writing it without erasing 
all flash AND eeprom?

Original comment by [email protected] on 20 Nov 2011 at 8:22

from mega-isp.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Not with SPI programming. There is only one 'erase' command, to erase the whole 
chip. Arduino uses self-programming which does allow 'erase page' for flash. 
You'd have to install a bootloader on the mega8 chip to get this feature. 
Alternatively you could store a copy of the eeprom with your settings on it and 
then restore it each time you reflash the chip.

Original comment by [email protected] on 21 Nov 2011 at 1:52

from mega-isp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.