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.
Hi,
Good Day. I have a customer who is working with TMS320F28002x. Please see below his query for your reference. Thank you very much.
We are starting a new project with TMS320F28002x microcontroller
For the moment I am using an evaluation board, with a 180-Pin ControlCARD Docking Station
I need to use SPI interface. As a first step, I just wish to make work an example project in the development kit, and precisely C:\ti\c2000\C2000Ware_4_00_00_00\driverlib\f28002x\examples\spi\spi_ex4_external_loopback_fifo_interrupts.c
I implemented the necessary external connections that are indicated in the header of the example
//! -GPIO40 and GPIO8 - SPISIMO
//! -GPIO41 and GPIO10 - SPISOMI
//! -GPIO22 and GPIO9 - SPICLK
//! -GPIO23 and GPIO11 - SPISTE
Unfortunately, the example doesn't work. The receive interrupt spiaRxFIFOISR is never triggered.
Well, actually I already the problem. I have just built the executable file for the project example and the development kit, but it doesn't work. This example consists of configuring the SPIB module as master and the SPIA as slave. The SPIB sends a pattern and the SPIA receives it.
This example makes use of interrupts. This means, that there is a TX interrupt and an RX interrupt.
I am debugging with CCS. The TX interrupt is triggered, but the RX interrupts is not triggered
The question for you is what I have made wrong.
I have connected the pins as indicated by the example.
//! -GPIO40 and GPIO8 - SPISIMO
//! -GPIO41 and GPIO10 - SPISOMI
//! -GPIO22 and GPIO9 - SPICLK
//! -GPIO23 and GPIO11 - SPISTE
SPIA SIMO - GPIO 8 - is pin 67
SPIA SOMI - GPIO 10 - pin 69
SPIA CLK - GPIO 9 - pin 71
SPIA STE - GPIO 11 - pin 73
SPIB SIMO - GPIO 40 - is pin 75
SPIB SOMI - GPIO 41 - pin 77
SPIB CLK - GPIO 22 - pin 79
SPIB STE - GPIO 23 - pin 81
What may have made wrong? Should the code example be ready to work as is, or is some tweak needed?
Just for your background info: I have tested other examples in the development kit C2000Ware_4_00_00_00 and they works fine. For example: i2c eqep, adc... This is the first one example I found, which doesn't work
Best Regards,
Ray Vincent
Hi Ray Vincent,
Are you using the correct document for the pinout mapping? As per the TMDSCNCD280025C_Rev.A_120cCARD_pinout.pdf:
Pin name | Pin number in docking station | Pin name | Pin number in docking station |
GPIO40 | 68 | GPIO8 | 57 |
GPIO41 | 70 | GPIO10 | 61 |
GPIO22 | 72 | GPIO9 | 59 |
GPIO23 | 74 | GPIO11 | 63 |
Regards,
Veena