MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    Error uploading code to Arduino Nano

    Arduino
    2
    5
    3120
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anudeep last edited by

      Please refer to my code and error log and tell the error!!
      I have a new version of Arduino Nano and I'm trying to upload code to it. But it's showing the following error. Can u help me rectify it!!

      Code:

      String str = "";
      void setup() {
        Serial.begin(9600); // Starts the serial communication
      }
      
      void loop() {
        if(Serial.available() > 0){
          str = Serial.readString();
          Serial.println(str);
          }
      }
      

      Error Log:

      Build options changed, rebuilding all
      Sketch uses 3276 bytes (10%) of program storage space. Maximum is 30720 bytes.
      Global variables use 204 bytes (9%) of dynamic memory, leaving 1844 bytes for local variables. Maximum is 2048 bytes.
      avrdude: stk500_recv(): programmer is not responding
      avrdude: stk500_cmd(): programmer is out of sync
      avr_read(): error reading address 0x0000
          read operation not supported for memory "flash"
      avrdude: failed to read all of flash memory, rc=-2
      avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00
      avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00
      

      Image of Error:
      e93e34ab-e0dc-4992-b6d1-c463fdb65c0f-image.png

      1 Reply Last reply Reply Quote 0
      • salmanfaris
        salmanfaris last edited by salmanfaris

        Hi @Anudeep ,

        There is no compilation error, only problem while uploading to Arduino nano and this error might due to several reasons like a bad USB cable. etc we need to dig more.

        to get more details about this error, can you please enable the verbose. file -> preference -> show verbose output during upload

        and also keep in mind Arduino IDE automatically set NANO board with a fresh bootloader. but boards sold from January 2018 have this new bootloader, while boards manufactured before that date have the old bootloader. so we need to set them manually before uploading

        select the option from Tools -> Processor -> ATmega328p(old bootloader) to flash the old bootloader

        Untitled.png

        A 1 Reply Last reply Reply Quote 0
        • A
          Anudeep @salmanfaris last edited by

          @salmanfaris Yeah, I have checked the cable because I was able to upload to another Arduino Nano. But, I was not able to upload this new Arduino Nano.
          I have tried with both bootloader's new and Old... It's not working with both!!
          So, any help regarding this?

          1 Reply Last reply Reply Quote 0
          • salmanfaris
            salmanfaris last edited by salmanfaris

            @salmanfaris said in Error uploading code to Arduino Nano:

            There is no compilation error, only problem while uploading to Arduino nano and this error might due to several reasons like a bad USB cable. etc we need to dig more.
            to get more details about this error, can you please enable the verbose. file -> preference -> show verbose output during upload

            please share the verbose, to get more details

            1 Reply Last reply Reply Quote 0
            • salmanfaris
              salmanfaris last edited by

              @Anudeep Is that solved? if yes please share how you solved then next time we can save some time 😊

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Recent Posts

              • O

                The Yankees might attain a necessary pitching reinforcement towards commence the calendar year with straight rotator cuff tendinitis, Clarke Schmidt intended his instant rehab start out for Double-A Somerset upon April 10, tossing 4 scoreless innings with 4 strikeouts, no walks and 4 hits permitted. He threw 61 pitches, 45 of them getting me, it simply above turning out to be back again within that video game come to feel and the aggressive spirit, Schmidt explained soon after his outing. pitching a very little in another way inside of choice counts, blending and matching and using artistic out was a single of the 3 projected Yankees starters who ended up befelled through destruction ahead of the month to month time begun. Yankees ace Gerrit Cole underwent period-finishing Tommy John surgical procedures inside mid-March, though reigning AL Newbie of the 12 months champion Luis Gil is sidelined with a specifically lat anxiety. Schmidt afterwards connected them upon the hurt record Though he felt his shoulder bark and was scratched in opposition to his March 16 Grapefruit League start was Clarke's instant rehab begin with the Patriots as soon as he struck out 7 earlier mentioned 3 1/3 scoreless innings upon 52 pitches for Somerset upon April 5 https://www.nyyankeesprostore.com/Jacoby_Ellsbury_Jersey-28
                . Yankees supervisor Aaron Boone mentioned upon April 5 that they predicted just before this getting Schmidt's ultimate commence rejoining the significant league rotation upon April 15 or 16 vs. Kansas Metropolis. Schmidt reiterated just after his minute start out that the expect was in the direction of return this foreseeable future 7 experienced a 2 https://www.nyyankeesprostore.com/Alex_Rodriguez_Jersey-9
                . 85 Technology with 93 strikeouts inside 85 1/3 innings for the Yankees closing period. The specifically-hander neglected 3 1/2 weeks inside 2024 thanks toward a straight lat anxiety prior to returning inside early September and creating 3 begins inside the playoffs, which includes Activity 3 of the Entire world Max Fried, Carlos Rodn and Marcus Stroman in all probability penciled into the rotation for the Yanks, Schmidt's return will stress a alternative between Carlos Carrasco and Will Warren, the latter of whom is made up of Tiny League Programs becoming.

                https://www.nyyankeesprostore.com

                • read more
              • @codelery Awesome. That's great news. Kudos to @rafitc99 . 🙌

                @codelery Please keep us updated about your project, looking forward to seeing it in action 🤩

                • read more
              • C

                @rafitc99 I changed the buffer and that solved the problem. Thanks a lot for coming to my rescue.

                • read more
              • C

                @salmanfaris I did change the buffer size and everything is working perfectly. Thanks coming to my rescue.

                • read more
              • @codelery said in Help needed: Arduino Wireless Notice Board project:

                I am using the hardware serial (pin 0 and 1 on Arduino Uno)

                As @rafitc99 mentioned, you need to expand the Serila buffer, in the hardware serial also the Arduino board package implements a 64-byte ring buffer for send and receive on the hardware serial messages. So you need to change that to 256 as per your message length.

                • read more
              By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
              Copyright © 2023 MakerGram, All rights reserved.
              Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct