USBASP In-circuit programming
Posted: 03 May 2019, 13:01
I have started this thread to share my experiences in USBASP programming. I have built the single channel transmitter as described by Mike-K in his excellent documentation, see this threadviewtopic.php?f=24&t=609
In there he advises to program an Arduino ProMini board using USBASP ICP programming. Up to recently my only experience was serial programming using a USB to TTL converter. I succeeded eventually after drawing from the advise found in this forum, but it took a while since the information is scattered. Therefore I thought it appropriate to start this topic describing my stumbling blocks, and allowing me to pose further questions on the subject.
Firstly, you need to acquire an USBASP programmer. I purchased this one: https://nl.aliexpress.com/item/1pcs-Sma ... Title=true which came complete with a 10 to 6 pin adapter. I managed to find a second adapter, which I converted to a twin servo lead arrangement as Mike_K describes in his documentation. Pictures:
next go through these steps:
- select the correct Arduino board and programmer (same as serial programming).
- no need to select a Port, none will be shown.
- select the "USBasp" programmer.
- Do not use the arrow style upload icon on the sketch window, uploading will fail, upload the sketch using the "upload with programmer" option from the "sketch" menu in the menu bar.
You may get a warning message like avrdude: warning: cannot set sck period. Please check for usbasp firmware update. If so, ignore this message.
Hope this is useful for other newbees to ICP like me.
Cheers
Max.
Edit: I should mention that Mike has covered all of the above nicely in his documentation, it was just me being hasty and chaotic to miss that initially. Maybe the port selection (or rather lack of) could be added to take any confusion on that subject away.
In there he advises to program an Arduino ProMini board using USBASP ICP programming. Up to recently my only experience was serial programming using a USB to TTL converter. I succeeded eventually after drawing from the advise found in this forum, but it took a while since the information is scattered. Therefore I thought it appropriate to start this topic describing my stumbling blocks, and allowing me to pose further questions on the subject.
Firstly, you need to acquire an USBASP programmer. I purchased this one: https://nl.aliexpress.com/item/1pcs-Sma ... Title=true which came complete with a 10 to 6 pin adapter. I managed to find a second adapter, which I converted to a twin servo lead arrangement as Mike_K describes in his documentation. Pictures:
next go through these steps:
- select the correct Arduino board and programmer (same as serial programming).
- no need to select a Port, none will be shown.
- select the "USBasp" programmer.
- Do not use the arrow style upload icon on the sketch window, uploading will fail, upload the sketch using the "upload with programmer" option from the "sketch" menu in the menu bar.
You may get a warning message like avrdude: warning: cannot set sck period. Please check for usbasp firmware update. If so, ignore this message.
Hope this is useful for other newbees to ICP like me.
Cheers
Max.
Edit: I should mention that Mike has covered all of the above nicely in his documentation, it was just me being hasty and chaotic to miss that initially. Maybe the port selection (or rather lack of) could be added to take any confusion on that subject away.