Hi all, I am trying to run the basic Hello World basic code with my students and keep getting the error message below. Please help

Error reading file (C:\Users\Kandace1\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\platform.txt:0): Invalid line format, should be 'key=value'

Error compiling for board Arduino Nano Every.

I have changed the board to Arduino Nano and the COMP is set correctly to the highest.

I am using the legacy version 1.8.7. I have followed the pathway from the error message and there is nothing logged in this folder.

Am "Arduino Nano Every" is not the same as an "Arduino Nano". Which Arduino board do you have?

The COM port you need to select is the one that the OS has chosen. It may not necessarily be the highest one.

2 Likes

Hi @kcouts. It seems that one of the configuration files of the "Arduino AVR Boards" platform has been corrupted somehow. You should be able to fix it by downgrading and then upgrading the platform again, which will install a fresh copy.

I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "Arduino AVR Boards" entry. Click on it.
    A "Select version" menu will appear in the entry.
  4. Click on the "Select version" menu.
    The menu will expand.
  5. Select "1.8.5" from the menu.
  6. Click the "Install" button on the "Arduino AVR Boards" entry.
  7. Wait for the installation to finish.
  8. Click the "Update" button on the "Arduino AVR Boards" entry.
  9. Wait for the update to finish.
  10. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

Now try compiling or uploading to your board again. Hopefully the error will no longer occur.

1 Like

I faced the same issue with my Arduino setup, and here’s what worked for me. First, try reinstalling the Arduino IDE to ensure there are no corrupted files. Then, navigate to the Arduino15 folder and delete the "packages" folder to force the IDE to redownload necessary files. You can also try updating the board manager and reinstalling the Nano Every package. Lastly, ensure that your COM port settings match the one assigned by your computer. These steps resolved the issue for me, so hopefully, they help you too.

You may find the FREE apps described on my page here useful - for the students too

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.