TA的每日心情 | 开心 2020-2-14 12:16 |
---|
签到天数: 827 天 连续签到: 1 天 [LV.10]以坛为家III
|
楼主 |
发表于 2016-4-2 16:27:21
|
显示全部楼层
- Rebuild target 'SAM4L Flash'
- compiling Blinky.c...
- compiling Buttons_SAM4L-XPRO.c...
- compiling LED_SAM4L-XPRO.c...
- compiling RTX_Conf_CM.c...
- assembling startup_sam4l.s...
- compiling system_sam4l.c...
- linking...
- Program Size: Code=5312 RO-data=508 RW-data=76 ZI-data=2836
- FromELF: creating hex file...
- ".\Flash\Blinky.axf" - 0 Error(s), 0 Warning(s).
- Build Time Elapsed: 00:01:37
- Load "C:\\Keil_v5\\ARM\\Pack\\Keil\\SAM4_DFP\\1.4.0\\Boards\\Atmel\\SAM4L-XPRO\\Blinky\\Flash\\Blinky.axf"
- Include "C:\\Keil_v5\\ARM\\Pack\\Keil\\SAM4_DFP\\1.4.0\\Boards\\Atmel\\SAM4L-XPRO\\Blinky\\Set_CoreClock.ini"
- /*----------------------------------------------------------------------------
- * Name: Set_CoreClock.ini
- * Purpose: CoreClock Initialization File (used for Flash programming)
- * Note(s):
- *----------------------------------------------------------------------------
- * This file is part of the uVision/ARM development tools.
- * This software may only be used under the terms of a valid, current,
- * end user licence from KEIL for a compatible version of KEIL software
- * development tools. Nothing else gives you the right to use this software.
- *
- * This software is supplied "AS IS" without warranties of any kind.
- *
- * Copyright (c) 2013 Keil - An ARM Company. All rights reserved.
- *----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------
- Configure CoreClock to 40MHz
- *----------------------------------------------------------------------------*/
- // enable 80 MHz RC Oscillator
- // SCIF->UNLOCK = SCIF_UNLOCK_KEY | ((u32)&SCIF->RC80MCR - (u32)SCIF_BASE);
- _WDWORD(0x400E0818, 0xAA000050);
- // SCIF->RC80MCR = SCIF_RC80MCR_EN;
- _WDWORD(0x400E0850, 0x00000001);
- // while((SCIF->RC80MCR & SCIF_RC80MCR_EN) != SCIF_RC80MCR_EN);
- _sleep_(1);
- // PM->UNLOCK = PM_UNLOCK_KEY | ((u32)&PM->CPUSEL - (u32)PM_BASE);
- _WDWORD(0x400E0058, 0xAA000004);
- // PM->CPUSEL = PM_CPUSEL_CPUDIV; // 80 MHz / 2
- _WDWORD(0x400E0004, 0x00000080);
- // while((PM->SR & PM_SR_CKRDY) != PM_SR_CKRDY);
- _sleep_(1);
- // PM->UNLOCK = PM_UNLOCK_KEY | ((u32)&PM->MCCTRL - (u32)PM_BASE);
- _WDWORD(0x400E0058, 0xAA000000);
- // PM->MCCTRL = PM_MCCTRL_MCSEL_RC80M;
- _WDWORD(0x400E0000, 0x00000004);
- // while((PM->SR & PM_SR_CKRDY) != PM_SR_CKRDY);
- _sleep_(1);
- Erase Done.
- Programming Done.
- Verify OK.
- Application running ...
- Flash Load finished at 15:58:04
复制代码 |
|