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.

MSP432E401Y: How to unlock PD7 pin

Part Number: MSP432E401Y

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.