Tool/software: Code Composer Studio
Hello, I am using TM4C1230H6PM, I have a project that worked before on my board, however I am running the following problem when executing "ROM_IntMasterEnable();":
"
CORTEX_M4_0: Can't Run Target CPU: (Error -1268 @ 0x1090001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0)
"
I was able to debug from the start of my program until this line of code, here is the source:
int main(void)
{
//
// Enable lazy stacking for interrupt handlers. This allows floating-point
// instructions to be used within interrupt handlers, but at the expense of
// extra stack usage.
//
ROM_FPULazyStackingEnable();
// Set the clocking to run directly from the crystal.
ROM_SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN);
// Initialize the UART
ConfigureUART();
// Initialize LEDs
InitLED();
UARTprintf("\n***LEDs are initialized.\n");
// This needs to be initialized before CAN bus since the message Id is configured for this
// InitFlashDataHandler();
// UARTprintf("\n***Flash Data Handler is initialized.\n");
// Initialize CAN0
InitCAN0();
UARTprintf("\n***Can0 is initialized.\n");
// Initialize EEPROM
InitEEPROMHandler ();
UARTprintf("\n***Embedded E2 is initialized.\n");
// Save firmware version
saveAppFirmwareVersion ();
UARTprintf("\n***Frimware version is saved.\n");
// Initialize the on board E2
initialize25LC512 ();
UARTprintf("\n***On board E2 25LC512 is initialized.\n");
InitSwitch ();
UARTprintf("\n***Swicthes are initialized.\n");
// Handle the states of the keypad
InitStateHandler();
UARTprintf("\n***State Handler is initialized.\n");
// Initialize external E2 data logger
initDataLogger ();
UARTprintf("\n***Ext E2 data logger is initialized.\n");
// Must be called after initializing LEDs and Piezo since these are used by the timers
InitTimers();
// Enable all interrupts after everything has been configured
ROM_IntMasterEnable();
DisplayMenuOptions();
// Initialize the previous status
previous_board_status = GetBoardStatus ();
....
}
Anyone has any idea on what is going on and more importantly how to fix it? Any insight would be greatly appreciated!
Thanks
Richard