Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
printf and viewing commands in the mac terminal
Sorry if this has been covered, I have looked through forums but not found a solution that works for me.
I want to view the printf text that the mbed creates on my computer. It's a mac, running 10.9.5. I'm not great with the terminal, but I can do basic tasks.
I've tried ls /dev/tty.* and found that my mbed is on: /dev/tty.usbmodem1412 (verified by unplugging mbed)
I then try the command /dev/tty.usbmodem1412 which as I understand should let me access the mbed in the temrinal.
I get:
-bash: /dev/tty.usbmodem1412: Permission denied
Googling this comes up with results for ubuntu users saying, make your user a member of dialout. However this group doesn't appear to exist on mac.
attempting:
sudo dseditgroup -o edit -a myusername -t user dialout
has the response:
Group not found.
Can anybody help please?
2 Answers
9 years, 10 months ago.
You forgot the 'screen' command. Try 'screen /dev/tty.usbmodem1412' after the prompt.
example: bash-3.2$ screen /dev/tty.usbmodem1412