This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: LAUNCHXL-F28379D

Part Number: TMS320F28379D

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "driverlib.h"
#include "device.h"
uint32_t clock1=0,lowclock1=0;
void main(void)
{
//
// Disable the watchdog
//
SysCtl_disableWatchdog();
#ifdef CMDTOOL
CMD_init();
#endif
#ifdef _FLASH
#ifndef CMDTOOL
//
// Copy time critical code and flash setup code to RAM. This includes the
// following functions: InitFlash();
//
// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart symbols
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

移植universalmotor_lab 到 F28379D平台上,系统时钟出现了问题,目标是配置系统时钟为200M ,低速时钟为50M,

clock1=SysCtl_getClock(DEVICE_OSCSRC_FREQ);
lowclock1=SysCtl_getLowSpeedClock(DEVICE_OSCSRC_FREQ);

但是现在用读到的时钟全部是400M 。同样的代码在其他工程上是正确的。请问这个是为什么?