Other Parts Discussed in Thread: EK-TM4C1294XL
I am using an EK-TM4C1294XL Launchpad with CCS v6 and Tivaware 2.1.0.12573
When I enable the internal eeprom the code fails to complete initialization, the debugger says it is going to the boot.asm as if the main application returned, but I'm not sure I trust that. There is no return from main, it is an infinite loop.
... SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0); // Enable EEPROM while(!HWREG(EEPROM_EEDONE)) ; MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); // Enable the hibernate module. <- Line 1 MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); // Enable UART0 <- Line 2 MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); // Enable ADC0 MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC1); // Enable ADC1 ...
If I set the debugger to stop on Line 2, it never gets there. If I set it to stop on Line 1, it stops, and then if I resume everything works fine. I've experimented with the order of calls, moved things around, but it seems like some number of cycles after enabling the EEPROM it fails if it runs at full speed. Stopping it before the fail point then resuming works fine.
Any idea what is going on?
Mike