arduino-create-agent icon indicating copy to clipboard operation
arduino-create-agent copied to clipboard

exit status 74 - Portenta H7 detected, but loading sketch leads to serial disconnect

Open aliphys opened this issue 1 year ago • 2 comments

Summary

Arduino IoT Cloud identifies the Portenta H7 and is able to trigger a soft reset via the Arduino Create Agent. However, upload loading the sketch if faces an exit status 74 error. I have tested this on two different Windows laptops, with two different USB-c cables and two different Portenta H7 boards.

I am able to upload sketches via the Arduino IDE with a much higher success rate.

Note: I am debugging the communication between the Nicla Sense ME connected via ESLOV to the Portenta H7 to the IoT Cloud. There are several communication issues. This is my attempt at breaking down the issue to make it repeatable.

Steps to replicate

  1. Install Arduino Create Agent
  2. Go to https://create.arduino.cc/iot/devices and click on Add
  3. Select Set up an Arduino device
  4. The Portenta H7 is automatically detected. Click on Configure and select Next to proceed with the default name
  5. With the WiFi connection selected, click on Next again
  6. The Make your device IoT-ready window appears.
  7. Alternatively, it is possible to double press the reset button to get the green LED to blink.

Expected Outcome

I can configure the device without issue.

Actual outcome

  • Step 1 (Uploading Sketch) is unable to complete.
    • image
  • When the reset buttun is pressed twice (sometimes) step 1 and 2 gets completed and instead step three fails.
    • https://user-images.githubusercontent.com/75624145/228977808-0d766b70-2609-43d5-96a0-82db1fa29560.mp4
  • The device constantly connects and reconnects.
    • https://user-images.githubusercontent.com/75624145/228977901-ed89bcfa-8896-486f-a019-e7c66c74d071.mp4
  • The solution to bring back the board to life, is to double press the reset button, then upload a sketch via the IDE

I have documented my previous experience with the unstable Serial port here:

  • https://github.com/arduino/arduino-ide/issues/1336
  • https://github.com/arduino/arduino-ide/issues/1306

aliphys avatar Mar 30 '23 22:03 aliphys