|
我把定时器应用的例子移植到KEIL5中,如图:
然后编译,一切OK.编译信息如下:
Rebuild target 'Target 1'
compiling led.c...
compiling time.c...
compiling main.c...
assembling arm_startup_nrf51.s...
compiling system_nrf51.c...
linking...
Program Size: Code=1008 RO-data=224 RW-data=4 ZI-data=4196
".\Objects\timer.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:03
FLASK及RAM设置如下:
板载仿真器,有帖子说频率要在1M以下,所以。。
再设置run to main()
感觉一切OK,开始运行debug。烧录正常,jlink正常,keil5的信息如下:
JLink info:
------------
DLL: V4.96d, compiled Jan 29 2015 11:45:37
Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
Hardware: V7.00
S/N : 20090928
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xF0000003
Target info:
------------
Device: nRF51822_xxAA
VTarget = 3.300V
State of Pins: TCK: 0, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 500 kHz
Load "E:\\nRF51822\\实验6:time定时器\\project\\Objects\\timer.axf"
*** Restricted Version with 32768 Byte Code Size Limit
*** Currently used: 1032 Bytes (3%)
但是,以上啰嗦了半天就是为了这句但是。
但是,运行的那几个按钮全是灰色的,不能用。
请教以下大家,这是为什么!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|