How to Take (wipe) All Projects / Sketches Off of and Arduino.

41,561

6

7

Introduction: How to Take (wipe) All Projects / Sketches Off of and Arduino.

Sometimes you need to clear, wipe, erase, - whatever you want to call it - to run code on it from a different source, such as the Processing platform, and you don't want to run the code currently uploaded code. You've tried to upload a blank sketch and you get this Error Message:


core.a(main.cpp.o): In function `main':
C:\Program Files\Arduino\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup' C:\Program Files\Arduino\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'



Here how to do it.

Step 1: Remove All Unnecessary Hardware.

Remove all the unnecessary hardware and connect the Arduino to the computer.

(Yes, I'm using a spin off of the Arduino. It's still the same concept.)


(To get a RedBoard [ the spin off ] go here.)

Step 2: Upload the Sketch

Upload the attached sketch.

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    7 Discussions

    1
    electric guy
    electric guy

    4 years ago

    hi there and thanks
    but you don't have to wipe data off of ur arduino
    when you upload your new code the old one fades!
    thanks -eg

    0
    kidos100
    kidos100

    Reply 4 years ago

    I meant for this to help people who don't want a sketch that they already have on the arduino to be running when they use it with other programs that take direct control of the arduino. On such example is found here: https://www.instructables.com/id/RGBs-with-Arduino-and-Processing/

    0
    electric guy
    electric guy

    Reply 4 years ago

    plus(+) if you were gonna sell your arduino you might want it to have no code u were using so this would be a great way to get rid of it...thanks eg

    0
    electric guy
    electric guy

    Reply 4 years ago

    hi and i am not criticizing your inatructable...I like your idea!!! I was just stating you didn't have to do this...

    0
    AjayB4
    AjayB4

    Reply 4 years ago

    Nope i had a problem with it when i had first uploded the blink program and then i overwrote a program i had a problem.... Now its all fine

    0
    electric guy
    electric guy

    Reply 4 years ago

    what board were you using when this issue happened, and this inatructable helped you?

    0
    electric guy
    electric guy

    Reply 4 years ago

    well in general that's how it works........um what board care you using when that occurred?