37283
- 收藏
- 点赞
- 分享
- 举报
海思HI3519AV100适配imx283,MIPI有中断,VI pipe层帧全部丢弃
悬赏金¥ 100
已结题
使用飞凌主板OK3519A-C(芯片hi3519av100)连接 索尼IMX283CQJ-C sensor,编写测试程序text_imx283.c(参考附件)运行在主板侧,使用脚本配置sensor模式为mode 2a。
mipi rx 调试信息打印:
~ # cat /proc/umap/mipi_rx
Module: [MIPI_RX], Build Time[Sep 3 2020, 04:39:11]
-----MIPI LANE DIVIDE MODE---------------------------------------------------------------------------------------------
MODE LANE DIVIDE
1 8+4
-----MIPI DEV ATTR-----------------------------------------------------------------------------------------------------
Devno WorkMode DataRate DataType WDRMode ImgX ImgY ImgW ImgH
3 MIPI X1 RAW12 None 0 0 2748 1556
-----MIPI LANE INFO-----------------------------------------------------------------------------------------------------
Devno LaneID
3 8, 9, 10, 11, -1, -1, -1, -1
-----MIPI PHY DATA INFO------------------------------------------------------
PhyId LaneId PhyData MipiData LvdsData
0 0, 1, 2, 3 0x00,0x00,0x00,0x00 0x00,0x00,0x00,0x00 0x00,0x00,0x00,0x00
1 4, 5, 6, 7 0x00,0x00,0x00,0x00 0x00,0x00,0x00,0x00 0x00,0x00,0x00,0x00
2 8, 9,10,11 0x5c,0xe6,0x60,0x26 0x43,0x31,0x53,0x37 0x1b,0xc3,0x3e,0xc0
-----MIPI DETECT INFO----------------------------------------------------
Devno VC width height
3 0 2748 1556
3 1 0 0
3 2 0 0
3 3 0 0
-----PHY CIL ERR INT INFO---------------------------------------------
PhyId Clk2TmOut ClkTmOut Lane0TmOut Lane1TmOut Lane2TmOut Lane3TmOut Clk2Esc ClkEsc Lane0Esc Lane1Esc Lane2Esc Lane3Esc
0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0
-----MIPI ERROR INT INFO 1-----------------------------------------------------------
Devno Ecc2 Vc0CRC Vc1CRC Vc2CRC Vc3CRC Vc0EccCorrct Vc1EccCorrct Vc2EccCorrct Vc3EccCorrct
3 0 0 0 0 0 0 0 0 0
-----MIPI ERROR INT INFO 2-----------------------------------------------------------
Devno Vc0Dt Vc1Dt Vc2Dt Vc3Dt Vc0FrmCrc Vc1FrmCrc Vc2FrmCrc Vc3FrmCrc
3 0 0 0 0 0 0 0 0
-----MIPI ERROR INT INFO 3-----------------------------------------------------------
Devno Vc0FrmSeq Vc1FrmSeq Vc2FrmSeq Vc3FrmSeq Vc0BndryMt Vc1BndryMt Vc2BndryMt Vc3BndryMt
3 0 0 0 0 0 0 0 0
-----MIPI ERROR INT INFO 4-----------------------------------------------------------
Devno DataFifoRdErr CmdFifoRdErr Vsync CmdFifoWrErr DataFifoWrErr
3 0 0 0 0 0
-----ALIGN ERROR INT INFO--------------------------------------
Devno FIFO_FullErr Lane0Err Lane1Err Lane2Err Lane3Err Lane4Err Lane5Err Lane6Err Lane7Err Lane8Err Lane9Err Lane10Err Lane11Err
3 0 0 0 0 0 0 0 0 0 0 0 0 0
vi 调试信息打印
~ # cat /proc/umap/vi
[VI] Version: [Hi3519AV100_MPP_V2.0.2.0 B050 Release], Build Time[Aug 2 2019, 17:42:54]
-------------------------------MODULE PARAM ---------------------------------------------------------------------------
DetectErrFrame DropErrFrame VbSource
0 0 Common
-------------------------------VI MODE --------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode
offline offline offline offline offline offline
-------------------------------VPSS MODE ------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode
offline offline offline offline offline offline
-------------------------------VI STITCH GRP ATTR----------------------------------------------------------------------
StitchGrp bStitch Mode MaxPTSGap PipeNum PipeId
-------------------------------VI DEV ATTR1----------------------------------------------------------------------------
DevID DevEn BindPipe Width Height IntfM WkM ComMsk0 ComMsk1 ScanM
3 Y Y 2748 1556 MIPI 1Mux fff00000 0 P
-------------------------------VI DEV ATTR2----------------------------------------------------------------------------
DevID AD0 AD1 AD2 AD3 Seq DataType DataRev BasW BasH HReph VReph WDRMode CacheLine DataRate
3 -1 -1 -1 -1 N/A RGB N 2748 1556 NONE NONE None 1556 X1
-------------------------------VI BIND ATTR----------------------------------------------------------------------------
DevID PipeNum PipeId
3 1 0
-------------------------------VI DEV TIMING ATTR----------------------------------------------------------------------
DevID DevTimingEn DevFrmRate DevWidth DevHeight
-------------------------------VI PIPE ATTR1---------------------------------------------------------------------------
PipeID BypassMode YuvSkip IspBypass Width Height PixFmt BitWidth NrEn SharpenEn CompressMode
0 BypassNone N N 2748 1556 RAW12 12 N N None
-------------------------------VI PIPE ATTR2---------------------------------------------------------------------------
DiscProPic SrcFRate DstFRate FrameSource RepeatMode VCNum IntType EarlyLine VbPoolId
N -1 -1 DEV NONE 0 START 0 -1
-------------------------------VI PIPE CROP ATTR-----------------------------------------------------------------------
PipeID CropEn CoorX CoorY Width Height
-------------------------------VI PIPE NR ATTR-------------------------------------------------------------------------
PipeID BitWidth CompressMode PixFmt RefSrc Intf Version OptMode
-------------------------------VI PIPE USER PIC ATTR-------------------------------------------------------------------
PipeID Enable ChnID Mode BgColor PicID Width Height Stride PixFmt PoolID PhyAddr
-------------------------------VI PIPE DUMP ATTR-----------------------------------------------------------------------
PipeID Enable Depth DumpType
-------------------------------VI PIPE BNR DUMP ATTR-------------------------------------------------------------------
PipeID Enable Depth
-------------------------------VI CHN ATTR1----------------------------------------------------------------------------
PipeID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt DynamicRange
0 0 1920 1080 N N -1 -1 SP420 LINEAR SDR8
-------------------------------VI CHN ATTR2----------------------------------------------------------------------------
CompressMode Depth Align VbPoolId
None 0 0 -1
-------------------------------VI EXTCHN ATTR1-------------------------------------------------------------------------
PipeID ChnID Source SrcChn Width Height SrcFRate DstFRate PixFmt DynamicRange CompressMode Depth
-------------------------------VI EXTCHN ATTR2-------------------------------------------------------------------------
Align VbPoolId
-------------------------------VI CHN EARLY INTERRUPT INFO-------------------------------------------------------------
PipeID ChnID Enable LineCnt
0 0 N 0
-------------------------------VI CHN LOW DELAY ATTR-------------------------------------------------------------------
PipeID ChnID Enable LineCnt Effect
0 0 N 0 N
-------------------------------VI CHN CROP INFO------------------------------------------------------------------------
PipeID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
0 0 N RIT 0 0 0 0 0 0 0 0
-------------------------------VI CHN ROTATION INFO--------------------------------------------------------------------
PipeID ChnID Rotation
0 0 0
-------------------------------VI CHN LDC INFO-------------------------------------------------------------------------
PipeID ChnID Enable Aspect XRatio YRatio XYRatio XOffset YOffset DistortionRatio
0 0 N N 0 0 0 0 0 0
-------------------------------VI CHN LDCV2 INFO-------------------------------------------------------------------------
-------------------------------VI CHN ROTATIO_EX INFO------------------------------------------------------------------
PipeID ChnID Enable ViewType Angle XOffset YOffset Width Height
0 0 N ALL 0 0 0 0 0
-------------------------------VI CHN SPREAD INFO----------------------------------------------------------------------
PipeID ChnID Enable OutW OutH Coef
0 0 N 0 0 0
-------------------------------VI EXTCHN FISHEYE ATTR------------------------------------------------------------------
PipeID ChnID Enable MntMode RgnNum BgEnable BgColor LMF HOffset VOffset TCoef FStrength
-------------------------------VI EXTCHN FISHEYE REGION ATTR-----------------------------------------------------------
PipeID ChnID RgnIndex ViewMode InRadius OutRadius Pan Tilt HorZoom VerZoom OutX OutY OutW OutH
-------------------------------VI DIS CONFIG INFO1---------------------------------------------------------------------
PipeID ChnID Mode Motion PdtType BufNum CropRatio FrmRate GyroRange GyroBitWidth CamSteady Scale
-------------------------------VI DIS ATTR INFO------------------------------------------------------------------------
PipeID ChnID DisChn Enable GdcBypass MovSub Roef Timelag ViewAngle bStillCrop HorLimit VerLimit Strength
-------------------------------ISP 2DofDIS INFO------------------------------------------------------------------------
PipeID Enable
0 N
-------------------------------VI SNAP ATTR INFO-----------------------------------------------------------------------
PipeID Type bLoadCCM FrameCnt rptTimes bZSL FrmDepth RollbaskMs Interval
-------------------------------VI SNAP STATUS INFO---------------------------------------------------------------------
Status bDoublePipe VideoPipe SnapPipe VcNum ProDelayInt
-------------------------------VI CHN OUTPUT RESOLUTION----------------------------------------------------------------
PipeID ChnID Enable Mirror Flip Width Height PixFmt VideoFmt DynamicRange CompressMode FrameRate
0 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
-------------------------------VI PIPE STATUS--------------------------------------------------------------------------
PipeID Enable IntCnt FrameRate LostFrame VbFail Width Height
0 Y 2277 0 2275 0 2748 1556
-------------------------------VI CHN STATUS---------------------------------------------------------------------------
PipeID ChnID Enable FrameRate LostFrame VbFail Width Height
0 0 Y 0 0 0 0 0
-------------------------------VI PIPE Statistic-----------------------------------------------------------------------
PipeID RecvPic LostCnt BufCnt CurSoftTm MaxSoftTm CurTaskTm MaxTaskTm LowBandWidth BeBufNum
0 0 0 0 0 0 0 0 0 0
-------------------------------VI HW STATISTIC-------------------------------------------------------------------------
ProcIdx HWCostTm MaxHWCostTm CycleCnt MaxCycleCnt
0 0 0 0 0
-------------------------------VI PROC OFFLINE IRQ STATISTIC----------------------------------------------------------
ProcIdx SubmitCnt IntCnt ListCnt TmOutCnt BusErrCnt DcmpErrCnt StartErrCnt NodeIdErrCnt
0 0 0 0 0 0 0 0 0
-------------------------------VI PROC ONLINE IRQ STATISTIC-----------------------------------------------------------
ProcIdx IntCnt FrmStartCnt FrmErrCnt FrmFlowCnt BusErrCnt DcmpErrCnt CfgLossCnt FirstIntPts
0 0 0 0 0 0 0 0 0
-------------------------------VI PROC COST TIME STATISTIC-----------------------------------------------------------
ProcIdx IntCntPerSec MaxIntCntPerSec CurIntCostTm MaxIntCostTm TotalIntCostTm IntTmPerSec MaxIntTmPerSec
0 0 0 0 0 0 0 0
-------------------------------VI DEV DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
3 2748 1556 12419
-------------------------------VI BAS DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
-------------------------------VI ISP DETECT INFO----------------------------------------------------------------------
ISPID ValidWidth ValidHeight TotalWidth
0 2748 1556 12419
~ #
VI调试打印显示所有的帧被丢弃,通过具体的错误日志查看:
~ # cat /dev/logmpp
3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[ vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:0 err intterupt status:0x11 !! EOF:0 BUFOVF:0 DATATHROW:0 .
VI DEV属性配置为:
static VI_DEV_ATTR_S DEV_ATTR_IMX283_BASE =
{
VI_MODE_MIPI,
VI_WORK_MODE_1Multiplex,
{0xfff00000, 0x00},
VI_SCAN_PROGRESSIVE,
{-1, -1, -1, -1},
VI_DATA_SEQ_BUTT,
{
/* port_vsync port_vsync_neg port_hsync port_hsync_neg */
VI_VSYNC_FIELD,
VI_VSYNC_NEG_LOW,
VI_HSYNC_PULSE,
VI_HSYNC_NEG_HIGH,
VI_VSYNC_NORM_PULSE,
VI_VSYNC_VALID_NEG_HIGH,
/*hsync_hfb hsync_act hsync_hhb*/
{0, 2748, 0,
/*vsync0_vhb vsync0_act vsync0_hhb*/
0, 1556, 0,
/*vsync1_vhb vsync1_act vsync1_hhb*/
0, 0, 0}
},
VI_DATA_TYPE_RGB,
HI_FALSE,
{2748, 1556},
{
{
{2748, 1556},
},
{
VI_REPHASE_MODE_NONE,
VI_REPHASE_MODE_NONE
}
},
{
WDR_MODE_NONE,
1556
},
DATA_RATE_X1
};
有哪位大佬是配过imx283 sensor,帮忙解答一下,不知道问题出现在什么地方
我来回答
回答5个
时间排序
认可量排序
认可0
认可0
认可2
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2019-05-14 17:38:53
-
2023-05-29 14:49:38
-
2019-06-05 16:16:50
-
2019-09-08 12:11:25
-
2019-05-16 11:44:42
-
2019-09-18 15:02:33
-
2020-03-31 11:04:59
-
2020-03-31 14:06:38
-
2020-06-02 13:55:36
-
2019-12-04 20:39:02
-
2019-04-02 20:46:57
-
2020-09-23 12:01:43
-
2019-02-22 16:16:38
-
2019-08-29 16:14:36
-
2020-02-27 15:55:00
-
2020-12-22 11:34:49
-
2020-03-05 18:02:15
-
2019-04-11 15:10:29
-
2018-11-30 09:29:13
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
最佳回答
被评为最佳回答,即可获得100元悬赏金额,先回答帮助题主解决问题,会更具优势
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认