Other Parts Discussed in Thread: TM4C123GH6PM
I found found some issues in the code generated by the PinMux Utility.
1. The code for the SCL pin on the I2C port generated is:
MAP_GPIOPinConfigure(GPIO_PB2_I2C0SCL);
MAP_GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_2);
It should be:
MAP_GPIOPinConfigure(GPIO_PB2_I2C0SCL);
GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_2);
as Stellarisware does not map the GPIOPinTypeI2CSL to ROM
2. USB code generated is:
//
// Enable port PL7 for USB0 USB0DM
//
MAP_GPIOPinConfigure(GPIO_PL7_USB0DM);
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_7);
//
// Enable port PB0 for USB0 USB0ID
//
MAP_GPIOPinConfigure(GPIO_PB0_USB0ID);
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0);
//
// Enable port PB1 for USB0 USB0VBUS
//
MAP_GPIOPinConfigure(GPIO_PB1_USB0VBUS);
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_1);
//
// Enable port PL6 for USB0 USB0DP
//
MAP_GPIOPinConfigure(GPIO_PL6_USB0DP);
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_6);
Should be:
// Enable port PL7 for USB0 USB0DM
//
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_7);
//
// Enable port PB0 for USB0 USB0ID
//
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0);
//
// Enable port PB1 for USB0 USB0VBUS
//
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_1);
//
// Enable port PL6 for USB0 USB0DP
//
MAP_GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_6);
As GPIO_PL7_USB0DM,GPIO_PB0_USB0ID,GPIO_PB1_USB0VBUS,GPIO_PL6_USB0DP are not valid defines because they are never referenced in code.