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.

TMDXIDK57X-LCD: VPS loopback example problem

Part Number: TMDXIDK57X-LCD

Hello every one,

I have an AM5728 IDK and a camera, my final goal is to capture an image and do some processing using imglib in ti-rtos, but for now, I'm just trying to run ti example on my IDK. These were my steps to run the VPS loopback example:

I compiled the loopback example successfully and there is a file, named vps_examples_loopback_a15_0_release.xa15fg  in C:\ti\pdk_am57xx_1_0_15\packages\ti\binary\vps_examples_loopback\bin\idkAM572x  directory. this is my camera (that I can't see 2659 label on it! that's why I put its picture here):

I have an empty microSD Card in fat32 format in my IDK. after I lunch my *.xa15fg file on my IDK, it gives me this:

and it stops there. then I tried to use *.xa15fg file provided by  ,here , and it gives me this:

LOOPBACK_APP: Sample Application - STARTS !!!
*** VPDMA Firmware Loading... ***
VPDMA Firmware Address = 0xa0011fc0
VPDMA Load Address     = 0x4897d004
VPDMA Firmware Version = 0x4d0001b8
VPDMA List Busy Status = 0x00000000
*** VPDMA Firmware Load Success ***

*** VPDMA Firmware Loading... ***
VPDMA Firmware Address = 0xa0011fc0
VPDMA Load Address     = 0x4899d004
VPDMA Firmware Version = 0x4d0001b8
VPDMA List Busy Status = 0x00000000
*** VPDMA Firmware Load Success ***

*** VPDMA Firmware Loading... ***
VPDMA Firmware Address = 0xa0011fc0
VPDMA Load Address     = 0x489bd004
VPDMA Firmware Version = 0x4d0001b8
VPDMA List Busy Status = 0x00000000
*** VPDMA Firmware Load Success ***

*** VPDMA Firmware Loading... ***
VPDMA Firmware Address = 0xa0011fc0
VPDMA Load Address     = 0x489dd004
VPDMA Firmware Version = 0x4d0001b8
VPDMA List Busy Status = 0x00000000
*** VPDMA Firmware Load Success ***


 Build time            : [10:29:27 Jun 19 2019]
 FVID2 Version         : [FVID_02_01_00_01]
 BSP Version           : [PDK_01_10_00_xx]
 Platform              : [EVM]
 SOC                   : [AM572X]
 SOC Revision          : [ES2.0]
 FT Revision           : [12]
 Package               : [UNKNOWN]
 Core                  : [A15]
 Board Detected        : [AM57XX IDK EVM]
 EEPROM Base Board Name: [AM572IDK]
 Base Board Revision   : [UNKNOWN]
 Daughter Card Revision: [REV A]

LOOPBACK_APP: LpbkApp_init() - DONE !!!

