Go Down

Topic: Using USB-RS232 converter (Read 3834 times) previous topic - next topic

max891

I'm using IDE.
To update bootolader I need working ISP so I must visit my friend  with one :)
After that I try to use UNO as ISP to burnt bootloader on atmega8 based circuit and leave note.


westfw

Quote
one problem - bootloader is burn properly, blink sketch is burn properly but when I try to upload new sketch something happens and second arduino is bricked till next bootloader burning.

This could be the result of incorrect fuse settings.  If you fail to enable the bootloader section, the Arduino will start at flash location zero instead of at the start of the bootloader.  When the chip is otherwise blank, location zero through "start of bootloader" contain an irrelevant instruction, and the bootloader will eventually start and appear to run normally.  After you've downloader a sketch, though, you'll have "real code" between zero and the bootloader, and the bootloader won't get control.

max891

So IDE settings are bad ?  I don't used external software to set fuse... but today I might try to use it. I fount settings :

lockbit65 set to 10
F8 fusebit set to RS - 1024 words  Q- 0

max891

#18
Sep 23, 2011, 03:13 pm Last Edit: Sep 23, 2011, 04:46 pm by Max89 Reason: 1
So I uploaded hex file from optiboot thread,  (used hex file from attachment,verified,I don't touch fusebits or lockbits used avrdude with procedure erase-write-verify ) and another problem appears. Board have no communication with PC.
For now it not respond to being plugged to USB port.... So must be problem with code ?
What now ? Use IDE and ubasp to upload data once more ?

Coding Badly


Previously you referenced an ATmega8 board and an Arduino Uno.  Which of the two boards have no communication?

max891

#20
Sep 26, 2011, 02:16 pm Last Edit: Sep 26, 2011, 02:22 pm by Max89 Reason: 1
Arduino Uno , home-made board based on ATmega8 don't have USB port, it is ISP only.
If someone could provide me tutorial "burning bootolader for dummies" ;)

https://github.com/WestfW/OptiLoader - this one could help with atmega8 ? Less things to set so less things to broke ;)

westfw

Quote
https://github.com/WestfW/OptiLoader - this one could help with atmega8 ?

Yes.  Note that you'll wind up with optiboot in your mega8, rather than the older bootloader, and you'll have to manually edit the boards file to reflect the higher upload speed (and increased flash space.)

max891

Sounds dangerous... First step is bring back to life Uno board after this I might try proceed with home-made board.

Go Up