I am trying to use a UART from within a container. I followed the instructions here:
However, when starting the Debug Session in VSCode, I get the error [Errno 13] Permission denied ‘/dev/ttymxc1’, see screenshot attached. This usually means that the user is not part of the dialout group, but even after adding the torizon user (which should be the one running the container!?), the error persists.
I modified the Dockerfile from the gps example and replaced the python script with my own. This works without issue, so I guess there must be some configuration issue within VSCode. As far as I can tell, the serial port is mapped correctly to the container. When changing the identifier to a non-existent one, i.e. /dev/ttymxc5, the error message also changes to a file not found error.
Any help is appreciated