Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

cc2640 外部时钟源以及初始化晶振问题,望请指教

$
0
0

因为想使用外部时钟,在ccfg_app_ble.c 里面有下面的设置

#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION            0x1          // External LF clock

#define SET_CCFG_EXT_LF_CLK_DIO                         0x01                        // DIO number if using external LF clock

#define SET_CCFG_EXT_LF_CLK_RTC_INCREMENT               0x800000   // RTC increment representing the external LF clock frequency

但是烧录后却发现不会广播,搜不到设备。如果我用 iar 的download and debug, 却发现 go 的按钮不能按,然后当我想关掉debug的时候,就会出现错误信息

Fatal error: Failed to stop execution: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.228.0) Session aborted!

如果我把 SET_CCFG_MODE_CONF_SCLK_LF_OPTION 数值改回 0x2,一切就正常了,请问我应该如何正确使用外部时钟源


Viewing all articles
Browse latest Browse all 7485

Trending Articles