QCA4020 SPI communication not working on my silex board
Join Date: 2 Aug 19
Posts: 62
Posted: Wed, 2019-09-25 07:06
Hello,
I was just testing the SPI communication using QCLI_demo project, i have passed the command on CLI as you can see below.
Here while debugging found that the code is getting stuck at
qurt_signal_wait(&spi_signal, SPI_SIGNAL_TRNSFR_COMPLETE, QURT_SIGNAL_ATTR_CLEAR_MASK); and also nothing is displaying on logic analyzer as i am using echo mode, kindly suggest me possible solution for this.
Also there is no printfunction called inthe cb function for SPI.
Command List:
Commands:
0. Ver
1. Help
2. Exit
Subgroups:
3. BLE
4. HMI
5. WLAN
6. Net
7. Coex
8. FwUp
9. LP
10. Fs
11. Ecosystem
12. SecureFs
13. Crypto
14. ZigBee
15. Thread
16. Peripherals
17. Platform
18. JSON
19. FLASHLOG
20. UART
> 16
Peripherals> 1
Command List (Peripherals):
Commands:
0. Ver
1. Help
2. Up
3. Root
Subgroups:
4. ADC
5. SENSORS
6. PWM
7. Master SDCC
8. HTCSlave
9. HTCHost
10. SPI
11. GPIO
12. Keypad
Peripherals> 10
Peripherals\SPI> 1
Command List (Peripherals\SPI):
Commands:
0. Ver
1. Help
2. Up
3. Root
4. spi_test
Peripherals\SPI> spi_test 1
Thank you
Regards,
akshaay
Kindly Make sure the JTAG jumper settings are removed while verifying SPI functionality.
Hello,
Now the SPI is running properly as i can write data and view it on logic analyzer.
How can i accomplish a case for SPI communication where i want to write and read a data continuously in a single chip select operation.
Example : i want to read data in an EEPROM chip, so i Transmit memory address and read a byte from that address in continuous communication. during this entire communication my chip select will be low.
I have written below code for it
ONLY THE TRANSMITTED DATA CAN BE SEEN ON LOGIC ANALYZER AND THE CHIP SELECT GOES HIGH AFTER THAT.
Is the code written correctly for the case i need to achieve?
Suggest a solution ASAP.
Thank you.
Hello,
Waiting for the reply over SPI communicaiton. A sooner help will be appretiated.
Thank you