Linux

    • Ubuntu 18.04 or newer / Debian stretch or newer
    • Ubuntu 14.04 and 16.04
    1. sudo apt install gdb-arm-none-eabi openocd qemu-system-arm
    1. sudo dnf install arm-none-eabi-gdb openocd qemu-system-arm
    • Arch Linux
    1. sudo pacman -S arm-none-eabi-gdb qemu-arch-extra openocd

    This rule lets you use OpenOCD with the Discovery board without root privilege.

    Create the file with the contents shown below.

    Then reload all the udev rules with:

    1. sudo udevadm control --reload-rules

    You can check the permissions by running this command:

    1. lsusb

    Which should show something like

    1. Bus 001 Device 018: ID 0483:374b STMicroelectronics ST-LINK/V2.1
    2. (..)

    Take note of the bus and device numbers. Use those numbers to create a path like /dev/bus/usb/<bus>/<device>. Then use this path like so:

    1. getfacl /dev/bus/usb/001/018 | grep user
    1. user::rw-

    Now, go to the next section.