Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add udev rules for additional Mbed boards #690

Merged
merged 1 commit into from
May 26, 2023

Conversation

seaxwi
Copy link
Contributor

@seaxwi seaxwi commented May 26, 2023

The post_install.sh was apparently written specifically for the Nano RP2040 Connect, and does not set udev rules needed for the bootloader on (at least) these boards:

  • GIGA R1 WiFi (mbed_giga)
  • Nicla Sense ME (mbed_nicla)
  • Portenta H7 (mbed_portenta)

Although these boards are initially discoverable, sketch upload will fail with a Failed uploading: uploading error: exit status 74 message.

Changes in this PR

  • Update post_install.sh to add udev rules needed by GIGA R1 WiFi, Nicla Sense ME, and Portenta H7.
    • Most importantly, targetting the 2341 Vendor ID (Arduino).
    • Also targetting 1fc9 (NXP Semiconductors) and 0525 (PLX Technology), based on on this documentation.
  • Change the name of the created file from 60-rp2040.rules to 60-arduino-mbed.rules.

Tests

Before running post_install.sh (missing udev rules)

GIGA R1 WiFi ❌

Upload fails:

dfu-util: Cannot open DFU device 2341:0366 found on devnum 24 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

Nicla Sense ME ❌

Upload fails:

Error: unable to open CMSIS-DAP device 0x2341:0x60
Error: unable to find a matching CMSIS-DAP device

Failed uploading: uploading error: exit status 1

Portenta H7 ❌

Upload fails:

dfu-util: Cannot open DFU device 2341:035b found on devnum 27 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

After running post_install.sh (new udev rules added)

GIGA R1 WiFi ✅

Upload successful.

Nicla Sense ME ✅

Upload successful.

Portenta H7 ✅

Upload successful.

@sebromero
Copy link
Collaborator

@facchinm Let's include this in the release. ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants