Other Parts Discussed in Thread: TM4C1294NCPDT
OK, been stuck on this for 2 days and need some help. I have read all about the NMI unlock pins and this isn't such a case.
I'm using the DK-TM4C129X Connected Development Kit with CCS v5.4 and TivaWare v2.1. I am also using my own custom board with a TM4C1294NCPDT.
I can run the supplied board example uart_echo fine (yay !) on both boards and it works fine and echos characters I type to the virtual COM port (via UART0 on the MCU)
I now want to change the output from UART0 to UART3. The very first line I change fails.
I change
GPIOPinConfigure(GPIO_PA0_U0RX);
to
GPIOPinConfigure(GPIO_PJ0_U3RX);
when I do this the execution hangs in the FaultISR(void) function in startup_ccs.c
So I read spma043.pdf and it lists my error exactly "...the NVIC Fault Status (NVIC_FAULT_STAT) register has a value 0f 0x0000.8200. The value shown here indicates a bus fault, and the bits that are set are BFARVALID and PRECISERR. This means that the Bus Fault Address Register (FAULTADDR) register contains the exact value of the address that triggered the bus fault."
But this doesn't help me as I already know that the fault happens at the last line of the GPIOPinConfigure function in gpio.c (a HWREG assignment).
I forgot to mention, I need to comment out the call to PinoutSet() to make this work with my custom board as well as the DK board and I only copy and paste the required functions I need from that call then modify them as required for UART3 (shown unmodified below for UART0).
ROM_GPIOPinConfigure(GPIO_PA0_U0RX);
ROM_GPIOPinConfigure(GPIO_PA1_U0TX);
ROM_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
What is my problem ?