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. I'm trying to unlock pin PD7 of the MSP432E401Y's GPIO pins. I know you have to use GPIOLOCK and GPIOCR.
The code I'm trying right now is this:
uint32_t GPIOLOCK = 0x4405B520;
HWREG(GPIOLOCK) = 0x4C4F4348;
To use HWREG(), I included the ti/ccs1020/CCS/tools/compiler/dmed/HTML/225.html file.
Right now the HWREG() function call is throwing the "expression must be a modifiable lvalue" error.
If there's a better way to access memory besides HWREG, I'm all ears.
Hello,
I was able to find this E2E post of another User who wrote a function also using HWREG() to unlock these pins. Can you take a look and let me know if this works for you too? https://e2e.ti.com/support/microcontrollers/msp430/f/msp-low-power-microcontroller-forum/738949/rtos-msp432e401y-pull-up-down-not-working-on-pd7
Thanks,
JD