Tool/software:
Hi Experts,
Good day! Posting on behalf of my customer.
I am contacting you because I have a problem wanting to make SPI communication using the EK-TM4C123GXL board.
when I'm configuring the SPI
void spiInitial()
{
// Habilitar el módulo SSI0 (equivalente al USCI en MSP430)
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0);
// Configurar el SSI0 como maestro
SSIConfigSetExpClk(SSI0_BASE, SysCtlClockGet(), SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 12000000, 8);
// Habilitar el SSI0
SSIEnable(SSI0_BASE);
// Configurar los pines GPIO para SPI (SCK, MOSI, MISO)
GPIOPinConfigure(GPIO_PA2_SSI0CLK);
GPIOPinConfigure(GPIO_PA5_SSI0TX);
GPIOPinConfigure(GPIO_PA4_SSI0RX);
GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_5 | GPIO_PIN_4);
}
enter the function
GPIOPinConfigure(GPIO_PA2_SSI0CLK);
and stay in an infinite loop
static void
FaultISR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
I know this because I did the debug.
So I don't know why it does this, I looked for information about it but I can't find an error when configuring
Regards,
Jonathan