tcoder
Posts: 20
Joined: Sun Sep 18, 2016 5:05 pm

Can't find ttyAMA0 on a Pi Zero running Raspian

Sun Sep 18, 2016 9:47 pm

I'm running a C++ program on a Raspberry Pi Zero and it can't find /dev/ttyAMA0 on a Raspberry Pi Zero. I get
Unable to open serial device: No such file or directory
.. I'm running Raspian Jesse. My command is:
fd= serialOpen("/dev/ttyAMA0", 115200);

I searched for ttyAMA0 in the directory /etc, but can't find anything there.

tcoder
Posts: 20
Joined: Sun Sep 18, 2016 5:05 pm

Re: Can't find ttyAMA0 on a Pi Zero running Raspian

Mon Sep 19, 2016 3:14 pm

I found a resolution to this problem on this webpage: http://spellfoundry.com/2016/05/29/conf ... ding-pi-3/ . I followed the instructions and when I was finished, there was a ttyAMA0 in the /dev directory. Now the function returns a valid handle.

Terry

Return to “Raspberry Pi OS”