18
•
If you do not see the same group, you need to add yourself to that group and then restart your computer. You
cannot just log out and back in. To add yourself, use the following command:
Be very careful with this command! You need to be POSITIVE to include -a or you will remove yourself from the
sudo group and will not be able to install anything.
CODE: SELECT ALL
$ sudo usermod -a -G dialout username
•
Make sure to replace dialout with whatever group your system reports is the owner of your ttyUSB device.
Finally, if you did change your groups, you will need to restart your computer. You cannot just log out and
back in.
•
And seriously, if you do not include -a you are going to completely lock yourself out of your system. You can’t
install updates, you can’t change anything not directly owned by your user, you can’t add yourself back into
sudo. I did this one time and I just simply had to wipe my computer do a fresh install. I do not recommend it.
•
Writing the Firmware: Open the STM32CubeProgrammer application. Linux users may need to open it from
the command line:
CODE: SELECT ALL
$
~/path/to/unpacked/archive/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/
STM32CubeProgrammer
Above the right hand panel, select UART, and the correct port. The port will be named according to your Operating
•
System: on Linux devices it should be a ttyUSB port and an associated number, for example:
CODE: SELECT ALL
ttyUSB0
•
If a port is not listed, try refreshing the port list. If this doesn’t work, unplug the USB cable and try repeating
the boot process.
•
Once you have selected the correct port, click on “Connect”. Your device should be recognized immediately.
Next click on “Open file”. Find the firmware’s .bin file and open it. Click on “Download” and the firmware should
be installed within seconds. Click on “Disconnect” and you’re all done.
Summary of Contents for CLANK
Page 1: ...Chaos manual v 1 1...