Hello,
Simply configure pins as below example:
SIUL2.MSCR[x].R = 0x32000000;
And toggle it as below:
SIUL2.GPDO[x].R = ~SIUL2.GPDO[x].R;
x - is your desired pin MCSR on micro (not necessary it is connected to same pin on the board - check schematics)
Have a look at example SW:
https://community.nxp.com/docs/DOC-330940
Best regards,
Peter