Can someone explain why the "SetPinMux" function works correctly for PORTD but not PORTA. The attempt to SetPinMux for PORTA gives a hard fault. Also, what is a hard fault?
/* Initialize UART1 pins below */
/* Ungate the port clock */
/* Affects PORTD_PCR8 register */
PORT_SetPinMux(PORTD, 8u, kPORT_MuxAlt3);
/* Affects PORTD_PCR9 register */
PORT_SetPinMux(PORTD, 9u, kPORT_MuxAlt3);
/*Set CAN0 */
I attached main.c in case you need to look at it.
Original Attachment has been moved to: main.c.zip