-
Notifications
You must be signed in to change notification settings - Fork 433
cannot get UART interface to work with RPI3B+ during NOOBS install #536
Comments
PS: UART works fine on the installed OS (Raspbian), once the RPI3 rebooted into the fresh system. |
Does https://www.raspberrypi.org/documentation/configuration/uart.md help? Although obviously there'll be some differences between the "full Linux" of Raspbian and the "cutdown Linux" buildroot used by NOOBS. |
Hello @lurch Andrew,
What puzzles me is that in the I'll post here any insights I'll get on my way. |
As far as NOOBS is concerned, the device-tree stuff is just about configuring the hardware: routing the serial ports and setting the appropriate clock frequency. There are no hciuart (bluetooth) services within NOOBS to worry about (In fact it's something that I'd like to add in order to get a bluetooth keyboard working, but that's another story!) |
I dunno if it was a typo in your earlier comment, but IIRC the |
I suspect that might be the problem - it's not just in his comment, but displayed in his paste of recovery.cmdline. In my PINN (should be the same) I can see /dev/ttyAMA0. |
|
The problem with tiny purple letters on a black screen, is I can't read them properly! 😉 |
If only you had a UART connection that you could copy'n'paste from... 🤣 |
🤣 and I was working over SSH, so I could have copied it! |
Hello everybody,
thank you for having created NOOBS!
I have been using it since 3 years. A client of mine builds devices that are a combination of a Raspberry PI and their custom hardware, attached via the UART interface. The custom hardware has an LED that displays the status of the device. The LED is talked to via UART – not by switching on an output PIN, but by sending a command via UART.
A user can reset the device, in which case, NOOBS reinstalls the system.
The LED should indicate that NOOBS is reinstalling.
This all works fine with RPI1 and 2 and an earlier version of NOOBS, where I was able to simply write to
/dev/ttyAMA0
.With the current NOOBS and RPI3B+, writing to
ttyAMA0
orttyS0
has no effect.What do I need to do to enable UART either ttyAMA0 or ttyS0?
Btw, I write the command to set the LED by writing to ttyAMA0 or ttyS0:
This is run from
buildroot/package/recovery/init
.I am aware that for RPI3B+ the ttyAMA0 is now used by Bluetooth. So I tried writing to
/dev/ttyS0
or/dev/ttySerial0
. This does not work.I then added the
dtoverlay=pi3-disable-bt
torecovery.cmdline
and tried writing to/dev/ttyAMA0
. Nothing happens.My recovery.cmdline looks like this:
I removed any
console=....
entries.The baud rate is set correctly (according to stty which I executed in a terminal when NOOBS started).
I there anything else I need to do to get communication with the UART interface working?
Any help is greatly appreciated! I tried a full day and need to get the LED via UART working.
Thank you!
The text was updated successfully, but these errors were encountered: