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: Fail to run Vision Apps demos

Part Number: TDA4VM
Other Parts Discussed in Thread: DRA829V

Hello,

I have a TDAVM & DRA829V & Fusion daughter card setup and I'm trying to run the Vision Apps demos as described here. I used version 07.03.00.07 from the download page and tried both by building the whole image, following the Vision Apps instructions, and by using the prebuild image.

In both cases I get the exact same failures on startup as in the related thread, the same outputs for the run findfdt; run envboot and print overlay_files commands and I do not have output on a connected DisplayPort monitor.

Differently from that thread I do have a uenv.txt file in the BOOT partition, the content being:

psdk_setup_file=.psdk_setup
check_psdk_setup=load mmc 1:1 ${loadaddr} ${psdk_setup_file}

# Reset to the default environment
do_psdk_setup=env default -f -a; saveenv

# If not previously configured, then configure the environment and indicate this by writing a file
uenvcmd=if run check_psdk_setup; then echo "Already setup."; else run do_psdk_setup; mw.b ${loadaddr} 0 1; fatwrite mmc 1:1 ${loadaddr} .psdk_setup 1; reset; fi

dorprocboot=1
name_overlays=k3-j721e-vision-apps.dtbo

If I try to run /opt/vision_apps/vision_apps_init.sh, the process loops indefinitely. The full log from boot is the following: 3377.log.txt

