Go Down

Topic: Some random question (Read 891 times) previous topic - next topic


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 :(
What problem is that ?



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.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Why it is like this ??

Can it be solved ?

Thank you


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.


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

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131