Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:amba [2014/12/23 07:59] – darron | interfaces:amba [2022/07/29 01:23] (current) – [Resources] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== ARM Amba ==== | + | ==== ARM Amba UART ==== |
<wrap right> | <wrap right> | ||
{{: | {{: | ||
</ | </ | ||
- | ARM Amba UARTs are found on ARM systems such as the Raspberry Pi. | + | These UARTs are found on systems such as the Raspberry Pi. |
- | == Files at ARM == | + | === RPi === |
- | [[http:// | + | |
- | == Files at RPi == | + | The following guide is very old now and has mostly become obsolete. |
- | [[http:// | + | |
- | + | ||
- | ==== RPi ==== | + | |
By default, the UART is used as the Linux console, this must be disabled to allow general purpose operation. | By default, the UART is used as the Linux console, this must be disabled to allow general purpose operation. | ||
+ | |||
+ | The following script run as root can solve this. | ||
< | < | ||
#!/bin/sh | #!/bin/sh | ||
C=`awk '{ for (i = 1; i <= NF; ++i) { if ($i !~ /ttyAMA0/) { printf $i" " } } printf " | C=`awk '{ for (i = 1; i <= NF; ++i) { if ($i !~ /ttyAMA0/) { printf $i" " } } printf " | ||
echo $C > / | echo $C > / | ||
+ | sed -i ' | ||
</ | </ | ||
- | == / | + | High speed modes of operation are also not enabled by default and these should |
- | High speed modes of operation are also not enabled by default and these must be enabled | + | |
< | < | ||
- | init_uart_clock=64000000 | + | echo "init_uart_clock=64000000" >> / |
</ | </ | ||
+ | |||
+ | Reboot the RPi to apply all the settings. | ||
+ | |||
+ | ===RPi 3=== | ||
+ | |||
+ | The RPi 3 uses the UART for comms with the the built-in bluetooth module and presents a simple " | ||
+ | |||
+ | To swap the ports around to gain access to the faster port, do the following in config.txt | ||
+ | |||
+ | < | ||
+ | dtoverlay=pi3-miniuart-bt | ||
+ | </ | ||
+ | === Resources === | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ |