Skip to content

Commit

Permalink
Added FAQ about PlatformIO
Browse files Browse the repository at this point in the history
Solution for Ethernet and pin definitions.
  • Loading branch information
CONTROLLINO-Support committed Nov 9, 2018
1 parent 40d3b5f commit b86c8f4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,20 @@ Please, try following steps:
- Connect USB cable
- Press Upload button in Arduino IDE
- Release Reset button when “Compiling sketch ...” message changes to “Uploading”

**11. Ethernet issues with PlatformIO **

Issue: Right now ethernet works for me out of the box in Arduino IDE, but I'd like to use PlatformIO and all my attempts to fix ethernet there have failed.

*Solution: Update the Arduino Ethernet library in PlatformIO. It is necessary to remove the old one and install the latest one (2.0.0 or higher). Manually update CONTROLLINO boards pin definition files. Override original pins_arduino.h for variant mega.*


Try following steps:
- Remove Arduino Ethernet library from PlatformIO and install the latest one (2.0.0 or higher)
- Install the CONTROLLINO library to PlatformIO
- (following steps assume that you have installed also the Arduino IDE with CONTROLLINO boards support)
- Copy AppData\Local\Arduino15\packages\CONTROLLINO_Boards\hardware\avr\3.0.2\variants\mega\pins_arduino.h to .platformio\packages\framework-arduinoavr\variants\mega\
- Copy pins_arduino.h for all CONTROLLINO variants from AppData\Local\Arduino15\packages\CONTROLLINO_Boards\hardware\avr\3.0.2\variants to appropriate folders in .platformio\packages\framework-arduinoavr\variants

Then Ethernet and also all other CONTROLLINO examples (like RS485) should work!

3 comments on commit b86c8f4

@ivankravets
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Please remove custom instruction for PlatformIO. Now, everything should work out of the box. See platformio/platformio-pkg-framework-arduinoavr#17

@CONTROLLINO-Support
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
thanks for the hint. We will test it and remove it when everything is fine. Hopefully today :)

@CONTROLLINO-Support
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not removed, just updated as agreed in separate thread.

Please sign in to comment.