Pages: 1 [2]   Go Down
Author Topic: Using USB-RS232 converter  (Read 1544 times)
0 Members and 1 Guest are viewing this topic.
Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6378
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
« Last Edit: September 23, 2011, 09:46:32 am by Max89 » Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12286
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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" smiley-wink

https://github.com/WestfW/OptiLoader - this one could help with atmega8 ? Less things to set so less things to broke smiley-wink
« Last Edit: September 26, 2011, 07:22:07 am by Max89 » Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6378
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.)
Logged

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

I have solution !
But it involves spherical chickens in frictionless vacuum...

Pages: 1 [2]   Go Up
Jump to: