I want to set the bit 7 in PORTD AFSEL register to use the PD7 pin as SSI2XDAT2 peripheral but it seems that the microcontroller does not change it.
The following code does not change the bit.
HWREG(GPIO_PORTD_BASE + GPIO_O_AFSEL) |= GPIO_PIN_7; or (*((volatile uint32_t *)(0x40007420))) |= 0x80;
I also tried HWREG(GPIO_PORTD_AHB_BASE + GPIO_O_AFSEL) |= GPIO_PIN_7; or (*((volatile uint32_t *)(0x4005B420))) |= 0x80;
I've tried different approaches (using the tiva library, etc.) but it isn't working.
Furthermore, I've tried to change the bit using the debugger and I can't change it. (I can change every other bit)
This is an errata I've missed? Please help.