Closed deladriere closed 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
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?
hi @valeros here is the output
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:
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.
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
Resolved in abbfb1b6ca74c27e8ca6e47e9132a4c31c883d05. Please re-test with upstream version http://docs.platformio.org/en/latest/platforms/atmelsam.html#upstream