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.

CCS/MSP430F5529: How to write OnHalt() with a GEL file

Part Number: MSP430F5529

Tool/software: Code Composer Studio

I'm on CCS7 using the MSP430F5529LP. My code generates 6-PWM (Timer A compare outputs) to a DRV boosterpack. Suspending the program to debug causes the out pin go on low or high level depending on the moment of halt. How could I pull down an output pin after halt MSP430? I know there are solutions to perform this on C2000 family like a real time debug, EMUSTOP, etc, but none of this apply to MSP430. I'm trying to solve this issue with GEL files after reading spraa74a.pdf and wiki. The myGel.gel was selected on the advanced tab of .cxml, so I've followed the steps: build project, debug, resume... error message:

The content of myGel.gel:

OnHalt()
{
P1OUT &= ~(BIT2 + BIT3 + BIT4 + BIT5);
P2OUT &= ~(BIT4 + BIT5);
}

The error message shown after suspend:

MSP430: GEL: Error while executing OnHalt(): identifier not found: P1OUT at (P1OUT&=~((((BIT2+BIT3)+BIT4)+BIT5))) [myGel.gel:3] at OnHalt()