diff options
| -rw-r--r-- | demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch | 4 | ||||
| -rw-r--r-- | demos/XMC/RT-XMC1100-XMC_2GO/main.c | 10 | 
2 files changed, 5 insertions, 9 deletions
| diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch b/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch index bfb591209..f5777583b 100644 --- a/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch +++ b/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch @@ -17,7 +17,7 @@  <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
  <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/>
  <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
 -<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
 +<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="SysTick_Handler"/>
  <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>
  <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
  <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
 @@ -33,7 +33,7 @@  <intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
  <stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
  <stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
 -<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="null-_thread_memfill-(format)" val="4"/><content id="null-Reset_Handler-(format)" val="4"/><content id="MSP-(format)" val="4"/><content id="PSP-(format)" val="4"/><content id="r0-(format)" val="4"/><content id="xpsr-(format)" val="2"/><content id="msp-(format)" val="4"/><content id="psp-(format)" val="4"/></contentList>"/>
 +<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="PSP-(format)" val="4"/><content id="MSP-(format)" val="4"/><content id="null-Reset_Handler-(format)" val="4"/><content id="null-_thread_memfill-(format)" val="4"/><content id="r0-(format)" val="4"/><content id="xpsr-(format)" val="2"/><content id="msp-(format)" val="4"/><content id="psp-(format)" val="4"/></contentList>"/>
  <stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<globalVariableList/>
"/>
  <stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<memoryBlockExpressionList>
<memoryBlockExpressionItem>
<expression text="0x20000000"/>
</memoryBlockExpressionItem>
</memoryBlockExpressionList>
"/>
  <stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
 diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/main.c b/demos/XMC/RT-XMC1100-XMC_2GO/main.c index 71d44bca6..b16797d18 100644 --- a/demos/XMC/RT-XMC1100-XMC_2GO/main.c +++ b/demos/XMC/RT-XMC1100-XMC_2GO/main.c @@ -20,10 +20,6 @@  #define SYSTEM_CLOCK 8000000U
  #endif
 -void __early_init(void) {
 -
 -  ;
 -}
  /*
   * @brief   System Timer handler.
   */
 @@ -68,7 +64,7 @@ int main(void) {     */
    SysTick->LOAD = SYSTEM_CLOCK / CH_CFG_ST_FREQUENCY - (systime_t)1;
    SysTick->VAL = (uint32_t)0;
 -  SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk |
 +  SysTick->CTRL = SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_CLKSOURCE_Msk |
                    SysTick_CTRL_TICKINT_Msk;
    /*
 @@ -81,14 +77,14 @@ int main(void) {    /*
     * Creates the example thread.
     */
 -  (void) chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
 +   chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
    /*
     * Normal main() thread activity, in this demo it does nothing except
     * increasing the minutes counter.
     */
    while (true) {
 -    chThdSleepSeconds(60);
 +    chThdSleepSeconds(2);
      minutes_counter++;
    }
  }
 | 
