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.

[ IPNC AM8127 ]How to print 2A debug information

Other Parts Discussed in Thread: DM385

Hi 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iae.h"

#include "ae_ti.h"
#include "ae_ti_priv.h"

extern IALG_Fxns AE_TI_IALG;

#define __DEBUG
#ifdef __DEBUG
#define AE_DEBUG_PRINTS
//#define dprintf printf
#define dprintf Vps_printf
//#define dprintf Iss_printf

Compiling ti814x-evm:m3vpss:debug:iss_drivers: alg/aewb/ti2a/ae/src/ae_ti.c
"alg/aewb/ti2a/ae/src/ae_ti.c", line 501: error: function declared implicitly
"alg/aewb/ti2a/ae/src/ae_ti.c", line 516: error: function declared implicitly
"alg/aewb/ti2a/ae/src/ae_ti.c", line 531: error: function declared implicitly
"alg/aewb/ti2a/ae/src/ae_ti.c", line 542: error: function declared implicitly

using printf,Vps_printf and Iss_printf are all compile fail!

how can I solove the quetion?

  • Hi Willis,

    I think these printfs may have been tested in standalone testbench environment and not IPNC RDK build environment. That is the reason you faced compile error.

    To print debug information from M3 to A8, please use Vps_rprintf() function. The 'r' stands for remote.

    Regards

    Rajat

  • add below code in the head of ae_ti.c, compile true and can print debug information

    extern Int32 Vps_printf(char * format, ... );

    thank you !

  • How can I print the AEWB values to a file, with time stamps, so i can correlate the calculated gains with my video?
    I want to be able to inspect my video, which is already time stamped, and determine which AEWB values produce the best video.
    I have included fopen and fprint commands in the ti_tools/iss_03_80_00_70/packages/ti/psp/iss/ drivers/alg/2A/src/issdrv_algTIaewb.c file but it does not write the values to the file I specify. Is it possible to use the fopen/fprint functions in the iss drivers?

    I am using a custom version of the IPNC SDK with the DM385.