Other Parts Discussed in Thread: AM620
Tool/software:
Hi:
We use 2 C files to test to capture frame through 2 streams:vc0 and vc1.
The 1st app will cause board hangs when kill it and run it again.But the 2nd app can always run when kill it and run it again.
The 2 files both do these steps:
open file
set v4l2_foramt
request v4l2_requestbuffers
mmap buffers
querybuf
qbuf
stream on
Also add signal to do SIGTERM function, which will do these steps
msleep 50
stream off
close fd
munmap
The difference is 1st C file:
while 1 {
video0 dqbuf
video0 qbuf
video1 dqbuf
video1 qbuf
}
2nd C file is
pthread th0
pthread th1
th0 do while 1{
video0 dqbuf
video0 qbuf
}
th1 do while 1{
video1 dqbuf
video1 qbuf
}
If run kill cmd, both of them run the signal handler.
Then run it again, the 1st app causes board hangs. But 2nd app can run normally.
About regs of CSI2RX_STREAM_STATUS_REG:
all bits are 0 when kill 1st app
bit 31 and bit 8 are 1 when kill 2nd app
Could you help us find the reason to cause board hangs by using 1st app?