Page 1 of 1

Changing existing programming on atmega 328, what if??

Posted: Sat Mar 06, 2010 2:00 pm
by potoole
If an atmega328 has codeing(a program) on it, what would happen to the existing program if a new program, such as an arduino sketch, was downloaded to the atmega328? :?

Re: Changing existing programming on atmega 328, what if??

Posted: Sat Mar 06, 2010 2:34 pm
by stevech
the existing program would probably be overwritten by the new one.
You can upload the existing in-flash program and save it to the PC as a disk file- assuming you don't already have that program in its hex code or source code form.

Re: Changing existing programming on atmega 328, what if??

Posted: Sat Mar 06, 2010 4:00 pm
by potoole
I'm pretty sure there's a bootloader on the device that I have, which is a SparkFun OpenLog, -
(http://www.sparkfun.com/commerce/produc ... ts_id=9530) but I don't know if its an arduino bootloader.

I do know that the device will accept Arduino sketches, since I once did that, inadvertantly (I won't go into that ). However I don't know what, if anything, happened to the existing program, which came with the device. I sent it to SPARKFUN after that, they reworked for me, then sent it back. I was then able to get it operating as it should.

But now, I've screwed it up again by trying to change OpenLog's baud rate, and it is locked in an endless loop of continuous '12<' when ever I try to enter data to it. Since it is useless to me in that mode, I thought that I could just download other programs to it so that it will be useful in some form. :oops: :(


Quote:

OpenLog firmware is open source and is based on Roland Riegel's FAT library. OpenLog currently supports FAT16 (upto 2GB microSD cards). We're working on FAT32 and would love your help!

I'm afraid that my infernal "tinkering" with the device screwed it up again.

PO'T

Re: Changing existing programming on atmega 328, what if??

Posted: Mon Mar 08, 2010 1:16 pm
by stevech
if you changed its baud rate, would not the cure to simply make the PC's baud rate match?

Re: Changing existing programming on atmega 328, what if??

Posted: Mon Mar 08, 2010 5:10 pm
by potoole
Yeah, I tried changing, varying, the baud rate. Didn't help.