hello jyhwang1,
please visit Jetson Linux Archive, for instance, jetson-linux-r3640 to download [Driver Package (BSP) Sources] for the public release source package.
here’s discarding frame error report by VI engine.
discarding frame it’s due to unsuccessful capture state, it’s VI dropping frames and issue a requeue for new buffers.
as you can see…
$public_sources/r36.4.0/Linux_for_Tegra/source/kernel_src/nvidia-oot/drivers/media/platform/tegra/camera/vi/vi5_fops.c
static void vi5_capture_dequeue(...)
{
...
} else if (descr->status.status != CAPTURE_STATUS_SUCCESS) {
...
} else {
dev_warn(vi->dev,
"corr_err: discarding frame %d, flags: %d, "
"err_data %d\n",
descr->status.frame_id, descr->status.flags,
descr->status.err_data);
frame_err = true;
you may see-also CaptureStatusCodes and CaptureStatusFlags from below for more details.
the err_data content it depends on the value of CaptureStatusCodes.
$public_sources/r36.4.0/Linux_for_Tegra/source/kernel_src/nvidia-oot/include/soc/tegra/camrtc-capture.h
let me give you another example, i.e. err_data=4194404.
it represents below…
CAPTURE_STATUS_NOTIFY_BIT_CSIMUX_FRAME_PXL_ENABLE_FAULT
CAPTURE_STATUS_NOTIFY_BIT_CSIMUX_FRAME_RESERVED_1
CAPTURE_STATUS_NOTIFY_BIT_CSIMUX_STREAM_FIFO_OVERFLOW
anyways,
please examine your sensor pixel clock settings, it must be set correctly to avoid potential issues.
please see-also Camera Driver Porting if you’ve porting drivers from previous Jetpack release version.
you may dig into Debugging Tips section for troubleshooting.