platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
79 stars 105 forks source link

pls update to include adafruit ArduinoCore-samd 1.5.9 #89

Closed deladriere closed 4 years ago

valeros commented 4 years ago

Resolved in abbfb1b6ca74c27e8ca6e47e9132a4c31c883d05. Please re-test with upstream version http://docs.platformio.org/en/latest/platforms/atmelsam.html#upstream

deladriere commented 4 years ago

@valeros I still have a compile error Here is my platformio.ini

[env:upstream_develop] platform = https://github.com/platformio/platform-atmelsam.git board = adafruit_feather_m0 build_flags = -D USE_TINYUSB framework = arduino lib_deps = Adafruit TinyUSB Library@0.6.0 MIDI Library@4.3.1 SSD1306Ascii@1.2.4 monitor_speed = 115200

I still have this error : src/main.cpp: In function 'void setup()': src/main.cpp:376:12: error: 'class Adafruit_USBD_Device' has no member named 'setManufacturerDescriptor' USBDevice.setManufacturerDescriptor("Polaxis"); ^~~~~~~~~ src/main.cpp:377:12: error: 'class Adafruit_USBD_Device' has no member named 'setProductDescriptor' USBDevice.setProductDescriptor("Robovox"); ^~~~~~~~

It works fine with the Arduino IDE

valeros commented 4 years ago

Hi @deladriere ! Just tried a basic code snippet with USBDevice.setManufacturerDescriptor("Polaxis"); and everything works just fine. Could you please compile your project in verbose mode and attach here the entire log?

deladriere commented 4 years ago

hi @valeros here is the output

Robovox_Emy_midi_tiny *****$ pio run -v Processing upstream_develop (platform: https://github.com/platformio/platform-atmelsam.git; board: adafruit_feather_m0; build_flags: -D USE_TINYUSB; framework: arduino; lib_deps: Adafruit TinyUSB Library@0.6.0, MIDI Library@4.3.1, SSD1306Ascii@1.2.4; monitor_speed: 115200)

CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/adafruit_feather_m0.html PLATFORM: Atmel SAM 3.9.0 #204ace4 (git+https://github.com/platformio/platform-atmelsam.git) > Adafruit Feather M0 HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink) PACKAGES:

valeros commented 4 years ago

You're using an outdated upstream version of the platform, try to run pio update in the terminal window or delete /Users/your_user/.platformio/platforms/atmelsam@any_hash directory.

deladriere commented 4 years ago

I thought [env:upstream_develop] platform = https://github.com/platformio/platform-atmelsam.git would do the job

pio update gave me some errors

I deleted the all the /Users/your_user/.platformio/platforms/atmelsam@any_hash directories Now it compile just fine ! Many thanks