Manage the Arduino Mbed-OS boards¶
The Arduino Mbed-OS platform includes the Arduino Nano 33 BLE Sense based on the nRF52840 MCU, the Arduino Nano RP2040 Connect based on the RP2040 MCU and the Arduino Giga R1 based on the dual-core STM32H747XI.
Install¶
Install the boards¶
Arduino Nano 33 BLE Sense¶
To install the Arduino Nano 33 BLE Sense board,
-
Ensure Arduino-CLI is installed.
-
Open a Terminal window.
-
Run
arduino-cli core install arduino:mbed_nano
Arduino Nano RP2040 Connect¶
There are two options for the Arduino Nano RP2040 Connect board.
To install the official Arduino core package based on on Mbed-OS,
-
Ensure Arduino-CLI is installed.
-
Open a Terminal window.
-
Run
arduino-cli core install arduino:mbed_rp2040
As an alternative for better performance and compatibility,
- Use the Raspberry Pi Pico RP2040 platform on the Arduino Nano RP2040 Connect board.
Arduino Giga R1¶
To install the Arduino Nano 33 BLE Sense board,
-
Ensure Arduino-CLI is installed.
-
Open a Terminal window.
-
Run
arduino-cli core install arduino:mbed_giga
Install the udev rules for Linux¶
Linux requires udev rules included in the bash script.
#!/usr/bin/env bash
arduino_mbed_rules () {
echo ""
echo "# Arduino Mbed bootloader mode udev rules"
echo ""
cat <<EOF
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1fc9", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", MODE:="0666"
EOF
}
OS="$(uname -s)"
case "$OS" in
Linux*)
if [ "$EUID" -ne 0 ]; then
if [ -e "${PWD}/post_install.sh" ]; then
echo
echo "You might need to configure permissions for uploading."
echo "To do so, run the following command from the terminal:"
echo "sudo \"${PWD}/post_install.sh\""
echo
else
# Script was executed from another path. It is assumed this will only occur when user is executing script directly.
# So it is not necessary to provide the command line.
echo "Please run as root"
fi
exit
fi
arduino_mbed_rules > /etc/udev/rules.d/60-arduino-mbed.rules
# reload udev rules
echo "Reload rules..."
udevadm trigger
udevadm control --reload-rules
;;
esac
The bash script is valid for the Giga R1 and Nano RP2040 Connect boards.
For more information, please refer to
- Fix udev rules on Linux
- Set udev rules for Arduino Mbed OS boards
- ArduinoCore-megaavr/post_install.sh