Skip to content

Commit e6fb623

Browse files
committed
doc/getting-started: add hint for correct access rights on serial device
1 parent 3ba49d5 commit e6fb623

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/doxygen/src/getting-started.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ serial interface:
239239
make term BOARD=samr21-xpro PORT=/dev/ttyACM1
240240
~~~~~~~~
241241

242+
For flashing and accessing the board via the serial interface, the current user
243+
needs to have the correct access rights on the serial device.
244+
The easiest way to ensure this is to add the current user to the group that is
245+
owning the serial device. For example, this can be achieved on Linux by issuing
246+
the following line, logging out and logging in again:
247+
248+
~~~~~~~~ {.sh}
249+
sudo usermod -aG $(stat --format="%G" /dev/ttyACM0) $USER
250+
~~~~~~~~
251+
242252
Note that the `PORT` macro has a slightly different semantic in `native`. Here
243253
it is used to provide the name of the TAP interface you want to use for the
244254
virtualized networking capabilities of RIOT.

0 commit comments

Comments
 (0)