mrdebug
Posts: 72
Joined: Sun Apr 07, 2013 6:08 pm

Raspberry 0 and on board uart

Thu Jan 24, 2019 9:58 am

Hi, I can't use the uart of my new raspberry 0 wireless.
If I insert the system sd in a raspberry 3, the uart works and I can use it.
What do you think about? Is my raspberry damaged?
www. ???
www. ???
GMT+1
Skype: mrdebug

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspberry 0 and on board uart

Thu Jan 24, 2019 10:38 am

mrdebug wrote:
Thu Jan 24, 2019 9:58 am
Hi, I can't use the uart of my new raspberry 0 wireless.
If I insert the system sd in a raspberry 3, the uart works and I can use it.
What do you think about? Is my raspberry damaged?
Did you enable uart in 'rasp-config'?
How are you trying to address it (please post any commands/code)

mrdebug
Posts: 72
Joined: Sun Apr 07, 2013 6:08 pm

Re: Raspberry 0 and on board uart

Thu Jan 24, 2019 11:20 am

Solved by using ttyS0 instead of ttyAMA0
www. ???
www. ???
GMT+1
Skype: mrdebug

User avatar
bensimmo
Posts: 4623
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Raspberry 0 and on board uart

Thu Jan 24, 2019 12:18 pm

ZeroW and Pi3's both use ttyS0 for the gpio UART
(Anything with WiFI/BT onboard)

Zero and Pi2/Pi's use ttyAMA0 for gpio UART.

To make it cross compatible use
/dev/serial0
It directs to the gpio UART no matter which Pi.

Return to “General discussion”