This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C123GXL rtos gpiointerrupt example get stuck and goes into exit.c

Other Parts Discussed in Thread: TM4C129XNCZAD

FSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000a
MMAR = 0x40063400
BFAR = 0x40063400
AFSR = 0x00000000
Terminating execution...

when I stepthru the code with the debugger, the code gets stuck in Board_initGPIO(); where it enters DK_TM4C123G_initGPIO(void) and skips to exit.c and enters abort functions ( ABORT - ABNORMAL PROGRAM TERMINATION.  CURRENTLY JUST HALTS EXECUTION.) 

within the DK_TM4C123G_initGPIO the code skips to exit.c when executing  GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE, GPIO_PIN_2); where GPIOPingTypeGPIOOutput has a value with error:cannot load from non-primitive location

Thank you for anyone who has taken to look into this matter 

  • Hello Embedded_career,

    Can you check if the SYSCTL.RCGCGPIO register bit corresponding to Port G is set before the GPIOPinTypeGPIOOutput is called?

    The bit position in the register would be bit-6 in the register

    Regards

    Amit

  • SYSCTL_RCGCGPIO_R6 has value of 0 before getting stuck. 

    Cheers

  • Hello Embedded_career,

    Please set this bit by calling

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);

    before calling the GPIO API's

    Regards

    Amit

  • Hi, I'm facing similar trouble trying to modify the example to meet some requirments of a future project.

    I'm working with Eva Board DK-TM4C129X, TI RTOS 2.0.01.23 and Code Composer Studio v. 6 and error occur when trying to add another task that manage acquiring voltage with ADC. ADC is set up before BIOS_start() with TivaWare functions.

    FSR = 0x0000
    HFSR = 0x40000000
    DFSR = 0x0000000b
    MMAR = 0x40038000
    BFAR = 0x40038000
    AFSR = 0x00000000

    Can someone please explain what mean these error message? It seems to me this shows the values of some registers but can't find what registers are they and what they mean.


    Thanks a lot, Mirko.

  • Hello Mirko,

    The Fault indicates that the ADC was accessed without enabling the clock

    This is given in BFAR as 0x40038000 which is the Base Address of ADC-0

    Regards

    Amit

  • Thank you Amit, what a silly error the mine.

    Is there a document that explains what these variable/registers means?

    For example, if looked for them in pdf datasheet for microcontroller TM4C129XNCZAD but can't fine them. The nearest results where bit fields "MMARV" and "BFARV" for Configurable Fault Status. I think studying by my owm what these variables are can save a lot of posting in this forum. ;)

    Mirko.

  • Hello Mirko,

    Yes, the following application note would be of interest. More data can be found if you search through the application notes and user guide on TIVA-C webpage

    http://www.ti.com/lit/an/spma043/spma043.pdf

    As you would see in the application note, the register where the fault is logged is under Cortex-M4 Peripheral under System Control Block Section.

    Regards

    Amit