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.
Hi Gavin,
Verify if there is actually a GPIO_LOCK_KEY_DD at your hw_gpio.h.
Try without the _DD. See, code below from buttons.c.
HWREG(GPIO_PORTF_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY;
HWREG(GPIO_PORTF_BASE + GPIO_O_CR) |= 0x01;
HWREG(GPIO_PORTF_BASE + GPIO_O_LOCK) = 0;
-kel
- post edited
Hello Gavin,
I would take a step back in the debug. Can you check if the SYSCTL_RCGC_GPIO Register at 0x400FE608 has bit-5 corresponding to Port-F set?
Regards
Amit