Has anyone an idea of the issue?

  • Hi,

    From the log, yes, the eDP output is enabled in the vision apps.

    [MCU2_0]     18.411566 s: DSS: Display type is eDP !!!

    Does your display panel support 1080p resolution? This is what by default used in the vision apps. 

    Regards,

    Brijesh

  • Hi Luka,

    If you remove below two lines, then do you see anything on the display? Can you please check?

    dorprocboot=1
    name_overlays=k3-j721e-vision-apps.dtbo

    Regards,

    Brijesh

  • Hello Brijesh,

    Thank you for looking into my issue!

    I commented out those two lines and cleared the uboot environment on first boot with 

    env default –a –f
    saveenv

    Unfortunately the booting procedure is really unstable after this change, it hangs most of the times at random point after second 10, before getting the login prompt.

    The only time it completed the boot procedure I got the default splash screen on the display, but when I ran the Vision Apps init script I got only the following log line: 

    APP_LOG: ERROR: Unable to map memory @ 0xb2000000!

  • Hello Luka,

    The idea was to use Linux Framework and EDID tools to figure out the supported resolution. With this change, we will not able to run vision apps demo, because vision apps dtb file is not included in it. 

    After creating SD card, can you please not do "make linux_fs_install_sd" from vision apps folder and just boot with this SD card? With this method, it will boot Linux and DSS will be run by Linux and then we can read few DSS registers to figure out timing parameters for supported resolution.

    Regards,

    Brijesh

  • Hello Brijesh,

    I recreated the image (I did step 1 from https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_02_00_06/exports/docs/vision_apps/docs/user_guide/RUN_INSTRUCTIONS.html) and I tried to look for a tool to check the monitor EDID, but did not manage to find it (nor found a package manager to install a tool, is there one?).

    How could I read the registers you mentioned?

  • ok, do you see any thing on the display? Lets first see if display is detected by Linux driver.

    Regards,

    Brijesh

  • Sure, as after removing the last 2 lines of the uenv.txt file, I get the default splash screen on the display.

  • ok, that's good. Does the display panel detect/print the input resolution? I want to check the pixel clock required for this resolution.

  • It's working at 1920x1200@60Hz.

  • ok, 1920x1200@60fps requires around 193MHz pixel clock.

    can you read 100 registers from 0x04A80000 offset and share it to get the timing? 

    You could then use below faq to change the display resolution in vision apps.

    https://e2e.ti.com/support/processors/f/791/t/942679

    Regards,

    Brijesh

  • I'm sorry, could you be a bit more specific? I tried using hexdump on dev/mem but I got an error:

    hexdump -C -s 0x04A80000 -n 100 /dev/mem
    hexdump: /dev/mem: Bad address
    04a80000

    Additionally, I'm still using the SD card with only the TI RTOS + Linux, without Vision Apps. Should I rebuild them changing the resolution to 1920x1200 and copy them back on the SD?

  • i am not sure if hexdump can read from memory directly. 

    can you using devmem utility on Linux?

    devmem2 0x04a80000: this will print value at  this location.

    Yes, please do not install vision apps in the sd card. Just create SD card with file filesystem, ie step 1 from https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_02_00_06/exports/docs/vision_apps/docs/user_guide/RUN_INSTRUCTIONS.html

    Regards,

    Brijesh

  • Ok thanks for the clarification. Here's the dump of the registers:

    Read at address  0x04A80000 (0xffffad4a0000): 0x00000004
    Read at address  0x04A80004 (0xffffb00b0004): 0x00000541
    Read at address  0x04A80008 (0xffff83c00008): 0x00000000
    Read at address  0x04A8000C (0xffffafbb000c): 0x00000000
    Read at address  0x04A80010 (0xffffb93c0010): 0x00000000
    Read at address  0x04A80014 (0xffffb51f0014): 0x00000000
    Read at address  0x04A80018 (0xffffb1ca0018): 0x00000000
    Read at address  0x04A8001C (0xffffb685001c): 0x00000000
    Read at address  0x04A80020 (0xffff8f7a0020): 0x00000000
    Read at address  0x04A80024 (0xffffb7780024): 0x00000000
    Read at address  0x04A80028 (0xffffa5840028): 0x00000000
    Read at address  0x04A8002C (0xffffa18c002c): 0x00000000
    Read at address  0x04A80030 (0xffff9e0d0030): 0x00000000
    Read at address  0x04A80034 (0xffff837f0034): 0x00000000
    Read at address  0x04A80038 (0xffffa7d70038): 0x00000000
    Read at address  0x04A8003C (0xffff8054003c): 0x00000000
    Read at address  0x04A80040 (0xffff9d130040): 0x00000000
    Read at address  0x04A80044 (0xffff91db0044): 0x00000000
    Read at address  0x04A80048 (0xffffb9f50048): 0x00000000
    Read at address  0x04A8004C (0xffff9b99004c): 0x00061000
    Read at address  0x04A80050 (0xffff97860050): 0x04AF077F
    Read at address  0x04A80054 (0xffffa4da0054): 0x04F02F1F
    Read at address  0x04A80058 (0xffffbe160058): 0x01A00305
    Read at address  0x04A8005C (0xffffbc2e005c): 0x00000000
    Read at address  0x04A80060 (0xffffa6ce0060): 0x00000000
    Read at address  0x04A80064 (0xffffb85b0064): 0x00000000
    Read at address  0x04A80068 (0xffff99790068): 0x00000000
    Read at address  0x04A8006C (0xffffb95e006c): 0x00000000
    Read at address  0x04A80070 (0xffff86e80070): 0x00000000
    Read at address  0x04A80074 (0xffff997f0074): 0x00000000
    Read at address  0x04A80078 (0xffff9aef0078): 0x00000000
    Read at address  0x04A8007C (0xffff9123007c): 0x00000000
    Read at address  0x04A80080 (0xffff9ef60080): 0x00000000
    Read at address  0x04A80084 (0xffff91330084): 0x00000000
    Read at address  0x04A80088 (0xffff8c9b0088): 0x00000000
    Read at address  0x04A8008C (0xffff9185008c): 0x00000000
    Read at address  0x04A80090 (0xffff86620090): 0x00000000
    Read at address  0x04A80094 (0xffff8d2f0094): 0x00000000
    Read at address  0x04A80098 (0xffff845a0098): 0x00000000
    Read at address  0x04A8009C (0xffffbc06009c): 0x00000000
    Read at address  0x04A800A0 (0xffffb49400a0): 0x00000000
    Read at address  0x04A800A4 (0xffffb2e300a4): 0x00000000
    Read at address  0x04A800A8 (0xffff936100a8): 0x00000000
    Read at address  0x04A800AC (0xffff82a400ac): 0x00000000
    Read at address  0x04A800B0 (0xffffbe0e00b0): 0x00000000
    Read at address  0x04A800B4 (0xffffbe0100b4): 0x00000000
    Read at address  0x04A800B8 (0xffff937e00b8): 0x00000000
    Read at address  0x04A800BC (0xffffa8f600bc): 0x00000000
    Read at address  0x04A800C0 (0xffff989900c0): 0x00000000
    Read at address  0x04A800C4 (0xffff89f300c4): 0x00000000
    Read at address  0x04A800C8 (0xffff9e6e00c8): 0x00000000
    Read at address  0x04A800CC (0xffffb55600cc): 0x00000000
    Read at address  0x04A800D0 (0xffffaa5900d0): 0x00000000
    Read at address  0x04A800D4 (0xffff7ff500d4): 0x00000000
    Read at address  0x04A800D8 (0xffffa19300d8): 0x00000000
    Read at address  0x04A800DC (0xffff8e1b00dc): 0x00000000
    Read at address  0x04A800E0 (0xffff9bc200e0): 0x00000000
    Read at address  0x04A800E4 (0xffff826a00e4): 0x00000000
    Read at address  0x04A800E8 (0xffffb45300e8): 0x00000000
    Read at address  0x04A800EC (0xffff9b4000ec): 0x00000000
    Read at address  0x04A800F0 (0xffff8d5e00f0): 0x00000000
    Read at address  0x04A800F4 (0xffffb39200f4): 0x00000000
    Read at address  0x04A800F8 (0xffff956a00f8): 0x00000000
    Read at address  0x04A800FC (0xffffba6600fc): 0x00000000
    Read at address  0x04A80100 (0xffff887c0100): 0x00000000
    Read at address  0x04A80104 (0xffff99910104): 0x00000000
    Read at address  0x04A80108 (0xffff93180108): 0x00000000
    Read at address  0x04A8010C (0xffffaf2b010c): 0x00000000
    Read at address  0x04A80110 (0xffffa3b00110): 0x00000000
    Read at address  0x04A80114 (0xffff959a0114): 0x00000000
    Read at address  0x04A80118 (0xffff8d350118): 0x00000000
    Read at address  0x04A8011C (0xffffa5cf011c): 0x00000000
    Read at address  0x04A80120 (0xffff9e640120): 0x00000000
    Read at address  0x04A80124 (0xffffaab00124): 0x00000000
    Read at address  0x04A80128 (0xffff93f20128): 0x00000000
    Read at address  0x04A8012C (0xffff8ee7012c): 0x00000000
    Read at address  0x04A80130 (0xffff95a30130): 0x00000000
    Read at address  0x04A80134 (0xffffa35a0134): 0x00000000
    Read at address  0x04A80138 (0xffffb3850138): 0x00000000
    Read at address  0x04A8013C (0xffffb7d6013c): 0x00000000
    Read at address  0x04A80140 (0xffffb94a0140): 0x00000000
    Read at address  0x04A80144 (0xffff988a0144): 0x00000000
    Read at address  0x04A80148 (0xffffb32f0148): 0x00000000
    Read at address  0x04A8014C (0xfffface7014c): 0x00000000
    Read at address  0x04A80150 (0xffffa2b10150): 0x00000000
    Read at address  0x04A80154 (0xffff99ea0154): 0x00000000
    Read at address  0x04A80158 (0xffff8fce0158): 0x00000000
    Read at address  0x04A8015C (0xffff8ae7015c): 0x00000000
    Read at address  0x04A80160 (0xffffaa9e0160): 0x00000000
    Read at address  0x04A80164 (0xffff9cb50164): 0x00000000
    Read at address  0x04A80168 (0xffff937e0168): 0x00000000
    Read at address  0x04A8016C (0xffff8745016c): 0x00000000
    Read at address  0x04A80170 (0xffffb77a0170): 0x00000000
    Read at address  0x04A80174 (0xffff85f00174): 0x00000000
    Read at address  0x04A80178 (0xffff8d7e0178): 0x00000000
    Read at address  0x04A8017C (0xffffaef9017c): 0x00000000
    Read at address  0x04A80180 (0xffff7f8d0180): 0x00000000
    Read at address  0x04A80184 (0xffffb6f90184): 0x00000000
    Read at address  0x04A80188 (0xffff7ef30188): 0x00000000
    Read at address  0x04A8018C (0xffffb197018c): 0x00000000

  • ok

    Here is the timing information for the above resolution.

    HSW = 32
    HFP = 48
    HBP = 80

    VSW = 6
    VFP = 3
    VBP = 26

    VS = Active Low
    Align = true
    ONOFF = 1
    HS & VS on falling clock edge
    Data on rising edge

    Can you now use above FAQ to change resolution and timing information for 1920x1200 resolution? 

    According to this timing, pixel clock required would be around 155MHz, Please change this also in the apps_init.c file.

    Regards,

    Brijesh

  • Hello Brijesh,

    first I updated the following files in .../vision_apps/ folder of the build environment, using the timings above and the 1920x1200 resolution:

    • apps/basic_demos/app_tirtos/common/app_init.c (here I assumed HSW/VSW are respectively prm.timings.hSyncLen/prm.timings.vSyncLen, is that correct?)
    • apps/basic_demos/app_multi_cam/app_common.h
    • modules/include/app_display_module.h
    • apps/cv_demos/app_sem/app_common.h
    • apps/dl_demos/app_tidl_avp4/app_common.h
    • apps/dl_demos/app_tidl_cam/app_common.h
    • apps/dl_demos/app_tidl_od/app_common.h
    • apps/dl_demos/app_tidl_seg/app_common.h

    and I followed the instructions of https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_02_00_06/exports/docs/vision_apps/docs/user_guide/INCREMENTAL_UPDATE_AND_DEBUG.html for rebuilding and reflashing the SDcard.

    Unfortunately the result is the same as in the OP. 

  • ok, can you check again these register to confirm that timing is updated? Did you also update pixel clock accordingly?

    Does the display say anything like incorrect mode, unrecognised signal etc.? 

    Regards,

    Brijesh

  • I did update the clock to 155MHz as you suggested in the app_init.c file. Here are the updated registers:

    Read at address  0x04A80000 (0xffff9f750000): 0x00000000
    Read at address  0x04A80004 (0xffffaa7e0004): 0x00000541
    Read at address  0x04A80008 (0xffff7f1f0008): 0x00000000
    Read at address  0x04A8000C (0xffff8007000c): 0x00000000
    Read at address  0x04A80010 (0xffffbd160010): 0x00000000
    Read at address  0x04A80014 (0xffffa6df0014): 0x00000000
    Read at address  0x04A80018 (0xffff98830018): 0x00000000
    Read at address  0x04A8001C (0xffff8d27001c): 0x00000000
    Read at address  0x04A80020 (0xffff8a1e0020): 0x00000000
    Read at address  0x04A80024 (0xffff88110024): 0x00000000
    Read at address  0x04A80028 (0xffff8a070028): 0x00000000
    Read at address  0x04A8002C (0xffffabd8002c): 0x00000000
    Read at address  0x04A80030 (0xffffab7a0030): 0x00000000
    Read at address  0x04A80034 (0xffff95fc0034): 0x00000000
    Read at address  0x04A80038 (0xffff96880038): 0x00000000
    Read at address  0x04A8003C (0xffffaa80003c): 0x00000000
    Read at address  0x04A80040 (0xffffab2e0040): 0x00000000
    Read at address  0x04A80044 (0xffff9cc10044): 0x000004AB
    Read at address  0x04A80048 (0xffff96440048): 0x00000000
    Read at address  0x04A8004C (0xffffa2fe004c): 0x00070000
    Read at address  0x04A80050 (0xffffb8060050): 0x04AF077F
    Read at address  0x04A80054 (0xffff99330054): 0x04F02F1F
    Read at address  0x04A80058 (0xffff85700058): 0x01A00305
    Read at address  0x04A8005C (0xffff8fb2005c): 0x00000000
    Read at address  0x04A80060 (0xffffa85a0060): 0x00000000
    Read at address  0x04A80064 (0xffff89880064): 0x00000000
    Read at address  0x04A80068 (0xffff86120068): 0x00000000
    Read at address  0x04A8006C (0xffffa23b006c): 0x00000000
    Read at address  0x04A80070 (0xffff98890070): 0x00000000
    Read at address  0x04A80074 (0xffffb1e30074): 0x00000000
    Read at address  0x04A80078 (0xffffbd910078): 0x00000000
    Read at address  0x04A8007C (0xffff83ea007c): 0x00000000
    Read at address  0x04A80080 (0xffffb7210080): 0x00000000
    Read at address  0x04A80084 (0xffffabbf0084): 0x00000000
    Read at address  0x04A80088 (0xffffa2d40088): 0x00000000
    Read at address  0x04A8008C (0xffff9572008c): 0x00000000
    Read at address  0x04A80090 (0xffffa7cb0090): 0x00000000
    Read at address  0x04A80094 (0xffff9f830094): 0x00000000
    Read at address  0x04A80098 (0xffffbbc40098): 0x00000000
    Read at address  0x04A8009C (0xffffabeb009c): 0x00000000
    Read at address  0x04A800A0 (0xffff9abe00a0): 0x00000000
    Read at address  0x04A800A4 (0xffffaf8c00a4): 0x00000000
    Read at address  0x04A800A8 (0xffff85aa00a8): 0x00000000
    Read at address  0x04A800AC (0xffff8a0200ac): 0x00000000
    Read at address  0x04A800B0 (0xffffa4ba00b0): 0x00000000
    Read at address  0x04A800B4 (0xffff8eab00b4): 0x00000000
    Read at address  0x04A800B8 (0xffffa85600b8): 0x00000000
    Read at address  0x04A800BC (0xffffa40e00bc): 0x00000000
    Read at address  0x04A800C0 (0xffff9b1100c0): 0x00000000
    Read at address  0x04A800C4 (0xffffb07300c4): 0x00000000
    Read at address  0x04A800C8 (0xffff818b00c8): 0x00000000
    Read at address  0x04A800CC (0xffffa4bf00cc): 0x00000000
    Read at address  0x04A800D0 (0xffff89cf00d0): 0x00000000
    Read at address  0x04A800D4 (0xffff9d4400d4): 0x00000000
    Read at address  0x04A800D8 (0xffffaf9e00d8): 0x00000000
    Read at address  0x04A800DC (0xffffb05600dc): 0x00000000
    Read at address  0x04A800E0 (0xffffb2af00e0): 0x00000000
    Read at address  0x04A800E4 (0xffffb39d00e4): 0x00000000
    Read at address  0x04A800E8 (0xffff9c8100e8): 0x00000000
    Read at address  0x04A800EC (0xffff8b9a00ec): 0x00000000
    Read at address  0x04A800F0 (0xffff959100f0): 0x00000000
    Read at address  0x04A800F4 (0xffff8d0300f4): 0x00000000
    Read at address  0x04A800F8 (0xffffb34100f8): 0x00000000
    Read at address  0x04A800FC (0xffffae1f00fc): 0x00000000
    Read at address  0x04A80100 (0xffff88a50100): 0x00000000
    Read at address  0x04A80104 (0xffffac770104): 0x00000000
    Read at address  0x04A80108 (0xffff84d00108): 0x00000000
    Read at address  0x04A8010C (0xffffa8c4010c): 0x00000000
    Read at address  0x04A80110 (0xffff98fd0110): 0x00000000
    Read at address  0x04A80114 (0xffff832c0114): 0x00000000
    Read at address  0x04A80118 (0xffffac770118): 0x00000000
    Read at address  0x04A8011C (0xffffb705011c): 0x00000000
    Read at address  0x04A80120 (0xffffbc5e0120): 0x00000000
    Read at address  0x04A80124 (0xffffaa820124): 0x00000000
    Read at address  0x04A80128 (0xffff99c10128): 0x00000000
    Read at address  0x04A8012C (0xffffbc48012c): 0x00000000
    Read at address  0x04A80130 (0xffffb4880130): 0x00000000
    Read at address  0x04A80134 (0xffff93350134): 0x00000000
    Read at address  0x04A80138 (0xffffb2ac0138): 0x00000000
    Read at address  0x04A8013C (0xffffbe1d013c): 0x00000000
    Read at address  0x04A80140 (0xffff89000140): 0x00000000
    Read at address  0x04A80144 (0xffff89f20144): 0x00000000
    Read at address  0x04A80148 (0xffffaa4a0148): 0x00000000
    Read at address  0x04A8014C (0xffff823c014c): 0x00000000
    Read at address  0x04A80150 (0xffff831b0150): 0x00000000
    Read at address  0x04A80154 (0xffffac070154): 0x00000000
    Read at address  0x04A80158 (0xffffb1a20158): 0x00000000
    Read at address  0x04A8015C (0xffff8bdc015c): 0x00000000
    Read at address  0x04A80160 (0xffff9e1a0160): 0x00000000
    Read at address  0x04A80164 (0xffff8f810164): 0x00000000
    Read at address  0x04A80168 (0xffff91fb0168): 0x00000000
    Read at address  0x04A8016C (0xffffb70c016c): 0x00000000
    Read at address  0x04A80170 (0xffffa0740170): 0x00000000
    Read at address  0x04A80174 (0xffff82500174): 0x00000000
    Read at address  0x04A80178 (0xffffa76c0178): 0x00000000
    Read at address  0x04A8017C (0xffffa96f017c): 0x00000000
    Read at address  0x04A80180 (0xffff7f180180): 0x00000000
    Read at address  0x04A80184 (0xffff86ad0184): 0x00000000
    Read at address  0x04A80188 (0xffffa5ee0188): 0x00000000
    Read at address  0x04A8018C (0xffffbd15018c): 0x00000000

    I cannot get more information on the monitor aside from the fact that the monitor is active (the power LED is white lit) since I get no overlay menu when pressing the control buttons.

    Regards,

    Luka

  • Brijesh,

    I retried using the pre-built image and this time the display was working. I'll have to retrace where the issue was in the building process, but apparently the issue is on my side. Sorry for taking your time!