platformio-core: Platformio doesn't fetch samd core files for Servo Library

Configuration

Operating system: Ubuntu 14.04

PlatformIO Version (platformio --version): version 2.11.2.dev2

Description of problem

I am trying to build some code with the Servo library for Sparkfun’s samd21 mini breakout board. However, the code fails to compile. The errors I get are listed below:

Actual Results

In file included from src/blink_main.cpp:2:0:
.pioenvs/zero/Servo/Servo.h:67:2: error: #error "This library only supports boards with an AVR or SAM processor."
#error "This library only supports boards with an AVR or SAM processor."
^
scons: *** [.pioenvs/zero/src/blink_main.o] Error 1
===================================================== [ ERROR ] Took 1.46 seconds =====================================================

The content of platformio.ini:

[env:zero]
platform=atmelsam
framework=arduino
board=sparkfun_samd21_mini_usb
build_flags=-I include/ -I include/ros_lib 
lib_use=Wire, Servo

Source file to reproduce issue:

#include <Arduino.h>
#include  <Servo.h>
void setup() {
}
void loop() {
}

Additional info

The contents of the Servo directory for my environment are:

Servo/
├── avr
│   └── ServoTimers.h
├── sam
│   └── ServoTimers.h
└── Servo.h
2 directories, 3 files

I know that this is not correct since arduino 1.6.9 libraries contains a samd/ folder as well. Is this an issue with my workspace or the tool?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks a lot that reported.

Please don’t close this issue. @valeros will update library and close it.