--------------------------------------
Select test to run as per below table:
--------------------------------------

  0: OV1063x            -> VIP1_S0_PORTA (1280x720@30FPS)  -> BGR888      -> DSS Video1 -> DPI1 LCD
  1: OV1063x            -> VIP1_S0_PORTA (1280x720@30FPS)  -> ARGB32_8888 -> DSS Video1 -> DPI1 LCD
  2: OV1063x            -> VIP1_S0_PORTA (1280x720@30FPS)  -> YUV420SP    -> DSS Video1 -> DPI1 LCD
  3: OV1063x            -> VIP1_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
  4: LI OV1063x         -> VIP1_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
  5: SII9127            -> VIP1_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
  6: SII9127            -> VIP1_S0_PORTA (1920x1080@60FPS) -> DSS Video1 -> DPI1 LCD
  7: ADV7611            -> VIP1_S0_PORTA (1920x1080@60FPS) -> DSS Video1 -> DPI1 LCD
  8: MULDESCAM1_OV1063x -> VIP1_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
  9: MULDESCAM2_OV1063x -> VIP1_S1_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
 10: MULDESCAM3_OV1063x -> VIP2_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
 11: MULDESCAM4_OV1063x -> VIP3_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
 12: MULDESCAM5_OV1063x -> VIP2_S1_PORTB (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
 13: MULDESCAM6_OV1063x -> VIP3_S1_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 LCD
 14: MULDESCAM1to4 -> VIP -> DSS Video1 -> DPI1 LCD
 15: MULDESCAM1to6      -> VIP                             -> DSS Video1 -> DPI1 LCD
 16: MULDESCAM1to4      -> VIP                             -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
 17: MULDESCAM1(GW4200_IMX290@24FPS)      -> VIP           -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
 18: MULDESCAM1to6      -> VIP                             -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
 19: TVP5158            -> VIP1_S0_PORTA (PAL)             -> DSS Video1 -> DPI1 LCD
 20: OV1063x            -> VIP1_S0_PORTA (1280x720@30FPS)  -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
 21: Virtio:               VIP1_S0_PORTA                   -> DSS Video1 -> DPI1 @ D1 (720x480), YUYV422I
 22: OV2659            -> VIP2_S1_PORTB (1280x720@30FPS)  -> YUYV422      -> DSS Video1 -> DPI1 LCD
 23: OV1063x            -> VIP2_S0_PORTA (1280x720@30FPS)  -> YUYV422      -> DSS Video1 -> DPI1 LCD
 24: Auto Run

100: EXIT

Enter Test to Run (in UART console):
22
22
LOOPBACK_APP: CAPT HANDLES 1: DISP HANDLES 1: MODE 0004 : RUN COUNT 30: OUTPUT:0 !!
saveRaw(0, 0x81700000, "D:\\loopbackOption22Inst7Ch0Str0_uyvy422_prog_packed_1920_1080.tigf", 6220800, 32, false);
LOOPBACK_APP: VIP 7: VID SENSOR 1210 (0x30): 9090:0000:9090
LOOPBACK_APP: Capture create complete!!
Display Create Status: VENC Standard: CUSTOM, Width: 1920, Height: 1200
Display Create Status: Minimum Number of Buffers to Prime: 1
LOOPBACK_APP: Display create complete!!
LOOPBACK_APP: Starting loopback ... !!!
LOOPBACK_APP: Loopback in progress ... DO NOT HALT !!!
LOOPBACK_APP: Stopping loopback ... DONE !!!

 Execution Statistics
 ====================

 Execution time    : 50.998 s
 Total field Count : 0 (0 fields/sec)
 Avg CPU Load      : 0 %

 Capture Instance 7 Statistics
 ==============================
 Capture Inst 7 Status: Number of request queued  : 6
 Capture Inst 7 Status: Number of request dequeued: 0
 Capture Inst 7 Status: Overflow Count            : 0

    CH    |     Q      DQ     Total   Top     Bot    Total  Top    Bot   Min/Max     Min/Max   Dropped  Repeat   Fid   Desc
 (I/S/CH) |   Count   Count  Fields  Fields  Fields   FPS   FPS    FPS    Width       Height   Frames   Frames  Repeat Error
 ---------------------------------------------------------------------------------------------------------------------------
  07.0.00 |       6       0       0       0       0      0     0     0     0/0         0/0           0       0       0     0

 Display Instance 0 Statistics
 ==============================
 Display Inst 0 Status: Number of request queued  : 1
 Display Inst 0 Status: Number of request dequeued: 0
 Display Inst 0 Status: Displayed frame count     : 1798
 Display Inst 0 Status: Frame repeat count        : 1798

 Dispaly Controller Error Status
 ==============================
 LCD1 SyncLost count          : 0
 LCD2 SyncLost2 count         : 0
 LCD3 SyncLost3 count         : 0
 TV SyncLost count            : 0
 OCP Error count              : 0


LOOPBACK_APP: Display delete complete!!
LOOPBACK_APP: Capture delete complete!!

 69679: LOAD: CPU: 1%, HWI: 0%, SWI:0%

which seems to be correct, but I can't see anything on my LCD, the moment I press 22, my LCD blinks once, but nothing appears on it. Does any one have any idea?

P.S: I don't know whether the example stores the images on the sd card or not, but when I exit the sd card, it's still empty.

B.R,

Alex.

  • Hi,

    I looked at the post you referred to, the binary I attached there is for AM572x GP EVM. Now you are testing AM572x IDK EVM, the binary is not compatible. Attached is the one I tried this morning with Processor SDK RTOS 6.0 release (PDK 1.0.15).

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/7701.vps_5F00_examples_5F00_loopback_5F00_a15_5F00_0_5F00_release.xa15fg

    It worked for me. What camera captured is shown on the LCD. My camera looks like yours with Rev 1.3A, your Rev 1.4A should work.

      

    Enter Test to Run (in UART console):
    22
    LOOPBACK_APP: CAPT HANDLES 1: DISP HANDLES 1: MODE 0004 : RUN COUNT 30: OUTPUT:0 !!
    saveRaw(0, 0x81700000, "D:\\loopbackOption22Inst7Ch0Str0_uyvy422_prog_packed_1920_1080.tigf", 6220800, 32, false);
    LOOPBACK_APP: VIP 7: VID SENSOR 1210 (0x30): 2656:0000:f060
    LOOPBACK_APP: Capture create complete!!
    Display Create Status: VENC Standard: CUSTOM, Width: 1920, Height: 1200
    Display Create Status: Minimum Number of Buffers to Prime: 1
    LOOPBACK_APP: Display create complete!!
    LOOPBACK_APP: Starting loopback ... !!!
    LOOPBACK_APP: Loopback in progress ... DO NOT HALT !!!
    LOOPBACK_APP: Stopping loopback ... DONE !!!

    Execution Statistics
    ====================

    Execution time : 50.997 s
    Total field Count : 0 (0 fields/sec)
    Avg CPU Load : 0 %

    Capture Instance 7 Statistics
    ==============================
    Capture Inst 7 Status: Number of request queued : 879
    Capture Inst 7 Status: Number of request dequeued: 874
    Capture Inst 7 Status: Overflow Count : 0

    CH | Q DQ Total Top Bot Total Top Bot Min/Max Min/Max Dropped Repeat Fid Desc
    (I/S/CH) | Count Count Fields Fields Fields FPS FPS FPS Width Height Frames Frames Repeat Error
    ---------------------------------------------------------------------------------------------------------------------------
    07.0.00 | 879 874 874 874 0 17 17 0 1280/1280 720/720 0 0 0 0

    Display Instance 0 Statistics
    ==============================
    Display Inst 0 Status: Number of request queued : 875
    Display Inst 0 Status: Number of request dequeued: 874
    Display Inst 0 Status: Displayed frame count : 1798
    Display Inst 0 Status: Frame repeat count : 924

    Dispaly Controller Error Status
    ==============================
    LCD1 SyncLost count : 0
    LCD2 SyncLost2 count : 0
    LCD3 SyncLost3 count : 0
    TV SyncLost count : 0
    OCP Error count : 0


    LOOPBACK_APP: Display delete complete!!
    LOOPBACK_APP: Capture delete complete!!

    84144: LOAD: CPU: 1%, HWI: 0%, SWI:0%


    --------------------------------------
    Select test to run as per below table:
    --------------------------------------

    0: OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> BGR888 -> DSS Video1 -> DPI1 LCD
    1: OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> ARGB32_8888 -> DSS Video1 -> DPI1 LCD
    2: OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> YUV420SP -> DSS Video1 -> DPI1 LCD
    3: OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    4: LI OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    5: SII9127 -> VIP1_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    6: SII9127 -> VIP1_S0_PORTA (1920x1080@60FPS) -> DSS Video1 -> DPI1 LCD
    7: ADV7611 -> VIP1_S0_PORTA (1920x1080@60FPS) -> DSS Video1 -> DPI1 LCD
    8: MULDESCAM1_OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    9: MULDESCAM2_OV1063x -> VIP1_S1_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    10: MULDESCAM3_OV1063x -> VIP2_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    11: MULDESCAM4_OV1063x -> VIP3_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    12: MULDESCAM5_OV1063x -> VIP2_S1_PORTB (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    13: MULDESCAM6_OV1063x -> VIP3_S1_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 LCD
    14: MULDESCAM1to4 -> VIP -> DSS Video1 -> DPI1 LCD
    15: MULDESCAM1to6 -> VIP -> DSS Video1 -> DPI1 LCD
    16: MULDESCAM1to4 -> VIP -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
    17: MULDESCAM1(GW4200_IMX290@24FPS) -> VIP -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
    18: MULDESCAM1to6 -> VIP -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
    19: TVP5158 -> VIP1_S0_PORTA (PAL) -> DSS Video1 -> DPI1 LCD
    20: OV1063x -> VIP1_S0_PORTA (1280x720@30FPS) -> DSS Video1 -> DPI1 HDMI 1920x1080@60FPS
    21: Virtio: VIP1_S0_PORTA -> DSS Video1 -> DPI1 @ D1 (720x480), YUYV422I
    22: OV2659 -> VIP2_S1_PORTB (1280x720@30FPS) -> YUYV422 -> DSS Video1 -> DPI1 LCD
    23: OV1063x -> VIP2_S0_PORTA (1280x720@30FPS) -> YUYV422 -> DSS Video1 -> DPI1 LCD
    24: Auto Run

    100: EXIT

    Regards, Eric

  • Dear ,

    Thank you for your response, I tried to run the binary you attached, but the result was the same as mine:

    I also tried to run the related binary on C66x core, again, the program goes to the end but no picture appears on the LCD, only this time a fullscreen green color appears for some seconds. Am I supposed to do any extra step? like putting any jumper ...

    this is my hardware setup:

    B.R,

    Alex.

  • P.S: 

    There are other files in the directory that I'm not using:

    all I could guess was to use *.xa15fg for the Cortex-A15 core and *.xe66 for DSP core, for example, I don't know what *.map files are and what I am supposed to do with them.

  • Hi,

    I am not aware of any jumper setting for this, but you need a micro SD card formatted with FAT32 and inserted into the EVM. Also, you need the GEL file setup for the EVM (I thought you have this already).

    The .xa15fg is for A15 core, xe66 is for C66x core, both expected to work. xem4 is for M4 core, there may be some problem. *.map is the memory map file. *rov,xs is used for ROV view. You can ignore them.

    Not sure if you have another set of EVM, camera or LCD board for swapping test. Sometimes the camera or LCD connection are fragile and may broken.

    Regards, Eric

  • Dear Eric,

    As I know, when I select my board in the target configuration file, it automatically detects related gel files for each core (which is C:\ti\ccs910\ccs\ccs_base\emulation\boards\am572x\gel\ directory), If I need to change any of these files please let me know. But now, I came up with this result that there is a hardware problem in my camera, because I failed to run it in Linux SDK (matrix GUI), it was functional in Linux two month ago, but now it's not working!!

    I will keep this question open until I find the final answer and I will post it here. Thank you very much for your help.

    B.R, 

    Alex.

  • Alex,

    You are using AM572x IDK EVM, in the CCS target configuration, please select below, it will automatically add all the correct GELs for all the cores. 

    Please fix the camera issue then let me know the RTOS VPS test results.

    Regards, Eric

  • Hi Eric,

    Since I am sure its a hardware issue and I don't know when I can have another camera, I close this, thank you for your help.

    Regards,

    Alex