Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3950

Troubleshooting • Uart and GPIO freeze

$
0
0
I have a setup of 2 applications running on raspberry PI 4. (I have this setup on 3 CM4 and 2 RPI4b). The problem is both application some time stops to receive GPIO raising/falling signal and some UART communication but not all and not all the time. It freezes for 5 to 10 secondes and I receive all the data and I didn't miss one packet. I receive all the uart communications. I also receive falling/raising edge notification on the app, but all with the same status (off).

This is my setup:
UART3 115200 baud (Always OK) --> App 1 (NodeJS)
UART4 1000000 baud (Sometime freezes) --> App 1 (NodeJS)
GPIO 27 Raising/Falling edge (Sometime freezes) --> App 1 (NodeJS)
GPIO 22 Raising/Falling edge (Don't know the status) --> App 1 (NodeJS)

UART5 115200 baud (Sometime freezes) --> App 2 (/usr/sbin/ttylog)

I had some overrun error on the UART5, but I made sure to not have any by reducing the quantity of data and it still appends.

It occured on 2 CM4 (the most recent installs), but not on the old one and not on the RPI4b.

I'm not sure what to look for.

Statistics: Posted by marc.gendron — Sat Sep 07, 2024 12:24 am



Viewing all articles
Browse latest Browse all 3950

Trending Articles