Post Go back to editing

port blimp's osd onto the arm board

I want to port blimp's osd onto the arm board, do you have specific instructions

Parents Reply
  • Ok, maybe I didn't make it clear enough, but now I'm going to talk about my hardware conditions and my software conditions, and here's your demo board, and I've removed the flash,

    Below screenshot is my SpiTransfer function implementation, was I delete all, and then I use VDSP compiled code and burning inside.

    No matter how many times the restart occurs, the osd will display normally.Are you sure I also want to realize the spi?

Children
  • Hi,

    Sorry that you are in trouble solving this issue.

    Please find more details about the hardware connection. Hope that it will help to understand where is the issue?

    In Eval platform, Blackfin controller is connected to ADV7625 and External flash as shown below.

    When designing Blimp project,Are you enabling Internal flash memory option right?

    If you are selecting External flash memory, you need to use External SPI flash(U38) to flash the OSD binary. If you are using Internal, this U38 is not required.

    To display the OSD component, we need to configure set of I2C and SPI registers in ADV7625, irrespective of external/internal flash that you are using.

    Can you share the VDSP source files and OSD project that you are verifying with Demo board offline via email?

    We will check and let you know if any issues?

    Thanks,

    Poornima

  • hello

    • You mean I must realize SpiTransfer function function, right?

    • Thank you very much for your help
    • sylon
  • Hi,

    Yes. You need to write the SPI transfer function (Controller to ADV7625). As mentioned before, If you are using Internal flash memory option, external flash is not needed.

    Still we are wondering and want to check the labels displayed with our evaluation correctly after burning out your changes(OSD is with junk normally).

    Please let us know if you are still facing any issues, we will check with our evaluation platform.

    Thank you.

    Thanks,

    Poornima

  • Hi,

    When I have blocked SpiTransfer function, it can still be displayed correctly after burning it.

    (blimp operation)

    Drag in six labels, change the memory option to internal storage, and change the resolution to the current resolution.Then the TV will display the six labels correctly

    Thank you for your patient answer!

  • HI;

    Do you have any experience of successfully porting to the arm board?Can you give me a demo?Let me see how you implement osd display。

    thanks

    sylon

  • Hi,

    When I have blocked SpiTransfer function, it can still be displayed correctly after burning it.

                  Are you saying, removing SPI flash from eval board as well as commenting out the SPI transfer function right? Can you share the details what are commented from code( source filename and APIs etc)?

    Drag in six labels, change the memory option to internal storage, and change the resolution to the current resolution.Then the TV will display the six labels correctly.

                 We assume that this statement is for Eval board, Is it right?

    Do you have any experience of successfully porting to the arm board?Can you give me a demo?Let me see how you implement osd display.

                 Please refer Advantiv_CrossPoint_Application_Userguide Appendix A which explains  OSD integration with HDMI driver code which is available at ADV7625 ADV7626 ADV7627 evaluation board software package documents. This document explains for Blackfin based eval board with VDSP. The same way you can integrate for ARM also. Please let us know if any issues?

    Thanks,

    Poornima

  • hello;

    1、My spi function is empty, as shown in the figure below

    • 2、yes,All operations are on the eval board
    • 3、I looked at the data that you gave me, but there was very little information on the transplant part.
  • Hi,

    Thank you for the details. We will check the same.

    For 1 and 2, What is software version you are using? Can you send the log file snippet for the same?

    Thanks,

    Poornima

  • Hi,Poornima

    This is my log file

    �
    
    U-Boot 2012.07-rc2 (ADI-2012R2) (Jul 01 2013 - 15:24:32)
    
    CPU:   ADSP bf524-0.2 (Detected Rev: 0.2) (spi flash boot)
    Board: ADI Advantiv? Video Evaluation Board
           Support: http://ez.analog.com 
    Clock: VCO: 300 MHz, Core: 300 MHz, System: 100 MHz
    RAM:   8 MiB
    SF: Detected M25P80 with page size 64 KiB, total 1 MiB
    *** Warning - bad CRC, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    KGDB:  [on serial] ready
    Hit any key to stop autoboot:  5  4  3  2  1  0 
    SF: Detected M25P80 with page size 64 KiB, total 1 MiB
    ## Booting ldr image at 0x00100000 ...
    
    
    Advantiv Video Evaluation Board Software Version: 2.4.-8376108 
    
    Heap Space: 358368 bytes free
    Diagnostic Interface set to UART.
    Initializing USB...Successful.  Waiting for USB Host
    7625_CSN set to 0.
    BF_7625_RESETn set to 1.
    
    ********************************************************************
      ADI X-Point Repeater Application Ver X2.4REL
      PLATFORM: PAVPipe Revision 1 Rev 0x1
      HDMI-RX:  ADV7625 Rev 0x4082
      HDMI-TX:  ADV7625 Rev 0x4082
      Created:  Apr  3 2019 At 09:35:54
    ********************************************************************
    
    REP: Driver Enabled
    Starting Repeater on Boot ...
    Setting I2C Addressing
    RX: BSTATUS Set to 0
    -T1: 06:677 #### Muted using: TMDS BLKOUT ASP (TX PLL not locked)
    -T1: 06:703 Setting audio parameters:
                 SF=32 KHz  CC=2  HBR=No
    Setting I2C Addressing
    RX: BSTATUS Set to 0
    -T2: 07:068 #### Muted using: TMDS BLKOUT ASP (TX PLL not locked)
    -T2: 07:093 Setting audio parameters:
                 SF=32 KHz  CC=2  HBR=No
    XREP:Updating Routing : XREP_NONE,XREP_NONE,
    XREP: Audio Pass-through Enabled on Repeater Path: 0
    XREP:Updating Routing :  sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    -R1: 07:396 @@@@ RX Mute State changed to 2 
    APP: Freerun is ON. VIC is 2
    -R1: 07:407 Configuring Sync Polarity. H: 0, V: 0 
    -R1: 07:410 @@@@ RX entering free-run
    -R1: 07:410 @@@@ RX started delay to unmute
    sylon debug:ADIAPI_OsdConInit  1195 
    OSDAPI_OSDApiInit: Initialization is done. 
    
    Virtual memory used size is (in bytes) 0
    
    -OSD 07:530 666666666666666666666
    -OSD 07:580 Adjusted OSD resolutionto 720x480 Osd3DFmt 0
    -R1: 07:583 @@@@ RX Mute State changed to 0 
    -R1: 07:583 @@@@ RX unmute delay expired
    HDMI Port A->HDMI Tx A,  sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    -R2: 07:718 @@@@ RX Mute State changed to 2 
    APP: Freerun is ON. VIC is 2
    -R2: 07:728 Configuring Sync Polarity. H: 0, V: 0 
    -R2: 07:731 @@@@ RX entering free-run
    -R2: 07:731 @@@@ RX started delay to unmute
    HDMI Port B->HDMI Tx B, 
    XREP: Output 0 -> HDMI REP 
     XREP: Output 1 -> HDMI REP 
     XREP: Splitter Mode:  FALSE  
     route a txa
    XREP:Updating Routing : Port A already selected for txa
    Command execution failed
    route b txb
    XREP:Updating Routing : Port B already selected for txb
    Command execution failed
    >-T1: 07:794 HPD changed to LOW
    -T1: 07:805 #### Muted using: TMDS BLKOUT ASP (TX PLL not locked)
    -T1: 07:830 Setting audio parameters:
                 SF=32 KHz  CC=2  HBR=No
    All TX HPDs are low..Writing Default EDID
    -T1: 07:833 ### An empty EDID was received due to HPD = 0 and hence default EDID is sent to the corresponding source ###
    -R1: 07:834 Processing TXPKT New EDID on Repeater: 0
    APP: EDID received. Setting HPD to LOW on Port A
    APP: Writing Default EDID to Primary EDID space for Port A!!..
    ------------------------- EDID BLOCK 0 -------------------------
    Edid Version 1.3
    Mon Timing:
        Pixel clock = 148.50 MHz
        H Active    = 1920
        V Active    = 1080
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1280
        V Active    = 720
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Name:   ADI HDMI
        
    
    Mon Freq:
        Min V Freq = 29 Hz
        Max V Freq = 86 Hz
        Min H Freq = 15 KHz
        Max H Freq = 111 KHz
        Max Pixel Clk Rate = 300 MHz
    Edid extensions blocks: 1
    
    ========================= EDID BLOCK 1 =========================
    CEA extension block revision 3
    Underscan=Yes  Audio=Yes  YCbCr4:4:4=Yes  YCbCr4:2:2=Yes
    Data block collection information:
        Video data block
            VIC=16
            VIC=1
            VIC=3
            VIC=4
            VIC=5
            VIC=7
            VIC=18
            VIC=19
            VIC=20
            VIC=22
            VIC=31
            VIC=32
            VIC=93
            VIC=94
            VIC=95
            VIC=98
            VIC=99
            VIC=100
        Audio data block
           Format Code          = 1 (Linear PCM)
            Max. No. of Channels= 8
            Sampling Freq. (KHz)= 32  44.1  48  88.2  96  176.4  192
            Length (bits)       = 16  20  24
        Speaker allocation data block
           0xff
           0x07
           0x00
        VSDB data block
           30-bit Deep color (RGB)
           36-bit Deep color (RGB)
           YCbCr Deep color supported
           Max TMDS clock = 300 MHz
           Content Type: Graphics (CNC0)
           Content Type: Photo    (CNC1)
           Content Type: Cinema   (CNC2)
           Content Type: Game     (CNC3)
           3D_present = 1, 3D_multi_present = 0, HDMI_VIC_LEN = 4, HDMI_3D_LEN = 0
           HDMI Sink supports 3D  with only mandatory 3D formats
           HDMI_VIC_1  = 0x1
           HDMI_VIC_2  = 0x2
           HDMI_VIC_3  = 0x3
           HDMI_VIC_4  = 0x4
        Extended Tag data block
           Extended tag code is 14
           YCbCr 4:2:0 Video Data Block (Y420VDB) 
              VIC=96
              VIC=97
              VIC=101
              VIC=102
              VIC=106
              VIC=107
    SPA location is at 0xa3, SPA = 1.0.0.0
    Mon Timing:
        Pixel clock = 27.0 MHz
        H Active    = 720
        V Active    = 576
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 27.0 MHz
        H Active    = 720
        V Active    = 480
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1920
        V Active    = 540
        Interlaced
        No stereo
        Separate sync = 3
        +ve VSync
        +ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1280
        V Active    = 720
        Progressive
        No stereo
        Separate sync = 3
        +ve VSync
        +ve HSync
    ########################### EDID END ###########################
    
    APP: Downstream Connection SPA  is  1.0.0.0
    APP: Upstream Port 0 SPA is 1.1.0.0
    APP: Upstream Port 1 SPA is 1.2.0.0
    APP: Upstream Port 2 SPA is 1.3.0.0
    APP: Upstream Port 3 SPA is 1.4.0.0
    APP: Upstream Port 4 SPA is 1.5.0.0
    APP: SPA Offset Detected as 0xa3
    -T1: 07:933 MSEN changed to LOW
    -T2: 07:938 HPD changed to LOW
    -T2: 07:948 #### Muted using: TMDS BLKOUT ASP (TX PLL not locked)
    -T2: 07:973 Setting audio parameters:
                 SF=32 KHz  CC=2  HBR=No
    All TX HPDs are low..Writing Default EDID
    -T2: 07:977 ### An empty EDID was received due to HPD = 0 and hence default EDID is sent to the corresponding source ###
    -R2: 07:977 Processing TXPKT New EDID on Repeater: 1
    APP: EDID received. Setting HPD to LOW on Port B
    APP: Writing Default EDID to Secondary EDID space for Port B!!..
    ------------------------- EDID BLOCK 0 -------------------------
    Edid Version 1.3
    Mon Timing:
        Pixel clock = 148.50 MHz
        H Active    = 1920
        V Active    = 1080
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1280
        V Active    = 720
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Name:   ADI HDMI
        
    
    Mon Freq:
        Min V Freq = 29 Hz
        Max V Freq = 86 Hz
        Min H Freq = 15 KHz
        Max H Freq = 111 KHz
        Max Pixel Clk Rate = 300 MHz
    Edid extensions blocks: 1
    
    ========================= EDID BLOCK 1 =========================
    CEA extension block revision 3
    Underscan=Yes  Audio=Yes  YCbCr4:4:4=Yes  YCbCr4:2:2=Yes
    Data block collection information:
        Video data block
            VIC=16
            VIC=1
            VIC=3
            VIC=4
            VIC=5
            VIC=7
            VIC=18
            VIC=19
            VIC=20
            VIC=22
            VIC=31
            VIC=32
            VIC=93
            VIC=94
            VIC=95
            VIC=98
            VIC=99
            VIC=100
        Audio data block
           Format Code          = 1 (Linear PCM)
            Max. No. of Channels= 8
            Sampling Freq. (KHz)= 32  44.1  48  88.2  96  176.4  192
            Length (bits)       = 16  20  24
        Speaker allocation data block
           0xff
           0x07
           0x00
        VSDB data block
           30-bit Deep color (RGB)
           36-bit Deep color (RGB)
           YCbCr Deep color supported
           Max TMDS clock = 300 MHz
           Content Type: Graphics (CNC0)
           Content Type: Photo    (CNC1)
           Content Type: Cinema   (CNC2)
           Content Type: Game     (CNC3)
           3D_present = 1, 3D_multi_present = 0, HDMI_VIC_LEN = 4, HDMI_3D_LEN = 0
           HDMI Sink supports 3D  with only mandatory 3D formats
           HDMI_VIC_1  = 0x1
           HDMI_VIC_2  = 0x2
           HDMI_VIC_3  = 0x3
           HDMI_VIC_4  = 0x4
        Extended Tag data block
           Extended tag code is 14
           YCbCr 4:2:0 Video Data Block (Y420VDB) 
              VIC=96
              VIC=97
              VIC=101
              VIC=102
              VIC=106
              VIC=107
    SPA location is at 0xa3, SPA = 1.0.0.0
    Mon Timing:
        Pixel clock = 27.0 MHz
        H Active    = 720
        V Active    = 576
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 27.0 MHz
        H Active    = 720
        V Active    = 480
        Progressive
        No stereo
        Separate sync = 3
        -ve Vsync
        -ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1920
        V Active    = 540
        Interlaced
        No stereo
        Separate sync = 3
        +ve VSync
        +ve HSync
    Mon Timing:
        Pixel clock = 74.25 MHz
        H Active    = 1280
        V Active    = 720
        Progressive
        No stereo
        Separate sync = 3
        +ve VSync
        +ve HSync
    ########################### EDID END ###########################
    
    APP: Downstream Connection SPA  is  1.0.0.0
    APP: Upstream Port 0 SPA is 1.1.0.0
    APP: Upstream Port 1 SPA is 1.2.0.0
    APP: Upstream Port 2 SPA is 1.3.0.0
    APP: Upstream Port 3 SPA is 1.4.0.0
    APP: Upstream Port 4 SPA is 1.5.0.0
    APP: SPA Offset Detected as 0xa3
    -T2: 08:078 MSEN changed to LOW
    -R1: 08:088 Bcaps/Bstatus changed. Hdcp reset required
    RX: BSTATUS Set to 101
    -R1: 08:092 HDCP setting change: BCAPS=0xc0  Bstatus=0x101
    -R1: 08:098 TMDS Clock  NOT  detected on selected port (A)
    -R1: 08:098 Resetting BKSV Waiting Status to 0 due to TMDS Change
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    APP: Freerun is ON. VIC is 2
    -R1: 08:109 Configuring Sync Polarity. H: 0, V: 0 
    -R1: 08:112 @@@@ RX entering free-run
    sylon debug:ADIAPI_OsdConInit  1195 
    -R1: 08:127 Resetting BKSV Waiting Status to 0 due to TMDS Change
    -R1: 08:128 Resetting BKSV Waiting Status to 0 due to TMDS Change
    -R1: 08:128 Resetting BKSV Waiting Status to 0 due to TMDS Change
    RX: BSTATUS Set to 101
    -R1: 08:130 Source signal changed to DVI
    -R1: 08:130 Received AVI Info Frame (RAW) Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
    -R1: 08:132 Configuring Sync Polarity. H: 0, V: 0 
    -R1: 08:133 Received AVI Info Frame Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
                 VIC = 2 (720x480p @ 60Hz)
                 Colorspace = RGB      PR = 0
    -R2: 08:152 @@@@ RX Mute State changed to 0 
    -R2: 08:152 @@@@ RX unmute delay expired
    -R2: 08:160 Bcaps/Bstatus changed. Hdcp reset required
    RX: BSTATUS Set to 101
    -R2: 08:164 HDCP setting change: BCAPS=0xc0  Bstatus=0x101
    -R2: 08:169 TMDS Clock  NOT  detected on selected port (B)
    -R2: 08:169 Resetting BKSV Waiting Status to 0 due to TMDS Change
    -R2: 08:169 Resetting BKSV Waiting Status to 0 due to TMDS Change
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    APP: Freerun is ON. VIC is 2
    -R2: 08:180 Configuring Sync Polarity. H: 0, V: 0 
    -R2: 08:183 @@@@ RX entering free-run
    -R2: 08:197 Resetting BKSV Waiting Status to 0 due to TMDS Change
    -R2: 08:198 Resetting BKSV Waiting Status to 0 due to TMDS Change
    RX: BSTATUS Set to 101
    -R2: 08:200 Source signal changed to DVI
    -R2: 08:200 Received AVI Info Frame (RAW) Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
    -R2: 08:201 Configuring Sync Polarity. H: 0, V: 0 
    -R2: 08:203 Received AVI Info Frame Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
                 VIC = 2 (720x480p @ 60Hz)
                 Colorspace = RGB      PR = 0
    XREP:: Changed system mode to Disconnected
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    -R1: 08:331 Configuring Sync Polarity. H: 0, V: 0 
    -R1: 08:335 @@@@ RX Mute State changed to 2 
    APP: Freerun is OFF
    -R1: 08:345 ----------> Int: AVI+
    XREP:: Changed system mode to Disconnected
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    -R2: 08:363 Configuring Sync Polarity. H: 0, V: 0 
    -R2: 08:367 @@@@ RX Mute State changed to 2 
    APP: Freerun is OFF
    -R2: 08:377 ----------> Int: AVI+
    -R1: 08:390 Bcaps/Bstatus changed. Hdcp reset required
    RX: BSTATUS Set to 0
    -R1: 08:394 HDCP setting change: BCAPS=0x80  Bstatus=0x0
    -R1: 08:400 Received AVI Info Frame (RAW) Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
    -R1: 08:402 Configuring Sync Polarity. H: 0, V: 0 
    -R1: 08:404 Received AVI Info Frame Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
                 VIC = 2 (720x480p @ 60Hz)
                 Colorspace = RGB      PR = 0
    -R2: 08:430 Bcaps/Bstatus changed. Hdcp reset required
    RX: BSTATUS Set to 0
    -R2: 08:434 HDCP setting change: BCAPS=0x80  Bstatus=0x0
    -R2: 08:441 Received AVI Info Frame (RAW) Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
    -R2: 08:443 Configuring Sync Polarity. H: 0, V: 0 
    -R2: 08:444 Received AVI Info Frame Packet:
                 02 02 0d 00 08 00 02 00   00 00 00 00 00 00 00 00
                 VIC = 2 (720x480p @ 60Hz)
                 Colorspace = RGB      PR = 0
    APP: De-assert Done! Setting port A  HPD to HI.
    -R2: 08:596 ----------> Int: Port A TMDS=0   1
    -R2: 08:603 Resetting BKSV Waiting Status to 0 due to TMDS Change
    -R1: 08:662 TMDS Clock  NOT  detected on selected port (A)
    -R1: 08:662 Resetting BKSV Waiting Status to 0 due to TMDS Change
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
     sylon debug : ****************ProcessFreeRun ###################
    -R1: 08:669 Configuring Sync Polarity. H: 0, V: 0 
    APP: Freerun is OFF
    APP: De-assert Done! Setting port B  HPD to HI.
    

    Would you get the same results if you tried it the way I said?

    Looking forward to your reply. Thank you

    sylon

  • Hi,

    Thank you for the log files. We tested the OSD with 6 labels and build the VDSP project and seen the below with Eval board.

    After emptying the SPI transfer function in PLATFORM\BF524\spi\src\spi.c, and unplug/plug power(J12), seen the below with eval board.

    Are you doing the same step as above?

    Thanks,

    Poornima