Arduino IDE 2.0.4 does not recognize Gemma V2 port

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
katalin_f
 
Posts: 4
Joined: Thu May 07, 2015 3:16 pm

Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by katalin_f »

Gemma v2 does not work with windows 10, port does not show up in
arduino IDE 2.0.4. Therefore, I am getting the following error message as expected:
Failed uploading: no upload port provided.
Managed to connect to circuit playground express, so I
know my cable and other settings are OK. I installed the Adafruit SAMD Board manager but Gemma v2 is not listed there.
I also tried using usb port 2.0 and a usb hub with no luck.
I did order 20 of them for a workshop and would like to know if it would it be possible to get the Gemma M0 instead,
according to the forums that seems to work with windows 10. I would need these ASAP. Also obviously one of them is open since I had to test it, so I am not sure if I can exchange that too.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by mikeysklar »

The Gemma V2 is not a SAMD board. It uses the ATtiny85 processor.

You will need to put the board into bootloader mode by hitting reset to see the serial port and upload code. There is a guide here:

https://learn.adafruit.com/introducing- ... rduino-ide

If you would prefer to use the Gemma M0 and bought these in the last 30-days we can help you with an exchange, but I think we can get you going with v2.

User avatar
katalin_f
 
Posts: 4
Joined: Thu May 07, 2015 3:16 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by katalin_f »

Ok since I have a black board, I added the Adafruit AVR Boards list,
chose Adafruit Gemma (ATiny85 @ 8MHz)
selected USBTinyISB Programmer,
The port is still grayed out and when
I push reset twice to go bootloader mode, still can't upload without a port selected
Tried using a usb hub too.
Is there a phone number I can call?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by mikeysklar »

All support goes through the forums.

There is a necessary driver installation for the Gemma v2 and Windows.

https://learn.adafruit.com/introducing- ... dows-setup

Have you verified that the USB cable you are using works with other microcontrollers? eg. Do you have a good USB data cable?

User avatar
katalin_f
 
Posts: 4
Joined: Thu May 07, 2015 3:16 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by katalin_f »

I already downloaded the driver and yes I have a working port/data cable, which I used to program my circuit playground express, ( same port/same cable/same IDE)

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by mikeysklar »

I'm tried running the same version of the Arduino IDE 2.0.4 and installed the Adafruit AVR Board Support Package 1.4.15 on my MacOS box. I was not able to upload code to the Gemma V2.

I switched to the 1.8.19 release and things worked as expected. The code uploaded when I hit the 'reset' button the gemma and then immediately clicked the upload button from the Arduino IDE.

This is the pulse example I uploaded.

Code: Select all

/*
  Pulse
  Pulses the internal LED to demonstrate the analogWrite function
 
  This example code is in the public domain.

  To upload to your Gemma or Trinket:
  1) Select the proper board from the Tools->Board Menu
  2) Select USBtinyISP from the Tools->Programmer
  3) Plug in the Gemma/Trinket, make sure you see the green LED lit
  4) For windows, install the USBtiny drivers
  5) Press the button on the Gemma/Trinket - verify you see
     the red LED pulse. This means it is ready to receive data
  6) Click the upload button above within 10 seconds
*/
 
int led = 1; // pulse 'digital' pin 1 - AKA the built in red LED

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  for (int i=0; i<256; i++) {
    analogWrite(led, i);  // PWM the LED from 0 to 255 (max)
    delay(5);
  }
  for (int i=255; i>=0; i--) {
    analogWrite(led, i);  // PWM the LED from 255 (max) to 0
    delay(5);
  }
}

User avatar
katalin_f
 
Posts: 4
Joined: Thu May 07, 2015 3:16 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by katalin_f »

Well, that worked, I can upload with legacy IDE.
Interestingly the port is still grayed out but it does upload, so I am happy.
Thanks for you help and patience.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Arduino IDE 2.0.4 does not recognize Gemma V2 port

Post by mikeysklar »

Thank you for confirming that the legacy 1.8.19 IDE works for upload.

I have been reviewing the open issues with the Arduino IDE github repo and it looks like the 2.0.4 release is not honoring the programmer setting. You can manually update the programmers.txt as a work around. In the meantime I'd stick to the legacy IDE until it is resolved.

https://github.com/arduino/arduino-ide/issues/591

Locked
Please be positive and constructive with your questions and comments.

Return to “Wearables”