frg-fossee/eSim-Cloud

Unable to execute different .ino codes for different Arduinos

rinon13 opened this issue · 1 comments

Description: When two different .ino codes are copied to two different Arduinos, the 1st Arduino's .ino code is overwritten by the 2nd one.

Steps to Reproduce

image

  1. Connect as shown above or take circuit from Gallery (Two Arduinos)
  2. Copy .ino code to first Arduino
void setup(){
	pinMode(13, OUTPUT);
}

void loop(){
	digitalWrite(13, HIGH);
    delay(1000);
	digitalWrite(13, LOW);
    delay(1000);
}
  1. Copy .ino code to second Arduino
void setup(){
	pinMode(12, OUTPUT);
    digitalWrite(12, HIGH);
}

void loop(){
}
  1. Check the .ino code of the first Arduino
  2. The .ino code of the first Arduino would have been overwritten by the second one
  3. If a different .ino code is copied/written to the first Arduino, the second one's code would also get overwritten

Expected Behavior: The .ino code of the respective Arduinos should not affect the other Ardionos. Different n number of .ino codes should be able to be written for n number of Arduinos.

Video of the process mentioned above:
Arduino_Parallel_Execution_Issue.webm

Additional information: The LED of Arduino 2 blinking even though the code does not provide any LOW input is a bug. (Already mentioned in Issue #476 ).

Version and OS:

  • OS: Ubuntu 22.04.1 LTS
  • Browser: Firefox 110

Tested on:

  • develop
  • simulation.iitbx.in

Fixed in #479