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.

  • Resolved

TM4C129ENCPDT: Stuck in FaultISR after attempted execution of SSIConfigSetExpClk()

Intellectual 300 points

Replies: 1

Views: 39

Part Number: TM4C129ENCPDT

I'm seeing my program fail and getting stuck in the FaultISR when trying to run the following command on a Tiva TM4C129ENCPDT processor:

SSIConfigSetExpClk(SYSCTL_PERIPH_SSI0,sysclock,SSI_FRF_MOTO_MODE_0,SSI_MODE_MASTER,2000000,16);

I'd appreciate some suggestions on how to troubleshoot this?

It should be on SSI0, 25MHz, CPOL/CPHA = 0/0, Master, 2 MHz, and 16 bit transfer.

xPSR register is 0x61000003 - I believe this indicates a hard fault based on last 8 bits (0x03).

NVIC Fault Status register is 0x00000400 - I don't know what this indicates presently.

At Stack Pointer (address 0x20000430), the first 8 registers (R0, R1, R2, R3, R12, LR, PC, xPSR to my understanding) are: F0001C00    017D7840    00000000    00000000    2000026C    00000CDB    000011B8    61000000

  • Hi Jack,

      It should be: 

    SSIConfigSetExpClk(SSI0_BASE, sysclock, SSI_FRF_MOTO_MODE_0,SSI_MODE_MASTER, 2000000,16);

    Also make sure enable the peripheral with below.

    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0);

    regards,

    Charles

     

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.