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.

TMS320C6748: Unable to setup SPI 3 pin mode connection.

Part Number: TMS320C6748

Hello, I am new to TMS320C6748 board. I wanted to setup SPI connection between this board as master and any other sensor as slave using 3 pin mode. I am not getting any direct sample code for it. 
I am sharing my code. Currently it's BITERRFLG is getting set, which giving generating an error.
Please help.
Your early assistance is appreciated.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\include\hw\hw_psc_C6748.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\include\psc.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\include\hw\soc_C6748.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\drivers\psc.c>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\include\spi.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\include\hw\hw_spi.h>
#include <\ti\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\drivers\spi.c>
#define SPIGCR0 0x0000
#define SPIGCR1 0x0001
#define SPIINT0 0x0002
#define SPILVL 0x0003
#define SPIFLG 0x0004
#define SPIPC0 0x0005
#define SPIPC1 0x0006
#define SPIPC2 0x0007
#define SPIPC3 0x0008
#define SPIPC4 0x0009
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX