Dear Sir/Madam,
When using the CAN controller for CAN1 and the UART in the same project, I noticed the UART init uses GPIO Port A (pin 0 and pin 1).
But at the same time, CAN1 uses these pins as Tx and Rx. Might this be causing trouble for the CAN functionality on these pins ?
UART:
// Enable GPIO port A which is used for UART0 pins
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
// Configure the pin muxing for UART0 functions on port A0 and A1.
GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
CAN :
// Enable the alternate function on the GPIO pins.
GPIOPinTypeCAN(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
// The GPIO port and pins have been set up for CAN. The CAN peripheral must be enabled.
SysCtlPeripheralEnable(SYSCTL_PERIPH_CAN1);
// Configure the GPIO pin muxing to select CAN0 functions for these pins.
// This step selects which alternate function is available for these pins.
// This is necessary if your part supports GPIO pin function muxing.
GPIOPinConfigure(GPIO_PA0_CAN1RX);
GPIOPinConfigure(GPIO_PA1_CAN1TX);
Thanks in advance for your time.