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.

TDA4VM: About compile time update

Part Number: TDA4VM


Hello,

I copied the bin file generated by DCC to the directory: /opt/vision_apps/dcc/<sensor_name>/<wdr_mode> , ran the "run_app_single_cam.sh" and pressed the u command, the image did not change. The whole process was done according to the manual: https://www.ti.com/lit/pdf/spracu7.

The logs is shown below:

     

And the raw images is attched in the zip file below:

raw images.zip

The same bin file can be effected through DCC "updates the current plugin DCC file" function. 

  • Can you please share MCU2 logs? You can enable the logs by running source vision_apps_init.sh before running camera app.

    It will also help if you can share XMLs of the dcc files. 

  • The logs are shown below:

    logs of 0820.txtlogs of 0233.txt

    And the XMLs file are shwn below:

    <?xml version="1.0" encoding="utf-8"?>
    <VISS_NSF4_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    	<!--this is comment-->
    	<dcc_name>viss_nsf4_cfg</dcc_name>
    	<dcc_header>
    		<camera_module_id>  233 </camera_module_id>
    		<dcc_descriptor_id>   1 </dcc_descriptor_id>
    		<algorithm_vendor_id>  1 </algorithm_vendor_id>
    		<tunning_tool_version> 0 </tunning_tool_version>
    	</dcc_header>
    	<!--=======================================================================-->
        <typedef>
            <viss_clamp type="struct">
    			<viss_clamp_vshort type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_vshort>
    
    			<viss_clamp_short type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_short>
    
    			<viss_clamp_long type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_long>
    
    		</viss_clamp>
        </typedef>
    
    	<!--=======================================================================-->
    	
    	<use_case val="1023">
    		<n-space>
    		
    			<region0 class="0">
    				<colortemperature val="2" min="0" max="20000">  </colortemperature>
    				<exposure val="1" min="0" max="10000000">  </exposure>
    				<gain val="0" min="0" max="1024">  </gain>
    			</region0>
    		
    		</n-space>
    		
    	    <parameter_package>
                <viss_clamp_dcc type="viss_clamp">
    			{
    				 //viss_clamp_vshort : For linear mode only this should be set to sensor Black Level
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  },
    				 //viss_clamp_short : To be used only in WDR mode. 
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  },
    				 //viss_clamp_long : To be used only in WDR mode.
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  }
    			  }
                </viss_clamp_dcc>
    		</parameter_package>
    		
    	</use_case>
    	
    	<!--=====================================================================-->
    </VISS_NSF4_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_NSF4_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    	<!--this is comment-->
    	<dcc_name>viss_nsf4_cfg</dcc_name>
    	<dcc_header>
    		<camera_module_id>  820 </camera_module_id>
    		<dcc_descriptor_id>   1 </dcc_descriptor_id>
    		<algorithm_vendor_id>  1 </algorithm_vendor_id>
    		<tunning_tool_version> 0 </tunning_tool_version>
    	</dcc_header>
    	<!--=======================================================================-->
        <typedef>
            <viss_clamp type="struct">
    			<viss_clamp_vshort type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_vshort>
    
    			<viss_clamp_short type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_short>
    
    			<viss_clamp_long type="struct">
    				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
    				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
    			</viss_clamp_long>
    
    		</viss_clamp>
        </typedef>
    
    	<!--=======================================================================-->
    	
    	<use_case val="1023">
    		<n-space>
    		
    			<region0 class="0">
    				<colortemperature val="2" min="0" max="20000">  </colortemperature>
    				<exposure val="1" min="0" max="10000000">  </exposure>
    				<gain val="0" min="0" max="1024">  </gain>
    			</region0>
    		
    		</n-space>
    		
    	    <parameter_package>
                <viss_clamp_dcc type="viss_clamp">
    			{
    				 //viss_clamp_vshort : For linear mode only this should be set to sensor Black Level
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  },
    				 //viss_clamp_short : To be used only in WDR mode. 
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  },
    				 //viss_clamp_long : To be used only in WDR mode.
    				  {
    						-1000, // dcoffset_clamp_value 0
    						-1000, // dcoffset_clamp_value 1
    						-1000, // dcoffset_clamp_value 2
    						-1000, // dcoffset_clamp_value 3
    				  }
    			  }
                </viss_clamp_dcc>
    		</parameter_package>
    		
    	</use_case>
    	
    	<!--=====================================================================-->
    </VISS_NSF4_CFG>
    

  • May I ask which SDK version you are using?

  • The version of SDK is 7.03.

  • OK.. That is old. Recommend moving to 8.0 or upcoming 8.1. Please try the attached patch and see if it fixes the issue. If it doesn't an upgrade will be needed.https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0402_2D00_app_5F00_single_5F00_cam_2D00_PC_2D00_Emulation_2D00_Mode_2D00_support.patch

  • OKay, but never used patches, can you tell me what is the command of use this patch?

  • Hello Wang,

    You may find some resources online. For e.g. https://www.thegeekstuff.com/2014/12/patch-command-examples/

    Please note that the patch needs to be applied in vision apps with the option -p1.

    Regards,

    Mayank