You can't use both at the same time as they are both mapped to the same physical pins 8 & 10.ShadyProgrammer wrote:...I'm not trying to disable the default serial port, what I want to do is to enable the extra serial port
The Mods have moved the post to Compute Module Section and fixed the title, they are greatShadyProgrammer wrote:Apologies but I just noticed that I didn't add "Compute module" to the title. I'm working on Compute module 3. Two UARTs should be ready available on CM3 am I right ?klricks wrote:You can't use both at the same time as they are both mapped to the same physical pins 8 & 10.ShadyProgrammer wrote:...I'm not trying to disable the default serial port, what I want to do is to enable the extra serial port
Just to double check - you are using the correct (and matching) voltages on your source and destination? The Pi UART is 3v3 IIRC- make sure whatever is on the other end is also 3v3 or you are using a converter (MAX232 rings a bell). Getting the voltages wrong does result in garbled messages.ShadyProgrammer wrote:I've currently changed "brcm,pins" of "fragment1" on this file:
https://github.com/raspberrypi/linux/bl ... verlay.dts
to 32 and 33 instead of 14 and 15 in the hopes to get UART 1 working this way. I compiled it and moved to /boot/overlays/. Then I added it to /boot/config.txt . I am now able to communicate with UART 1 but unfortunately all I'm getting on the serial port is garbage. Is this the right to go about it at all ?
Also just to get some confusion out of the way when I research the internetz about it:
If I understand correctly UART 1 on pins 32, 33 is called PL011
The native (default) UART 0 on 14. 15 is called mini-UART
is this right ?
Code: Select all
force_turbo=1 enable_uart=1 # UART0 /dev/ttyAMA0 # this doesn't wirk yet, the log shows # $ sudo vcdbg log msg # Failed to load overlay 'uart0 # and I had to set the GPIO pins manually to A2 # raspi-gpio set 36 a2 # raspi-gpio set 37 a2 dtoverlay=uart0,txd0_pin=36,rxd0_pin=37 # UART1 /dev/ttyS0 dtoverlay=uart1,txd1_pin=32,rxd1_pin=33