Arduino Forum

Using Arduino => Microcontrollers => Topic started by: nightcrawler218 on Jun 25, 2013, 05:16 pm

Title: Upload sketch to Arduino via USBASP Usb protocol only.
Post by: nightcrawler218 on Jun 25, 2013, 05:16 pm
Hello all :)

I have a usbasp programmer, Atmega328p with UNO bootloader, I DON'T have FTDI breakout board. Can you tell me how to upload sketches multiple times on the arduino chip using the USBASP protocol. I want to replace the TX, RX, RST serial protocol with the USBasp interface (Protocol only)?
Is it possible?

Thanks in advance
Title: Re: Upload sketch to Arduino via USBASP Usb protocol only.
Post by: sparkylabs on Jun 25, 2013, 05:43 pm
Your looking at changing the bootloader significantly as that is it's main function. Why not use your UNO board with the MCU removed as the USB/serial adapter.
Title: Re: Upload sketch to Arduino via USBASP Usb protocol only.
Post by: nightcrawler218 on Jun 25, 2013, 06:15 pm
Thanks sparkylabs for the knowledge.

I was going through this forum http://www.multiwii.com/forum/viewtopic.php?f=6&t=2521
so I thought to give it a try.

Well, Thanks again for your answer
:)
Title: Re: Upload sketch to Arduino via USBASP Usb protocol only.
Post by: retrolefty on Jun 25, 2013, 06:28 pm

Hello all :)

I have a usbasp programmer, Atmega328p with UNO bootloader, I DON'T have FTDI breakout board. Can you tell me how to upload sketches multiple times on the arduino chip using the USBASP protocol. I want to replace the TX, RX, RST serial protocol with the USBasp interface (Protocol only)?
Is it possible?

Thanks in advance


Simple as the arduino IDE now supports uploading sketches via hardware programmers. This will upload the sketch on the desired target board, but keep in mind that it will erase any bootloader that might have been on the target chip which is not a big deal if you plan on only using the USBasp programmer to upload sketches to the target. You can always reburn the uno bootloader to the target if you wish to user normal serial uploading in the future.

1. Select target board type in tools menu
2. Select USBasp programmer type in tools menu
3. Load sketch into arduino IDE edit window
4. Select upload sketch using programmer in the files menu

Lefty
Title: Re: Upload sketch to Arduino via USBASP Usb protocol only.
Post by: nightcrawler218 on Jun 26, 2013, 08:41 am
Thanks Retrolefty. your method helps me.  :)