Dear forum,
I run into the most strange behavior.
On Keil MDK4 everything was working nicely with my board. So I wanted to switch to MDK5. I installed Legacy support and included in my project the startup_TM4C123.s. The project compiles and downloads with no errors, download and it is not running. I used the steps given in SPMU355.
Now if I use startup_TM4C129.s and system_TM4C129.c my board is able to run my software no problem.
What am I missing here?
/**************************************************************************//**
* @file system_TM4C129.c
* @brief CMSIS Device System Source File for
* TI TIVA TM4C129 Snowflake Device Series
* @version V1.00
* @date 15. May 2013
*
* @note
*
* modified by Keil
******************************************************************************/
#include <stdint.h>
//#include "TM4C129.h" // this is only needed in the old tool chain!! Freaking!!
/*----------------------------------------------------------------------------
Define clocks
*----------------------------------------------------------------------------*/
#define __SYSTEM_CLOCK (16000000ul)
/*----------------------------------------------------------------------------
Clock Variable definitions
*----------------------------------------------------------------------------*/
uint32_t SystemCoreClock = __SYSTEM_CLOCK; /*!< System Clock Frequency (Core Clock)*/
/*----------------------------------------------------------------------------
Clock functions
*----------------------------------------------------------------------------*/
void SystemCoreClockUpdate (void) /* Get Core Clock Frequency */
{
/* TODO: Updates required to fully work with TM4C129 series devices */
SystemCoreClock = __SYSTEM_CLOCK;
}
/**
* Initialize the system
*
* @param none
* @return none
*
* @brief Setup the microcontroller system.
* Initialize the System.
*/
void SystemInit (void)
{
/* TODO: Updates required to fully work with TM4C129 series devices */
#if (__FPU_USED == 1)
SCB->CPACR |= ((3UL << 10*2) | /* set CP10 Full Access */
(3UL << 11*2) ); /* set CP11 Full Access */
#endif
#ifdef UNALIGNED_SUPPORT_DISABLE
SCB->CCR |= SCB_CCR_UNALIGN_TRP_Msk;
#endif
SystemCoreClock = __SYSTEM_CLOCK;
}