Forums - Htc demo

3 posts / 0 new
Last post
Htc demo
karanpandey844
Join Date: 1 May 20
Posts: 12
Posted: Tue, 2020-05-12 06:01

Hi,

I am working with qca4020 sdk3.1 . I am working on HTC_demo (SPI) and followed the user guide

I build and flash the host and target code in 2 different 4020 board and connected the pins as given below

SPI Slave                SPI Host
GPIO/PIN              GPIO/PIN    
**************************
J5.29           CLK        J5.4
J5.31             CS         J5.2
J5.33          MISO      J5.8
J5.35          INTR       J5.35
J5.39          MOSI      J5.6

J5.40          GND        J5.40

after restarting the board

on Traget-side:

Host Target Communications TARGET-side demo
HTC_demo is alive but no msgs received recently
recv_list == NULL
Outstanding Tx Credits: 7 0 0 0
......................
 
on Host side:
 
sdhost: SPI bus frequency is 16000000
 
Loopback 500 2044B msgs@bus freq=16000000
0000000002349864 sdhost: Loopback on ep#0 0x00000064 (100) CHECKSUM VALID. (bad=0)
0000000002369727 sdhost: Loopback on ep#0 0x000000c8 (200) CHECKSUM VALID. (bad=0)
0000000002389434 sdhost: Loopback on ep#0 0x0000012c (300) CHECKSUM VALID. (bad=0)
0000000002409708 sdhost: Loopback on ep#0 0x00000190 (400) CHECKSUM VALID. (bad=0)
0000000002428459 sdhost: Loopback on ep#0 0x000001f4 (500) CHECKSUM VALID. (bad=0)
 
Bitbucket 500 2044B msgs@bus freq=16000000
Took 35822 ticks for throughput = 7303668 bps
 
sdhost: SPI bus frequency is 24000000
 
Loopback 500 2044B msgs@bus freq=24000000
0000000002672328 sdhost: Loopback on ep#0 0x00000064 (100) CHECKSUM VALID. (bad=0)
0000000002690292 sdhost: Loopback on ep#0 0x000000c8 (200) CHECKSUM VALID. (bad=0)
0000000002708968 sdhost: Loopback on ep#0 0x0000012c (300) CHECKSUM VALID. (bad=0)
0000000002727086 sdhost: Loopback on ep#0 0x00000190 (400) CHECKSUM VALID. (bad=0)
0000000002743738 sdhost: Loopback on ep#0 0x000001f4 (500) CHECKSUM VALID. (bad=0)
 
 
why target side is saying no message recieved?
 
 

 

  • Up0
  • Down0
Re: Htc demo Best Answer
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2020-05-12 10:21

The above log is an expected behavior. In the demo code, we only print "."  during reception.

There are no active message from Host Side to Target during initialization, as Target is initialized first. Below is the code snippet from HTC_demo.c

                if (!dump_once) {
                    demoprint("HTC_demo is alive but no msgs received recently\r\n");
                    if (recv_list) {
                        demoprint("recv_list != NULL\r\n");
                    } else {
                        demoprint("recv_list == NULL\r\n");
                    }
                    for (i=0; i<4; i++) {
                        qapi_HTC_slave_dump_recv_queued_buffers(interconnect, i);
                    }
                    demoprint("Outstanding Tx Credits: %d %d %d %d\r\n",
                } else {
                    demoprint(".");

  • Up0
  • Down0
karanpandey844
Join Date: 1 May 20
Posts: 12
Posted: Tue, 2020-05-12 22:28

Hi Raja,

Thanks for quick reply.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.