I am a student in high school and I have to make a big project about programming a microcontroller. I bought the microcontroller on this site (https://www.waveshare.com/r3-plus.htm?sku=19287) and when I wanted to code on it, nothing worked. So I searched on the internet and found out that I had to burn a bootloader first, so I bought this bootloader (AVR Programmer USB / USBASP clone - Opencircuit). I connected everything correctly with my microcontroller devellopment board, but I always get this warning:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Failed chip erase: uploading error: exit status 1
I have searched a lot on the internet but I really have no idea on how to fix this. I see a lot of people with the same problem, but I don't really find a clear answer, because I am a very beginner.
Every answer is appreciated and it would help me a lot.
Thank you!
I don't see anything in the description where it says you need to load a boot loader. It does have a boot loader switch which must be ON for normal boot loader mode.
When you say "nothing worked", what steps did you actually try?
This looks like a UNO R3 clone but with an FT232RL UART chip so you will first need to have installed the FT232RL driver.
As per the Wiki, for programming, the Boot switch should be set to ON and the correct COM port selected. The COM port assigned to the board should be shown in Device Manager when the board is plugged in to the PC.
The WiKi does also describe burning a bootloader using the onboard FT232RL chip but it is not clear whether this a required step or whether the information has been provided in the event that it may be needed. It would seem rather unusual for one not to have been preloaded.
If you do try this step, you will need to connect some jump wires as shown. Note also from the screenshot that the programmer setting is different to what you would use for the USBASP, i.e "FT232R Synchronous Bitbang" not "Usbasp".
Alternatively, when using the USBASP it should be possible to burn the bootloader directly from the IDE. You do not need the jump wires and they should be removed. You just need to connect the USBASP to the 6-pin header making sure that everything is connected in the correct order. Its easy to get the orientation of the plug at the end of the ribbon mixed up. In the IDE, first select the Arduino UNO R3 board. You should then be able to set the programmer in Tools | Programmer -> Usbasp. Next select Tools | Burn Bootloader.
I provide the information in case needed, but as said earlier, it does seem unlikely that this should be needed.
Maybe you should explain that. What did you try; what did the IDE tell you exactly.
Which version of the IDE do you use?
Which operating system do you use?
If you have compilation errors, please enable verbose output during compilation, compile (verify) and post the results here. You will also have to provide your code.
If you have upload problems, please disable verbose output during compilation and enable verbose output during upload and post the results here.
The above setting can be found under file/preferences.