Go Down

Topic: Upload program via USBasp (Read 332 times) previous topic - next topic

safiullahtariq

Hello All,

I require some advice.

I installed a blank atmega328p-pu chip on Arduino uno R3 and succesfully uploaded bootloader via USBasp; uploaded the code to atmega via normal process(usb connected to PC and arduino).

After that I pulled out that ready 328p-pu and started using it in my external circuit. Now I want to upload the code to the chip in my external circuit without using arduino. For that I made the ICSP connectors. I dont have an FTDI cable at the moment.

My question is, can i upload the code via USBasp ?

Regards,

Safi

DrAzzy

Yes, subject it from tools programmers, and to upload, choose upload using programmer (file menu), instead of clicking the upload button or doing upload.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

OldSteve

Using ISP and USBASP, still always burn the bootloader first, (as you've done), to set the chip's internal fuses correctly, then follow with "Upload using programmer". If "UNO" is selected when this is done, the fuses will be set to those of a standard UNO - 16MHz oscillator etc.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

Paul__B

For that I made the ICSP connectors. I don't have an FTDI cable at the moment.
But you have a UNO!  The "FTDI cable" is built into it.  If you open the "RESET-EN" link and solder pins for a jumper over it, you can use the side of this jumper that is not the reset pin, as the reset on your external board, plus port pins 0 and 1 as RXD and TXD and put the jumper on pins 5 and 6 of the ICSP header to hold the UNO chip in reset while you use it as your USB to TTL interface.

And you should order a couple of not FTDI, but USB to TTL boards from eBay so that you can do this more easily in future.

Note that you need to provide a 0.1 µF capacitor in series with the DTR line of that board to your reset pin with the 10k pull-up.

Now if instead you use the USBASP and have in whatever fashion, burnt the bootloader at least to set the fuses, note that in using the USBASP to download a sketch, you have wiped the bootloader and cannot at that point use serial downloading (unless you re-burn the bootloader).

safiullahtariq

Is there a like button for you people ? :)

Thank you for your replies.

I was getting an error, now i know that i have to burn the boot-loader first and then upload the code. Tomorrow I will try this and let you people know of my success.

Very best Regards,

Safiullah

mrburnette

Is there a like button for you people ? :)

Thank you for your replies.

I was getting an error, now i know that i have to burn the boot-loader first and then upload the code. Tomorrow I will try this and let you people know of my success.

Very best Regards,

Safiullah

Take a bit of time and read Nick's great article on bareboard 328's:
http://www.gammon.com.au/breadboard

Ray

My Projects

safiullahtariq

Thank you for your replies and making me understand.

I was able to load the sketch. I followed you all and also the following link to give me a clear idea.

https://www.arduino.cc/en/Hacking/Programmer

Thank you.

Regards

Safi

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!

Arduino
via Egeo 16
Torino, 10131
Italy