Hi,
I have configured the LPUART2 configuration in the dts file and I am also getting the ttyLP1 file created successfully, but I want to change its baud rate.
It is currently set to BR 9600 but I want to change it to 115200 how can I do this?
LOGS:
root@imx93-11x11-lpddr4x-evk:~# stty -F /dev/ttyLP1
speed 9600 baud; line = 0;
-brkint -imaxbel
Thanks.
Hi @sbmd_1234!
I will be go deeper into it, the configuration can be done in device tree.
The fastest solution for this problem can be solved creating a service.
Create the service:
nano /etc/systemd/system/LPUART_CONFIG.service
Save the next content in the file:
[Unit]
Description="LPUART CONFIG"
[Service]
ExecStart=stty -F /dev/ttyLP1 115200
[Install]
WantedBy=multi-user.target
Enable the script in the startup/boot sequence following the
command:
systemctl enable LPUART_CONFIG.service
and reboot.
After that every time the LPUART should be configured in the correct baudrate.
Best Regards!
Chavira