LỖI AN ERROR OCCURRED WHILE UPLOADING THE SKETCH

Bạn đang suy xét lỗi an error occurred while uploading the sketch buộc phải không? như thế nào hãy cùng ucozfree.com đón xem nội dung bài viết này ngay tiếp sau đây nhé, vì chưng nó hết sức thú vị với hay đấy!

XEM đoạn clip lỗi an error occurred while uploading the sketch trên đây.

Bạn đang xem: Lỗi an error occurred while uploading the sketch

Recently, after my OS was reinstalled installed the latest version of Arduino IDE to lớn my Win 10 laptop. I opened a sample sketch, the blinky, connected my Arduino Nano, selected the right port and board and clicked on upload.

Đang xem: Sửa lỗi an error occurred while uploading the sketch

*

Arduino Nano Code Upload Error

The code was compiled in 3 seconds, but it was stuck in the upload part.

Arduino Nano Code Upload Error clip Tutorial

Arduino Nano Code Upload Error clip Tutorial

Arduino Nano Code Upload Error

After a while, the IDE spitted out the following error message

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00An error occurred while uploading the sketch

What The … :/

First I thought there was something wrong with the Nano board I was using. But when I tried to lớn upload the code to lớn the one that was working, I got the same error. I tried lớn reinstall Arduino IDE, removed & added all the boards and even tried to manually install the drivers.

How to Fix An error occurred while uploading the sketch?

Well guys, the solution was simple. In the newer versions of Arduino IDE, you have lớn select Old Bootloader before uploading codes khổng lồ newer boards.


This is how you vì chưng it.

Xem thêm: Top 15 Địa Chỉ Mua Iphone Cũ Ở Đâu Uy Tín Tphcm, Cửa Hàng Nào Bán Iphone Cũ Uy Tín Ở Hcm

Why not make a PCB for your Project?

Making a PCB for your DIY project is not hard nowadays. PCB helps to lớn get rid of all messy wires và stuff and give your project an awesome look. & its cool khổng lồ make your own PCB for your project right?

Designing a PCB for your Project – The Easy Way

I use Altium Designer to draw the circuit và design the PCB. It is a powerful tool that can be used lớn design và create your own PCBs for your project as well as complex and multiplayer PCBs for industrial use. Here is the link to the Altium trial version. So make sure you check it out.

Start Designing your own PCB

Getting PCBs Done

I usually order our PCBs from PCBWay. PCBWay is a PCB manufacturer specializing in PCB prototyping, low-volume production, và neat và tidy PCB Assembly for a very low price. They have a very friendly customer tư vấn team và even perform a không lấy phí PCB Design review before payment và inform us if there is some issue with the design. Feel không tính tiền to kiểm tra out their trang web below.

Make your own PCB for your Project

Steps to lớn Fix Arduino Nano Upload Error

Step 1 – Write the code

First cài đặt the code you want lớn upload

Step 2 – Connect the Board

You can connect now you arduino nano board to lớn your PC.


Step 3 – Choose the correct Port & Board

I Arduino IDE, you can have to select the correct port and board.

Tools —> Boards —> Arduino NanoTools —> Port —->

Step 4 – Select “Old Bootloader” (The Key)

Now you have khổng lồ select old bootloader by –

Tools —> Processor —> Atmega32P (OlBootloader)

Arduino Nano Code Upload Error Solved

Step 5 – Compile the Code

Now you can go ahead và compile the code

Step 6 – Upload

Once the code is compiled, you can now easily upload the code to your Arduino by clicking the upload button.


Công khai: ucozfree.com là website Tổng phù hợp Ẩm Thực - trò chơi hay với Thủ Thuật bậc nhất VN, ở trong Chocopie Vietnam. Mời thính trả đón xem.