Pages: [1]   Go Down
Author Topic: Some random question  (Read 347 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 1
Posts: 334
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I uploaded the atmega 8 bootloader
using usbasp
then I load program using usbasp too
before that , once after burnt the bootloader,when I press reset button, the led at pin 13 blink a little while
but once loaded program using usbasp programmer, it seems like the bootloader gone

because when I press the reset ,the led at pin 13 wont blink

And when I change to USB, I cant upload the program because the bootloader is gone smiley-sad
What problem is that ?

Thanks
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

once loaded program using usbasp programmer, it seems like the bootloader gone

Yes, if you load a sketch with a programmer it will erase the bootloader.  Your sketch gets control immediately on power up or reset.  If you then want to be able to upload sketches via USB you have to re-burn the bootloader.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Sr. Member
****
Karma: 1
Posts: 334
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why it is like this ??

Can it be solved ?

Thank you
Logged

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1023
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, load the bootloader and then load programs using the Serial or USB connection. If you load hex files using avrdude and usbasp then the bootloader is overwritten. Decide how you want to load programs. Using serial/USB using the bootloader or the usbasp and no bootloader.
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 334
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Either one only ? Can it be like I can use both ways to program ? First I used us asp then later on I do not need to burn again the boot loader to enable to load program using USB cable ?

Thank you
Logged

Pages: [1]   Go Up
Jump to: