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.

EK_TM4C129EXL: SPI Loopback Example Question

Other Parts Discussed in Thread: EK-TM4C129EXL

Hello,

Board: EK_TM4C129EXL

RTOS: 2.14.4.31

I have a problem with the shipped SPI loopback example. According to the spiloopback_readme.txt here is the configuration how to apply jumper wires:

"| EK-TM4C129EXL     | PD3->PQ0, PD2->PQ1, PG5->PF0, PG4->PQ2"

But, I dont find any PG5 and PG4 pins. Could you tell me where are these pins located?

As I understand the spi master uses SSI2 for SPI communication: 

Code block from x_initSPI() function:

 SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI2);

 GPIOPinConfigure(GPIO_PD3_SSI2CLK);
 GPIOPinConfigure(GPIO_PD2_SSI2FSS);
 GPIOPinConfigure(GPIO_PD1_SSI2XDAT0);
 GPIOPinConfigure(GPIO_PD0_SSI2XDAT1);

 GPIOPinTypeSSI(GPIO_PORTD_BASE, GPIO_PIN_0 | GPIO_PIN_1 |
                                    GPIO_PIN_2 | GPIO_PIN_3);

According to the above block the MISO and MOSI should be PD1 and PD0. 

Could you help me to get over this issue?

Thank you!

  • Hi,

    Yeap, you are correct, its a typo in the readme.

    The TM4C129EXL should be the same as the TM4C129XL:   PD3->PQ0, PD2->PQ1, PD0->PQ2, PD1->PQ3.

    You can also find this information in the TIRTOS getting started guide.pdf section 3.8 Tiva EK-TM4C129XL Settings and Resources.

    Judah