Тёмный

Arduino Bootloader Update or Install - Upgrade a Clone From Old Bootloader to New Optiboot! 

Design Build Destroy
Подписаться 1,4 тыс.
Просмотров 43 тыс.
50% 1

We took a look at some Arduino Nano Clones from REXQualis in the last video. Like most non genuine Arduino's (clones) they use the OLD BOOTLOADER which can get stuck in an infinite loop. I'll show you how to upgrade the bootloader to the newest version making your clone basically a true Arduino. This also applies to re-installing the bootloader on any Arduino that uses the Atmega chips like Uno, Nano, Mega2560, Pro, etc.
Check out this video on adding the additional 1.5k of Flash programming space back to your Nano before flashing your new bootloader.
• Increase Flash Program...
Even on a genuine Arduino nano you are losing this space with the new bootloader so I'll show you how to gain it back!
Check out the review of REXQualis made Nano clones:
amzn.to/2YNt9GI
Buy them cheap on Amazon and help support this channel: amzn.to/3nAawwX

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--MynHAz7TsI.html Check out this video on adding the additional 1.5k of Flash programming space back to your Nano before flashing your new bootloader. Even on a genuine Arduino nano you are losing this space with the new bootloader so I'll show you how to gain it back!
@WorldWarSelection
@WorldWarSelection Год назад
Hi, can this method be used to get the old bootloader onto a new nano?
@DesignBuildDestroy
@DesignBuildDestroy Год назад
@@WorldWarSelection Yes, but not sure what the benefit would be?
@WorldWarSelection
@WorldWarSelection Год назад
@@DesignBuildDestroy the old bootloader nanos seem to have a bug on it, that actually benefits what I need it for. Weird one, but that seems to be the only way. I’ve contacted every seller at Ali express to try and find the old bootloader nanos. I received one today, meant to be old bootloader, which it is, and it’s loads up the sketch, but doesn’t function the way it should. Actually freezes the system I put it in. So I’m guessing it’s a faulty one.
@parranoic
@parranoic 2 года назад
Using an old uno as a programmer and connecting the way you showed I managed to update to the new bootloader in a few seconds. Thank you so much!
@WhiteError37
@WhiteError37 2 года назад
Always thought you had to have a board with the new bootloader on there defacto! this is great going to upgrade all my old boards today 🤙🏻
@rolandberendonck3900
@rolandberendonck3900 10 месяцев назад
Very nice upload! Thank you :) With your help I finally managed to get my rf nano's up and running by flashing a working bootloader to it 😊
@JoeyGarcia
@JoeyGarcia 6 месяцев назад
3 years later and these instructions still worked! Nice!
@stevee-bc1gt
@stevee-bc1gt 20 дней назад
You used two micro controllers?
@JoeyGarcia
@JoeyGarcia 20 дней назад
@@stevee-bc1gt Yup. I used two Arduino Nano. One to upgrade the boot loader on the other one that had a old boot loader.
@Allazander
@Allazander 6 месяцев назад
Thank you. I'm new to working with Arduino and I had a couple Nano that I couldn't upload to period, not even using an Uno as programmer. I was able to use a good Nano to flash the new bootloader to them following your video but they still wouldn't work. The tx LED was constantly lit up on both of them and I'd tried hitting 'reset' as I started an upload to no effect. Out of frustration I eventually did a double click of the reset button after I'd started an upload and surprisingly the one I did that to uploaded, so I did the same on the other and that fixed that one as well. Now they both can be uploaded to without issue, no more constant on tx LED and no more having to select 'old bootloader' either. Now all my Arduino have the current bootloader. Thank you!
@PerchEagle
@PerchEagle 3 года назад
I like your work, top recording, concise tutorial and directly to the point.
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
Much appreciated!
@greenelectron
@greenelectron 10 месяцев назад
Very nice video, everything clearly explained. After spending almost 5 hours on troubleshooting my AliExpress Arduino Nano, this is the only video that managed to work for me. I connected it to my original Arduino Uno and burned the new bootloader onto it. Thank you for saving my money, keep up the good work!
@NetworkDirection
@NetworkDirection 6 месяцев назад
Worked perfectly, thank you!
@naasking
@naasking 2 года назад
Excellent guide, worked perfectly.
@ruenjou
@ruenjou Год назад
Worked as advertises. Thanks.
@yataghan2k
@yataghan2k 3 года назад
Thanks buddy....This worked for me ... I bootloaded by UNO using this tutorial... :)
@yataghan2k
@yataghan2k 3 года назад
C:\Program Files (x86)\Arduino\hardware\arduino\avr ( Pah for boards.txt )
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
TIP FOR FINDING ARUDINO SETTING FILES: Someone pointed out to me you can go to the FILE menu in Arduino IDE -> Click Preferences, in the settings box that pops up at the bottom will be a link to click to "More preferences can be edited directly in the file". Click the path below it and you'll be taken to the path where your Arduino files are stored. From there just find Packages folder, and through the rest of the path Arduino/Hardware/AVR/xxxx your avr version.
@OnosTech
@OnosTech 3 года назад
Thanks for this tutorial. It is very helpful. I just followed it to upgrade my nano. However, I found the boards.txt file in this path for my computer -> C:\Program Files (x86)\Arduino\hardware\arduino\avr 👍👍👍
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
Yea so after someone pointed out you can get to the path via Preferences menu mine takes me directly into the users AppData folder as I showed not to program files. The files exist in both locations but not sure why ha may depend on how you install it. In any case if it works for you GREAT! Thanks for sharing it might help other's out there :)
@electrotsmishar
@electrotsmishar 2 года назад
Thank you. Very helpful
@tohcp5729
@tohcp5729 Год назад
impress and help me a lot as beginners
@girishchandra6722
@girishchandra6722 3 года назад
thanks brother my arduino nano got new bootloader
@damiensiviero
@damiensiviero 9 месяцев назад
good video thanks
@tubeDude48
@tubeDude48 3 года назад
At the end when you said 'over write it', were you talking about (old Bootloader)?
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
I'm referring to the board you loaded the Arduino ISP sketch too to act as the programmer. I meant you do not need to keep it as a "programmer" put that sucker into some cool project and load your new sketch to it overwriting the Arduino ISP sketch. Unless you want to keep it on hand as an ICSP programmer that is :)
@HappyHermitt
@HappyHermitt Год назад
Where do we find this optiboot?
@stealth5508
@stealth5508 3 года назад
Excellent tutorial. One basic question. In case I want to update a nano having old bootloader (to be programmed) with another nano already having new bootloader (programmer) for the first time, would the above text file modification be still necessary. Thanks!!
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
I don't believe you would have to if the "programmer" is already on Optiboot. The reason for changing the boards.txt file is due to the different baud rates coded in the bootloaders so when using an OLD bootloader as your programmer it will fail to communicate with the programmer to push the new bootloader to another board. And you can't just change the baud rate in the file because the rate is hard coded in the old bootloader so flipping the bootloader source is the only way I found. But check out my last video on gaining 1.5k of flash space ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--MynHAz7TsI.html this is a good reason to edit your boards.txt before burning the bootloader to your board. As well as flipping them around and using the newly upgraded one to be the programmer and flash your existing Nano! Even a genuine Arduino using Optiboot still has the wrong setting, so even though your new bootloader is 512 bytes it still locks up a full 2k for bootloader space.
@Nilmoy
@Nilmoy 6 месяцев назад
the answer to your question is actually in the tutorial.
@JustMe-jp6we
@JustMe-jp6we 3 года назад
Hi, this is a good video. I was not aware that you can upgrade the boot loader. However, I thought that you need a 10 mF capacitor between ground a reset of the Arduino on the programmer side.
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
The cap prevents the master side from resetting on serial connection being open. But if my thinking is correct and you are using latest version of Arduino IDE, AVRDude will open the serial connection which may reset the master in that instance, but that's ok, the master runs back up instantly and the firmware starts to push through. I suspect it was more of an issue with older versions, at least that's been my working theory. I have never needed to use the capacitor on reset line.
@JustMe-jp6we
@JustMe-jp6we 3 года назад
@@DesignBuildDestroy Thanks!
@conesillyvalley7182
@conesillyvalley7182 3 года назад
Great video, One suggestion : try not to touch the pins of nano-clones, static energy damages the i/o and may result in irratic behavior
@rabbirt
@rabbirt 5 месяцев назад
Is there a way to do this with just 1?
@mtalhakhalid1679
@mtalhakhalid1679 3 года назад
Using arduino nanon 1 as ISP
@ozgemmo3445
@ozgemmo3445 2 года назад
Great instructional video! Question; I am the Administrator in Win10 64bit, but when I edit the old Nano bootloader txt file as shown by you, it won't allow me to "save" or "save as" the changed version! Any suggestions on how to do this please? FYI: I am not a programmer's bootlace!!!! Cheers
@ozgemmo3445
@ozgemmo3445 2 года назад
Please don't worry about replying now as I have found a "shotgun" fix to this problem in Win 10! Cheers and thanks
@samdeur
@samdeur 2 года назад
Thank your for this great vid.. i'm going to be getting my first nano in a few weeks chipping from china is really slow. Wanted to know if i could do this using a uno to update a nano ???? .. or did i have to buy two of them ?
@DesignBuildDestroy
@DesignBuildDestroy 2 года назад
Sure can!, An UNO and a Nano are the same device just in a different board format. Both use Atmega328p microcontroller. The only difference is the Nano ships with the old bootloader (whether it is a genuine Nano or not).
@samdeur
@samdeur 2 года назад
@@DesignBuildDestroy awesome thanks..greetings from The Netherlands.
@cristiandumitru4158
@cristiandumitru4158 Год назад
I upgraded 2 Nanos (each other) to the new bootloader without changing the borards.txt file. I just selected the new bootloader in the tools/processor menu before burning the bootloader.
@DesignBuildDestroy
@DesignBuildDestroy Год назад
That did not work for me, but it could be differences in IDE versions and installations. Arduino IDE is kinda weird which is why some of us all have our boards.txt files in different folders etc. But good to know it worked for you and will work for some other folks out there
@cristiandumitru4158
@cristiandumitru4158 Год назад
@@DesignBuildDestroy I used 1.8.19 for Linux and I replicated it on 2.0.2 for Linux.
@v.k_
@v.k_ 3 года назад
if you install arduino ide from windows store this is impossible because windows doesnt allow edit windowsApp folder. you need intall arduino from their website and install installer. you can find it Download options and win 7 or newer, not Windows app who send you to windows store
@F74D3N8r0T
@F74D3N8r0T 2 года назад
Nice Video. Thank you. Unfortunately I am not able to select the Nano anymore. Checking my boards.txt reveals it is no longer existing, hence I chose what was available and made it a UNO. This works well, although I would like to know how to get the Nano back. I have version 1.83 of the AVR Boards installed on a MAC.
@DesignBuildDestroy
@DesignBuildDestroy 2 года назад
Maybe try going to boards manager and reinstalling Arduino AVR boards profile. I don't know any way the core Arduino profiles get removed unless you accidentally deleted it. Even in IDE you can't choose to uninstall just 1 Arduino board the AVR profile is all or nothing. In any case UNO is a Nano with a different layout so it does work. The only real difference is nano has an extra couple ADC pins, that SMC Uno has them on it's chip but not run out to headers for you to use. Throw back to when Uno used a DIP style chip which did not contain the additional ADC pins they didn't want to change the board layout after updating but code wise the bootloaders are identical so it all still works with nano.
@F74D3N8r0T
@F74D3N8r0T 2 года назад
@@DesignBuildDestroy Thanks! I did check if the pinout is the same and it showed that it is. For the next project I will use the Nanos called Uno, but I need to find a working Nano. Haven't you mentioned you're selling them somehow? Also I cannot build one without having the option to choose the darn thing.
@DesignBuildDestroy
@DesignBuildDestroy 2 года назад
@@F74D3N8r0T I don't sell anything, I buy my Nano's on Amazon. Specifically Rexqualis brand they are good quality and cheap if you are in the US amzn.to/2YNt9GI
@F74D3N8r0T
@F74D3N8r0T 2 года назад
@@DesignBuildDestroy Thanks. Since I am not from the US I will buy some others, but sure you helped me a lot. Thank you!
@joselagunas1038
@joselagunas1038 3 года назад
I followed very close every step and when uploading it says uploaded and on second nano the led blinks once and does not stays on, when burning bootloader show this error "avrdude: Expected signature for ATmega328P is 1E 95 0F Double check chip, or use -F to override this check. Lets say everything came right, the txt file should be returned as it was? Thanks
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
Assuming it is actually a Atmega328P chip, then it could be a connection issue, check all the wiring on both chips. There have also been lots of knock off chips themselves where it's not just an Arduino clone board, but they managed to make a fake Atmega328p chip itself check out: www.sparkfun.com/news/364. I've never had that issue with this particular brand but I have had problems with some other off brand Arduino clones the chip just doesn't work right for anything let alone trying to burn bootloader. As for changing the text file back you could if you want, I personally leave it as is since I basically only buy clones and first thing I do is upgrade the bootloader it if needed.
@NhatNguyen__0
@NhatNguyen__0 Месяц назад
Tried this on a nano that I can't upload. Turns out it has a defected chip. What a bummer.
@HappyHermitt
@HappyHermitt Год назад
I've had nothing but problems with bootloader. From nano to nano, uno to nano, uno to attiny85, etc
@pierpa_76pierpaolo
@pierpa_76pierpaolo 3 года назад
Good morning, I own several Uno\Nano arduino boards in clone version that don't want to know how to work anymore. What do I do? I have loaded the drivers and when I insert the sketch I don't get any error but at the end it doesn't execute the code. A port problem, com3 and sometimes com7 appears too. To load my code I guess I have to use "bootloader" or something similar? I do not think there are components to replace but I hope to find a solution soon. Regards.
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
If you can upload the code without any errors, it may not a bootloader problem. Try loading the blink sketch with nothing else connected to the pins of the board. You can find Blink under File -> Examples-> Basic. If that uploads and the onboard LED blinks then the problem may be your original code or circuit.
@pierpa_76pierpaolo
@pierpa_76pierpaolo 3 года назад
@@DesignBuildDestroy No. Yesterday I tried again to load a sketch and then under Tools > Nano module ic >Atmega328P (old bootloader). My board does not come up to date with ISP and compiling the projects in this "old bootloader" mode, they work perfectly. Finally I can breathe a sigh of relief. For this problem I had to abandon completely Arduino (I use only clone versions) but now I'm happy to start again with them. Thank you very much.
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
@@pierpa_76pierpaolo AH yes the clones are almost always the old bootloader for whatever reason. Now that you know they are working you can upgrade the bootloader following this video if you'd like :)
@motorbikesjp7961
@motorbikesjp7961 2 года назад
As of July 2022, the price of these replica NANOs has jumped to three times the price of a year ago. Therefore, I would buy MAKER NANO, which is manufactured in Singapore, instead of NANO, which is made in China.
@alnoorratansi9364
@alnoorratansi9364 3 года назад
Can this be done with USBASP programmer and how ?
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
Same method, except choose USBASP as your programmer and go directly to Burn Bootloader after having made the bootloader.txt file changes. You won't need the ArduinoISP sketch. Just make sure you wire the programmer up correctly the ICSP pins on the Arduino.
@vindulaherath6400
@vindulaherath6400 3 года назад
I have a orginal arduino UNO and clone FTDI Nano which is using old bootloader. So can I update the new bootloader to the clone Nano using UNO?
@DesignBuildDestroy
@DesignBuildDestroy 3 года назад
You sure can! Just load the ArduinoISP sketch to the UNO first making sure to select UNO as the board type. Then After wiring everything up (the wiring pins numbers are the same for the UNO as Nano), change the Arduino IDE board to the device type you want the bootloader for, in your case Arduino Nano with processor Atmega328p and hit the burn bootloader menu option.
@vindulaherath6400
@vindulaherath6400 3 года назад
@@DesignBuildDestroy thank you so much 👍🏻
@redneckwarriors1
@redneckwarriors1 3 года назад
this may be a stupid question, but when i try to edit the boards.txt file it keeps saying i need administrator privlidge in order to save the file.i am the admin and i have gone into the properties of all the arduino folders and gave myself full control and unchecked the read only box for the boards.txt file, nut it still wont let me save.can anyone help?
@redneckwarriors1
@redneckwarriors1 3 года назад
nvm, figured it out. blonde moment
@caedenv2575
@caedenv2575 3 года назад
@@redneckwarriors1 what was the solution I'm having a blonde moment
@redneckwarriors1
@redneckwarriors1 3 года назад
​@@caedenv2575 i think it was that i had to make myself an administrator over everything in my file path which was C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards. in the Properties menu i went down to Advanced i changed all of it to give myself permission
@caedenv2575
@caedenv2575 3 года назад
@@redneckwarriors1 okie sounds good thanks
@redneckwarriors1
@redneckwarriors1 3 года назад
@@caedenv2575 let me know if it helps
@ryankoza7584
@ryankoza7584 2 года назад
idk
@sharithstembo2062
@sharithstembo2062 2 года назад
new Version Arduino Software location Should be :- C:\Program Files (x86)\Arduino\hardware\arduino\avr
Далее
Arduino Nano Clones Are They Worth it? YES
4:16
Просмотров 25 тыс.
installing an arduino  bootloader
13:02
Просмотров 14 тыс.
13+ 2 серия
8:17
Просмотров 281 тыс.
BMW Brake Sensor Bypass - How it works
8:19
Просмотров 84 тыс.
How to Burn Boot-loader to Any Arduino !
2:38
Просмотров 45 тыс.
Треш ПК за 420 000 рублей
0:59
Просмотров 253 тыс.