|
28027 DSP28x_usDelay延时的问题
[复制链接]
使用芯片28027,主频配置60M
添加了从flash复制到ram里运行。
我使用DSP28x_usDelay(1200L);
最后测出来延时是98us
DSP28x_usDelay(1000L);
测出来是84u
不知道什么原因
查看了一下.map文件
SECTION ALLOCATION MAP
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
codestart
* 0 00000000 00000002
00000000 00000002 f2802x_codestartbranch.obj (codestart)
ramfuncs 0 00000000 0000047e FAILED TO ALLOCATE
.text 0 00000000 00000ae5 FAILED TO ALLOCATE
.cinit 0 00000050 0000025c
00000050 00000246 main.obj (.cinit)
00000296 0000000a rts2800_ml.lib : exit.obj (.cinit)
000002a0 00000005 : _lock.obj (.cinit:__lock)
000002a5 00000005 : _lock.obj (.cinit:__unlock)
000002aa 00000002 --HOLE-- [fill = 0]
.pinit 0 00000050 00000000 UNINITIALIZED
.reset 0 003fffc0 00000002 DSECT
003fffc0 00000002 rts2800_ml.lib : boot.obj (.reset)
.stack 1 00000400 00000300 UNINITIALIZED
00000400 00000300 --HOLE--
DevEmuRegsFile
* 1 00000880 00000004 UNINITIALIZED
00000880 00000004 F2802x_GlobalVariableDefs.obj (DevEmuRegsFile)
SysPwrCtrlRegsFile
* 1 00000985 00000003 UNINITIALIZED
00000985 00000003 F2802x_GlobalVariableDefs.obj (SysPwrCtrlRegsFile)
FlashRegsFile
* 1 00000a80 00000008 UNINITIALIZED
00000a80 00000008 F2802x_GlobalVariableDefs.obj (FlashRegsFile)
CsmRegsFile
* 1 00000ae0 00000010 UNINITIALIZED
00000ae0 00000010 F2802x_GlobalVariableDefs.obj (CsmRegsFile)
AdcResultFile
* 1 00000b00 00000020 UNINITIALIZED
00000b00 00000020 F2802x_GlobalVariableDefs.obj (AdcResultFile)
CpuTimer0RegsFile
* 1 00000c00 00000008 UNINITIALIZED
00000c00 00000008 F2802x_GlobalVariableDefs.obj (CpuTimer0RegsFile)
CpuTimer1RegsFile
* 1 00000c08 00000008 UNINITIALIZED
00000c08 00000008 F2802x_GlobalVariableDefs.obj (CpuTimer1RegsFile)
CpuTimer2RegsFile
* 1 00000c10 00000008 UNINITIALIZED
00000c10 00000008 F2802x_GlobalVariableDefs.obj (CpuTimer2RegsFile)
PieCtrlRegsFile
* 1 00000ce0 0000001a UNINITIALIZED
00000ce0 0000001a F2802x_GlobalVariableDefs.obj (PieCtrlRegsFile)
PieVectTableFile
* 1 00000d00 00000100 UNINITIALIZED
00000d00 00000100 F2802x_GlobalVariableDefs.obj (PieVectTableFile)
EmuKeyVar
* 1 00000d00 00000001 UNINITIALIZED
00000d00 00000001 F2802x_GlobalVariableDefs.obj (EmuKeyVar)
EmuBModeVar
* 1 00000d01 00000001 UNINITIALIZED
00000d01 00000001 F2802x_GlobalVariableDefs.obj (EmuBModeVar)
FlashCallbackVar
* 1 00000d02 00000002 UNINITIALIZED
00000d02 00000002 F2802x_GlobalVariableDefs.obj (FlashCallbackVar)
FlashScalingVar
* 1 00000d04 00000002 UNINITIALIZED
00000d04 00000002 F2802x_GlobalVariableDefs.obj (FlashScalingVar)
Comp1RegsFile
* 1 00006400 00000011 UNINITIALIZED
00006400 00000011 F2802x_GlobalVariableDefs.obj (Comp1RegsFile)
Comp2RegsFile
* 1 00006420 00000011 UNINITIALIZED
00006420 00000011 F2802x_GlobalVariableDefs.obj (Comp2RegsFile)
EPwm1RegsFile
* 1 00006800 00000040 UNINITIALIZED
00006800 00000040 F2802x_GlobalVariableDefs.obj (EPwm1RegsFile)
EPwm2RegsFile
* 1 00006840 00000040 UNINITIALIZED
00006840 00000040 F2802x_GlobalVariableDefs.obj (EPwm2RegsFile)
EPwm3RegsFile
* 1 00006880 00000040 UNINITIALIZED
00006880 00000040 F2802x_GlobalVariableDefs.obj (EPwm3RegsFile)
EPwm4RegsFile
* 1 000068c0 00000040 UNINITIALIZED
000068c0 00000040 F2802x_GlobalVariableDefs.obj (EPwm4RegsFile)
GpioCtrlRegsFile
* 1 00006f80 00000040 UNINITIALIZED
00006f80 00000040 F2802x_GlobalVariableDefs.obj (GpioCtrlRegsFile)
GpioDataRegsFile
* 1 00006fc0 00000020 UNINITIALIZED
00006fc0 00000020 F2802x_GlobalVariableDefs.obj (GpioDataRegsFile)
GpioIntRegsFile
* 1 00006fe0 0000000a UNINITIALIZED
00006fe0 0000000a F2802x_GlobalVariableDefs.obj (GpioIntRegsFile)
SysCtrlRegsFile
* 1 00007010 0000001f UNINITIALIZED
00007010 0000001f F2802x_GlobalVariableDefs.obj (SysCtrlRegsFile)
SpiaRegsFile
* 1 00007040 00000010 UNINITIALIZED
00007040 00000010 F2802x_GlobalVariableDefs.obj (SpiaRegsFile)
NmiIntruptRegsFile
* 1 00007060 00000010 UNINITIALIZED
00007060 00000010 F2802x_GlobalVariableDefs.obj (NmiIntruptRegsFile)
XIntruptRegsFile
* 1 00007070 00000010 UNINITIALIZED
00007070 00000010 F2802x_GlobalVariableDefs.obj (XIntruptRegsFile)
AdcRegsFile
* 1 00007100 00000051 UNINITIALIZED
00007100 00000051 F2802x_GlobalVariableDefs.obj (AdcRegsFile)
.ebss 1 00008900 000001d8 UNINITIALIZED
00008900 000001b0 main.obj (.ebss)
00008ab0 00000004 rts2800_ml.lib : exit.obj (.ebss)
00008ab4 00000002 : _lock.obj (.ebss:__lock)
00008ab6 00000002 : _lock.obj (.ebss:__unlock)
00008ab8 00000008 --HOLE--
00008ac0 00000018 F2802x_CpuTimers.obj (.ebss)
.econst 1 00008ad8 00000104
00008ad8 00000100 f2802x_pievect.obj (.econst)
00008bd8 00000004 main.obj (.econst)
PartIdRegsFile
* 1 003d7fff 00000001 UNINITIALIZED
003d7fff 00000001 F2802x_GlobalVariableDefs.obj (PartIdRegsFile)
CsmPwlFile
* 1 003f7ff8 00000008 UNINITIALIZED
003f7ff8 00000008 F2802x_GlobalVariableDefs.obj (CsmPwlFile)
出现FAILED TO ALLOCATE和UNINITIALIZED,估计问题出在这儿,不知道怎么解决,cmd,用的官方F28027.cmd文件
|
|