<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SBC Board: Trouble executing grabber PreStart() in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1443649#M8445</link>
    <description>&lt;P&gt;Hi, Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;What did you change in your project except "&lt;SPAN&gt;isp_user_define.h"&lt;/SPAN&gt;?&amp;nbsp; Pls be careful when you modify ISP, because some change may be not supported by camera.&lt;/P&gt;
&lt;P&gt;Yu&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 01:04:29 GMT</pubDate>
    <dc:creator>Yu_Fu</dc:creator>
    <dc:date>2022-04-14T01:04:29Z</dc:date>
    <item>
      <title>SBC Board: Trouble executing grabber PreStart()</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1429303#M8341</link>
      <description>&lt;P&gt;I'm a newbie to S32DS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE ENVIRONMENT&lt;/P&gt;&lt;P&gt;I have S32DS 3.4.3 with VSDK 1.7 installed, and I have the SBS-S32V234 development board, which has two MIPI camera's connected. The camera type is OV10640CSP-S32V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE CHALLENGE&lt;/P&gt;&lt;P&gt;As a first step, I want to stream video from one of the camera's to the HDMI output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE SETUP&lt;/P&gt;&lt;P&gt;I first created an ISP project based upon ov10640_default, and emitted it to my Linux A53 application project without problems.&lt;/P&gt;&lt;P&gt;Following guidance from an NXP tutorial, I have tailored some defines in isp_user_define.h for the camera as follows, which I think is correct:&lt;/P&gt;&lt;P&gt;#define WIDTH_DDR 1288&lt;BR /&gt;#define HEIGHT_DDR 732&lt;BR /&gt;#define M_NUM_OUT_LINES (732)&lt;BR /&gt;#define MULTITRIGGER 0&lt;BR /&gt;#define DDR_OUT_BUFFER_CNT 6&lt;BR /&gt;#define LOOP_NUM 30&lt;/P&gt;&lt;P&gt;#define DCU_BPP DCU_BPP_24&lt;/P&gt;&lt;P&gt;In addition, this is what my io_config() function looks like:&lt;/P&gt;&lt;P&gt;void io_config(sdi_grabber *lpGrabber)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;// *** prepare IOs ***&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sdi_FdmaIO *lpFdma = (sdi_FdmaIO*)lpGrabber-&amp;gt;IoGet(SEQ_OTHRIX_FDMA);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;// modify DDR frame geometry to fit display output&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SDI_ImageDescriptor lFrmDesc = SDI_ImageDescriptor(WIDTH_DDR, HEIGHT_DDR, RGB888);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;lpFdma-&amp;gt;DdrBufferDescSet(FDMA_IX_CAM_OUTPUT, lFrmDesc);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;//*** allocate DDR buffers ***&lt;BR /&gt;&amp;nbsp; &amp;nbsp;lpFdma-&amp;gt;DdrBuffersAlloc(FDMA_IX_CAM_OUTPUT, DDR_OUT_BUFFER_CNT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;THE PROBLEM&lt;/P&gt;&lt;P&gt;After compiling the app, and entering debug mode, stepping through io_config is fine, but the subsequent call returns -1, which indicates an error:&lt;/P&gt;&lt;P&gt;LIB_RESULT result = lpGrabber-&amp;gt;PreStart();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a bit unsure of what else I can look for to diagnose this, and the error code is quite unhelpful.&lt;/P&gt;&lt;P&gt;Can anybody think of a few things I can try or check to resolve this?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 12:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1429303#M8341</guid>
      <dc:creator>RobShand</dc:creator>
      <dc:date>2022-03-16T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: SBC Board: Trouble executing grabber PreStart()</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1443649#M8445</link>
      <description>&lt;P&gt;Hi, Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;What did you change in your project except "&lt;SPAN&gt;isp_user_define.h"&lt;/SPAN&gt;?&amp;nbsp; Pls be careful when you modify ISP, because some change may be not supported by camera.&lt;/P&gt;
&lt;P&gt;Yu&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 01:04:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1443649#M8445</guid>
      <dc:creator>Yu_Fu</dc:creator>
      <dc:date>2022-04-14T01:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: SBC Board: Trouble executing grabber PreStart()</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1443913#M8446</link>
      <description>&lt;P&gt;Hi Yu,&lt;/P&gt;&lt;P&gt;Thanks for responding. I actually resolved the problem. The ISP does not generate the proper source for this camera, so I wrote my own one, which I submitted to NXP who are keen to build it in their nest BSP release.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 07:58:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/SBC-Board-Trouble-executing-grabber-PreStart/m-p/1443913#M8446</guid>
      <dc:creator>RobShand</dc:creator>
      <dc:date>2022-04-14T07:58:55Z</dc:date>
    </item>
  </channel>
</rss>

