How to connect USBASP to a bare atmega328p
-
I have spend a long time trying to sort this out.
But I getting more and more confused.I want to burn the bootloader to create this sensor.
https://forum.mysensors.org/topic/2067/my-slim-2aa-battery-nodeI have
- usbasp
- a few ardunino uno
- bare atmega328p
- not enough knowledge in burning bootloaders =(
But how do I connect the usbasp to a bare atmega328p without external crystal to burn the bootloader??
Can I connect the usbasp to the arduino unos ICSP port?
Like this

And use this good guide mysensors burn bootloader
-
@stoffej - check this out: https://www.arduino.cc/en/Tutorial/ArduinoISP as well.
Im not using the usbasp but a normal usb cable to my uno, then i use the uno as programmer.
usbasp is a programmer itself and you cant use both.If you want to use the usbasp you need to connect the right pins from it to a breadboard where you have the atmega.
Im sure there are more ways to do it. -
You can run your code without a bootloader: Arduino IDE -> Sketch -> Upload Using a Programmer
For programming optiboot and setting the fuses, I used https://github.com/WestfW/OptiLoader
-
and perhaps some parts of this howto can help you too. not the same bootloader but I use usbasp. Yes you need to use your icsp conenctor or the spi port + rst pins if you want.
https://forum.mysensors.org/topic/3503/sensebender-dualoptiboot-ota-howto-in-mysensors/18
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login