renode/renode-docs

Uploading Sketch to emulated Arduino

Nileshhampiholi opened this issue · 1 comments

Hello,

I am using a Ubuntu system.
I followed all the steps carefully.

  1. Download Arduino Nano 33 BLE board.
  2. Install Arduino_TensorFlowLite same version as mentioned.
  3. run modprobe vhci_hcd
  4. When I run the example script --- s @scripts/complex/arduino_nano/nrf52840_arduinoIDE_integration.resc
  5. Port is available and provide required permissions.
  6. Upload sketch.

When I upload i it fails and I get the following error message and the port option in tools>ports is not highlighted anymore

Sketch uses 83560 bytes (8%) of program storage space. Maximum is 983040 bytes.
Global variables use 43936 bytes (16%) of dynamic memory, leaving 218208 bytes for local variables. Maximum is 262144 bytes.
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2061)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port '/dev/ttyACM0'.
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)
... 5 more
Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
... 6 more

I am also attaching an image for better understanding of all the steps I followed

Screenshot from 2021-11-21 19-16-25

This was wrongly closed due to an invalid commit message, reopening