This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、TI 专家、
1.将 CSIRX_DRV_ENABLE_DEBUG 的值从0更改为1,无法在终端控制台上找到"GT_TRACE"日志。 如何配置它? (版本7.2 SDK)
?使用"pdk_jacinto_07_01_05_14/packages/ti/drv/csirx/scripts/VLAB 下的 python 脚本工具(pdk_jacinto_07_01_05_14/packages/ti/drv/csirx/examples)和"pdk_jacinto_07_01_05_14/packages 目录下的示例
您好!
我认为 python 脚本用于 vlab、PC 仿真模式。 这不能在 EVM 上使用。
您到底面临什么问题? 请帮助我们理解。 是否要在 CSIRX 驱动程序中启用日志记录?
此致、
Brijesh
您好、Brijesh、
我有相同的问题。 我也在调试 CSIRx 驱动程序。 我不知道在哪里可以看到 GT_Trace 输出。
PSDK v7.2默认包含 Python 3并启用、因此可在 EVM 上使用。
root@j7-evm:~# python3 --version Python 3.8.2
尊敬的 Keelung Yang:
您能帮助我了解您面临的具体问题吗? 是否要启用 跟踪输出以获取调试消息?
此致、
Brijesh
要启用调试消息、请在 ti-processor-sdk-rtos-j721e-evm-07_01_00_11\pdk_jacinto_07_01_00_45\packages/ti\drv\csirx\include\csirx_cfg.h 文件中将 GT_DEBUG 添加到 CsirxTrace 中、然后重新生成 PDK 示例。
此致、
Brijesh
您好、Brijesh、
感谢您的快速回复。
我只想在/opt/vision_apps.中运行./run_app_single_cam.sh 时查看 csirx 的驱动程序调试日志
由于我已经跟踪了运行时序, 调用 Sensor_StreamOn()后,mipi CSI 时钟看起来是正确的。 我不知道 CSI_RX_IF_VBUS2APB_DPHY_STATUS 为何在值 0x00222206上没有变化。这就是我要调试 csirx 驱动程序的原因。
以下是从上电到流式传输的运行时间:
static int32_t Sensor_PowerOn(uint32_t chMask, void *pSensorHdl) { // Set SoC GPIO to high to power on Des(mipi csi output enabled defaultly) // Disable Des's mipi csi output since CSIRx is not initialized } static int32_t Sensor_Probe(uint32_t chId, void *pSensorHdl) { // Read & log Des/Der/Sensor info } static int32_t Sensor_Config(uint32_t chId, void *pSensorHdl, uint32_t sensor_features_requested) { // 1. Config Ser to receive streaming from Sensor // 2. Config Sensor to start streaming(Just for debug, since Des mipi csi output is disabled after powering on) // 3. Config Des to receive streaming from Ser } static int32_t Sensor_StreamOn(uint32_t chId, void *pSensorHdl) { // Enable Des mipi csi output }
尊敬的 Keelung Yang:
您能先从以下方面了解一下吗?
1、在驱动器数据结构中是否正确设置了通道数和通道位置?
2、根据传感器/解串器的输出速率、通道速度设置是否正确?
3、您能否确保仅在调用 VerifyGraph 后启动解串器和传感器?
此致、
Brijesh
您好、Brijesh、
1.是的。 在我们的 DES 中、它是4通道物理层、而在 UB960 rawtest 传感器中、它是数据通道映射。 我已经向我们的硬件团队确认了这些问题。
2.我已将 DES DPLL 速度更改为800Mbps、以满足 TDA4设计速度400MHz 的要求。 Sensor/Ser/Des 之间的 PCLK 和带宽限制都已建立。
3.调用 VerifyGraph 之前禁用 DES CSI 输出,但 SENSOR_CONFIG()中的传感器仍在运行,因为 根据一些业务原因,我没有传感器数据表来控制它。
最后、它现在可以工作了。 VISION_APPS 中的单个 CAM 应用:它正在尝试创建和连接 图表中的 aewb 注释、无论传感器驱动程序中是否支持 aewb。 如果此问题仍然存在、我将在 PSDK v7.3中进行检查并打开新的线程。
但是、我的感受与原始作者 所问的相同:在什么地方或如何在 csirx 驱动程序中看到 GT_trace 日志输出?
我可以看到很多来自您的关于 MIPI CSI 的回复。 他们非常乐于助人。 再次感谢您的信息!
尊敬的 Keelung Yang:
请参阅此主题的第二次答复。 它介绍了如何启用 GT_TRACE。
由于现在捕获工作正常、我将关闭此线程。
此致、
Brijesh