Go Down

Topic: No COM Port after Upload (Read 917 times) previous topic - next topic

voltage_at

Hi Guys,

i Had a strange issue on my MKR1000.

After Uploading a Simple Sketch on the Module, the COM Port doesnt came Up Again.

I tried the "double Tap Bootloader Method" and Uploading a Simple Sketch (Led Blinking) and after Compile and Uploading the Sketch the MKR Restarts and comes Up Without the "Bootloader Tag" in the Device Manager.
But NOW when i Upload my Sketch Again after "Sucessfull" Upload the COM Port doesnt Came Up Again.

Quote
#include <LiquidCrystal.h>
LiquidCrystal lcd(32, 31, 45, 44, 43, 42);

int messwert=0;
int TMP36 = A0;
int sensorwert;
int temperatur = 0;
int t=2000;

void setup()
{
lcd.begin(16, 2);
Serial.begin(9600);
}

void loop()
{
//Beginn Temperatur
  sensorwert=analogRead(TMP36);
  temperatur= map(sensorwert, 0, 410, -50, 150);
  delay(t);
  Serial.print(temperatur);
  Serial.println(" Grad Celsius");
//Ende Temperatur

//Beginn Feuchtigkeit
  messwert=analogRead(A1);
  Serial.print("Feuchtigkeits-Messwert:");
  Serial.println(messwert);
  delay(2000);
//Ende Feuchtigkeit

//Beginn LCD Ausgabe
  lcd.setCursor(4, 0);
  lcd.print(temperatur);
  lcd.setCursor(7, 0);
  lcd.print("Grad");
  delay (2000);
  //lcd.clear();
  lcd.setCursor(0, 1);
  lcd.print(messwert);
  lcd.setCursor(4, 1);
  lcd.print("Feuchte");
  delay (2000);
  lcd.clear();
//Ende LCD Ausabe
}

ballscrewbob

Hmm that's a "QUOTE" and not a CODE tag you used These are code tags ( </> )

MKR's will swap COM ports during and after an upload.

You can verify that by having device manager open and the COM LPT section expanded.

The COM port will change from the COM port it would normally use to the bootloader COM port and then back again.

If it goes to different ports other than those you might have exceeded windows COM port list limits.

EG if it is on COM 3 and then goes to COM 16 for bootloader and then goes to a totally different COM port other than 3 or 16 it might be worth cleaning up the unused com port list.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up