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.

SSI program stall after AFSEL register call.

I am trying to set up the SSI as per the datasheet. I am using the TM4C launchpad and have called for an LED to light after the following two lines, but it never ends up lighting up:

// Alternate function select on PA_2, PA_3, PA_4, PA_5
GPIO_PORTA_AFSEL_R |= (1<<2) | (1<<4) | (2<<5);
GPIO_PORTA_AFSEL_R &= ~(1<<3);

This should be selecting the alternate functions on the IO pins to work as SSI, except for the CS pin (pin PA_3) which I need to manually manipulate. When I run the code on the launchpad the LED does not light up after these two lines. What gives?

-Alex

  • Hello Alex

    Is the clock to the GPIO Port A enabled? Also the method that you have used is called DRM, which is something we do plan to deprecate in future SW release due to the poor code readability. I would suggest (like in the pas) to move to TivaWare API's.

    Regards
    Amit