Nvmimg_cc CSI debugging

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04
Hello vNIDIA experts,

I’m follwing the nVIDIA CSI debug instructions found here:

I made a script that reads the frame count registers for all VI channels (see below).
I am expecting to get some count greater than zero when I run the script while I’m running nvmimg_cc with a working setup (SEKO camera, captured image is displayed on the screen).
But all registers are returning zeros (0x00000000) !?

What am I doing wrong?

Here is the script I’m using:

echo on > /sys/devices/platform/host1x/15a00000.nvcsi/power/control
echo on > /sys/devices/platform/host1x/15c10000.vi/power/control
echo 1 > /sys/devices/platform/host1x/15a00000.nvcsi/acm/force_on
echo 1 > /sys/devices/platform/host1x/15c10000.vi/acm/force_on
devmem2 0x15f11070
devmem2 0x15f11470
devmem2 0x15f11870
devmem2 0x15f11c70
devmem2 0x15f12070
devmem2 0x15f12470
devmem2 0x15f12870
devmem2 0x15f12c70
devmem2 0x15f13070
devmem2 0x15f13470
devmem2 0x15f13870
devmem2 0x15f13c70
devmem2 0x15f14070
devmem2 0x15f14470
devmem2 0x15f14870
devmem2 0x15f14c70
devmem2 0x15f15070
devmem2 0x15f15470
devmem2 0x15f15870
devmem2 0x15f15c70
devmem2 0x15f16070
devmem2 0x15f16470
devmem2 0x15f16870
devmem2 0x15f16c70
devmem2 0x15f17070
devmem2 0x15f17470
devmem2 0x15f17870
devmem2 0x15f17c70
devmem2 0x15f18070
devmem2 0x15f18470
devmem2 0x15f18870
devmem2 0x15f18c70
devmem2 0x15f19070
devmem2 0x15f19470
devmem2 0x15f19870

framecounter-regs.txt (3.8 KB)

Hi @pirmin_weisser ,

We will check internally and update you. Thanks.

Please try to read Pixel Width of frame register and FRAME_COUNT register of channel 35 (0x15F19C34 and 0x15F19C70 respectively) and see if any non zero values.

The following is the note about channels. FYR.

Hello VickNV,

0x15F19C34 always reads 0x00000780

While nvmimg_cc is running, 0x15F19C7 almost always reads 0x00000000, very rarely I see 0x00001000
With nvmimg_cc stopped, 0x15F19C7 always reads 0x00002001

This is not what I expect. I expect the corresponding channel frame_count register to count up and see an increasing number for Frame Start and Frame End in the register. The counters in the register are 12 bit wide so they can count frames for 136 seconds (at 30fps) before they saturate.

What does value in register 0x15F19C34 indicate?

Why do you ask me to read channel 35 (only)?

The Note you pointed to says: “The vi_channel_no starts from 35 downwards for RGB, RAW, and YUV packed formats, and from 0 upwards for YUV planar and semiplanar formats.”

If I understand the note correctly, vi channel 35 would be for RGB. But the nvmimg_cc application uses RAW12 !?

Any ideas how I can get the debugging (registers) going?


We can also observe the same and are checking internally. Once any finding, will update you here.

About the note, it means for any of RGB, RAW, and YUV packed formats it starts from channel 35. Sorry for the unclear information.