Error writing to Generic8266

I cant seem to get the IDE to compile and write to a Generic8266. The following error pops up:

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

IDE 1.8.1
ESP8266 Microgear installed
ESP8266 Built-In installed

Im trying to flash the Generic (Sonoff) ESP8266 over a FDTI232RL and this works with no problem over ESPEasy. Same setup and port.

What Im I missing, when trying to use the IDE to flash? With the ESP8266 Microgear installed, the IDE should be able to see the Generic 8266?

Regards
Ramsing

Ramsing:
Board generic (platform esp8266, package esp8266) is unknown

This error is caused by having multiple versions of the esp8266 package installed. This can occur if you update to a new version of the package but the Arduino IDE fails to completely remove the last version. Please do this:

  • Tools > Board > Generic ESP8266 Module
  • File > Examples > ESP8266 > Blink
  • Sketch > Show Sketch Folder
  • Move up folder levels until you get to the esp8266 folder. Do you see multiple folders? If so, what are they?

Yes. I seem to have 2.2.0 and 2.2.0 in there.
Will delete 2.2.0 and try again.

Ramsing

Great! After deleting the old version folder restart the Arduino IDE, then it should work correctly.

Yes - Im back up and flashing sucsesfully.
Thanks a lot.

Ramsing