Programming arduino nano bootloader with a pi pico

I bought a cheap arduino nano clone and need to program the bootloader on it because it gives me errors while trying to program it in IDE. I saw online that you can do that using any IDE compatible board the only problem beeing i dont know how would i go about soldering the nano pins to the pico and i dont know if there is anything i need to modify in the isp code for it to work.

Welcome to the forum

What sort of errors do you get when programming the Nano from the IDE ?

Which board have you got selected ?
Which processor have you got selected ?

Patient: Doctor, I have a pain in my leg.
Doctor: OK, lets'do some brain salad surgery.

Seriously, there might be no need to burn the boot loader. Have you tried the different options in the Tools -> Processor menu in the IDE when you try to upload code to your Nano? Clones usually require the "old boot loader" option.

If you're using a Pico to burn the bootloader, be aware that the Nano is a 5V device and the Pico a 3.3V device; precautions to protect the Pico will be needed.

I tried both the atmega328p and atmega 328p(old bootloader) but it just keeps getting stuck on uploading and then after around 5 minutes gives me a bunch of errors, and the reason i suspect there is something wrong with the bootloader is because i can uplad simple code that doesnt use any pins like blink for example by selecting arduino pro or pro mini as the board.

it stopped giving me the same error code and just says an error occured while uploading the sketch

arduino nano but i also tried arduino pro mini and blink works while using it

tried both options available for the atmega 328p i have but neither work.

So you can upload Blink to the Nano clone if you call it a Pro Mini? But you can't upload Blink if you call it a Nano?

If you’ve bought a cheap Nano it’s likely it needs the CH340 driver for the usb to work . It may need a bootloader , but check this first !

Here

**tip: make sure you have a genuine board in your collection - expensive , but work out of box **

Yes exactly. But only blink works if i upload any other code it uploads just fine but doesnt work.

Windows picked up the drivers straight away when i plugged it in i can even select the device in IDE but it just doesnt work. I tried installing the driver you linked but it just says successfully re-installed the driver.

Noted! next time i need to buy an arduino for something im not even looking at the clones.

Well I'm stumped. So far as I know, the Nano old bootloader and the Pro Mini 5V 16mHz have exactly the same bootloader and fuses. So it's a mystery. Maybe you do need to burn the bootloader. But I don't think the pico would be the right choice for the programmer. You need a 5V Arduino of some kind.

If you are uploading Blink……

  • are you sure ? Can you change the blink period , then upload - does that work ?
    (Boards usually flash the led as supplied )
    I would expect you are not actually uploading anything .

If not then you are not uploading and the issue is elsewhere .
Also COM1 is not a valid com port for this . Check usb lead and drivers

Please be clear. This reads as if you can upload to the Nano but your program does not work. Is that correct?

I finally got it to work, it turns out there is something wrong with my arduino IDE installation because when i paste the code normally onto a new clear sketch and try to upload it to the nano it uploads but doesn't work but when i opened the blink example replaced the code with mine it uploaded and worked just fine. I seriously have no idea why it works that way but it does.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.