Tool/software: TI-RTOS
I can not get SPI working on the TM4C.
SPI Initialize code:
SPI_Params spiParams; SPI_init(); // Initialize the SPI driver SPI_Params_init(&spiParams); // Initialize SPI parameters spiParams.transferMode = SPI_MODE_BLOCKING; spiH = SPI_open(Board_SPI0, &spiParams); if(!spiH) while(1);
Calling the transfer function within task:
spiTransaction.count = 8; spiTransaction.txBuf = (Ptr)spiTxBuff; spiTransaction.rxBuf = (Ptr)spiRxBuff;
spitransferOK = SPI_transfer(spiH, &spiTransaction);
From ROV I see this exception under Hwi:
Hard Fault: FORCED: MEMFAULT: IACCVIOL Instruction Fetch Error. Address = 0xe000ed34
I have already tried increasing my task stack size and increasing the Hwi stack size.
I am using the basic blank project for TI-RTOS TM4C updated to serve as an http server.
Thank you,
Dillon