What should be done to solve it? I have edited the board.txt file and none of my codes are getting verified it shows this error:

"Error reading file (C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt:0): Invalid line format, should be 'key=value' "

  • 3
    it is obvious that you made a mistake editing the file .... revert the file to its original content
    – jsotola
    Oct 23, 2019 at 18:24

1 Answer 1


You can either reinstall the Arduino IDE (it will replace the file), or copy the original code back in the file (if you have a copy somewhere).

See the link: https://code.google.com/archive/p/arduino/wikis/Platforms.wiki for more background in case you are interested.

(note: I cannot copy the content of the file in the answer since it is more than 30000 characters.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.