Using PI4 Buster OS
I need to have 2 serial ports
I'm using serial0 without any problem
my problem is the 2nd serial ....
When I use UART2 which is PIN28 I can read the data from the sensor - everything is working great
in the python code I'm opening /dev/serial1.
But when I reboot the PI - the PI won't boot up (freeze , I don't see nothing on connected screen) why is it? how to overcame this?
this is the /boot/config.txt file
Code: Select all
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=85
dtparam=i2c_arm=on
dtoverlay=i2c3
#dtoverlay=i2c4
#dtoverlay=i2c5
#dtoverlay=i2c6
#dtparam=i2s=on
dtparam=spi=on
#dtoverlay=spi1-2cs
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=12
#dtoverlay=mcp2515-can1,oscillator=8000000,interrupt=16
dtoverlay=spi-bcm2835-overlay
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
disable_splash=1
enable_uart=1
dtoverlay=uart2
so I thought to use another UART , UART5 (PIN 33)
but when I change in the config.txt to
Code: Select all
dtoverlay=i2c5
enable_uart=1
dtoverlay=uart5
/dev/serial1-4
also I only see this
Code: Select all
ls /dev/ttyAMA*
/dev/ttyAMA0 /dev/ttyAMA1
Thanks ,
