Part Number:TMS320F28035Other Parts Discussed in Thread:C2000WARE
程序思路定时器0定时触发ADC采用,转换完成后触发ADC中断。
定时器配置
ADC中断配置
一开始使用的是C2000软件提供的FLASH的CMD文件,ramfuncs存放空间配置为
经测试定时器以及ADC中断均为配置频率25600
后来由于使用CLA,CMD文件转为C2000软件提供的CMD文件,ramfuncs存放空间配置为
经测试定时器以及ADC中断分别为25600以及12800;
当定时器定时频率改为51200时,ADC的频率为25600
中断频率缩小了1倍,最终定位问题点为ramfuncs存放空间导致的,但是还是不清楚是我的代码导致的这个现象还是啥
在线求助-.-while循环里啥也没干
下图为初始化
下图为中断函数,未搬移
在线求助-.-
Ben Qin:
您好,建议您尝试在ADC中断中吧TIMER计时暂停,在中断结束后再开启,这样应该能做到频率一致。
,
小趴菜:
现在是ADC中断里基本没有处理数据,只翻控制了一个IO,25600的频率是39us,也是能执行的过来的,目前通过更改ramfuncs的存放空间就能实现频率保持一致,但是不明白是什么原因导致的,两个CMD文件都是取自C2000,C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f2803x\common\cmd,F28035.cmd以及F28035_CLA_C.cmd;前者可实现与定时器的频率一致,后者ADC的中断是定时器中断的1半,测试过程中除了CMD文件的不同,程序未做任何改动。
,
Ben Qin:
那么我推测可能是相关ADC代码并没有放在RAM中运行。能否分享下你的.map文件?以及检查下ADC相关函数是否放在RAM中运行。
如果你只将ramfunc改成一开始使用的,ADC中断频率是否正常?
,
小趴菜:
******************************************************************************TMS320C2000 Linker PC v22.6.0****************************************************************************** >> Linked Thu Sep 14 16:00:07 2023OUTPUT FILE NAME:<DSP28035CLADEMO.out> ENTRY POINT SYMBOL: "_c_int00"address: 003f671eMEMORY CONFIGURATIONnameoriginlengthusedunusedattrfill ------------------------------------------------------------------- PAGE 0:RAMM000000050000003b000000000000003b0RWIXRAML0000080000000080000000344000004bcRWIXOTP003d7800000004000000000000000400RWIXFLASHH003e8000000020000000000000002000RWIXFLASHG003ea000000020000000000000002000RWIXFLASHF003ec000000020000000000000002000RWIXFLASHE003ee000000020000000000000002000RWIXFLASHD003f0000000020000000000000002000RWIXFLASHC003f2000000020000000001f00001fe1RWIXFLASHA003f600000001f80000009df000015a1RWIXCSM_RSVD003f7f80000000760000007600000000RWIXBEGIN003f7ff6000000020000000200000000RWIXCSM_PWL_P0003f7ff8000000080000000800000000RWIXIQTABLES003fe00000000b500000000000000b50RWIXIQTABLES2003feb500000008c000000000000008cRWIXIQTABLES3003febdc000000aa00000000000000aaRWIXROM003ff27c00000d440000000000000d44RWIXRESET003fffc0000000020000000000000002RWIXVECTORS003fffc20000003e000000000000003eRWIXPAGE 1:BOOT_RSVD00000000000000500000000000000050RWIXRAMM100000400000004000000000000000400RWIXDEV_EMU00000880000001050000000400000101RWIXSYS_PWR_CTL00000985000000030000000300000000RWIXFLASH_REGS00000a80000000600000000800000058RWIXCSM00000ae0000000100000001000000000RWIXADC_RESULT00000b00000000200000002000000000RWIXCPU_TIMER000000c00000000080000000800000000RWIXCPU_TIMER100000c08000000080000000800000000RWIXCPU_TIMER200000c10000000080000000800000000RWIXPIE_CTRL00000ce0000000200000001a00000006RWIXPIE_VECT00000d00000001000000010000000000RWIXCLA100001400000000800000004000000040RWIXECANA0000600000000040000000340000000cRWIXECANA_LAM00006040000000400000004000000000RWIXECANA_MOTS00006080000000400000004000000000RWIXECANA_MOTO000060c0000000400000004000000000RWIXECANA_MBOX00006100000001000000010000000000RWIXCOMP10000640000000020000000140000000cRWIXCOMP20000642000000020000000140000000cRWIXCOMP30000644000000020000000140000000cRWIXEPWM100006800000000400000004000000000RWIXEPWM200006840000000400000004000000000RWIXEPWM300006880000000400000004000000000RWIXEPWM4000068c0000000400000004000000000RWIXEPWM500006900000000400000004000000000RWIXEPWM600006940000000400000004000000000RWIXEPWM700006980000000400000004000000000RWIXECAP100006a00000000200000002000000000RWIXHRCAP100006ac0000000200000002000000000RWIXHRCAP200006ae0000000200000002000000000RWIXEQEP100006b00000000400000004000000000RWIXLINA00006c00000000800000004a00000036RWIXGPIOCTRL00006f80000000400000004000000000RWIXGPIODAT00006fc0000000200000002000000000RWIXGPIOINT00006fe0000000200000000c00000014RWIXSYSTEM00007010000000200000002000000000RWIXSPIA00007040000000100000001000000000RWIXSCIA00007050000000100000001000000000RWIXNMIINTRUPT00007060000000100000001000000000RWIXXINTRUPT00007070000000100000001000000000RWIXADC00007100000000800000005000000030RWIXSPIB00007740000000100000001000000000RWIXI2CA0000790000000040000000220000001eRWIXPARTID003d7e80000000010000000100000000RWIXFLASHB003f4000000020000000000000002000RWIXCSM_PWL003f7ff8000000080000000800000000RWIXSECTION ALLOCATION MAPoutputattributes/ sectionpageoriginlengthinput sections ------------------------------------------------ .stack00000800000000300UNINITIALIZED0000800000000300--HOLE--.ebss00000830000000025UNINITIALIZED0000830000000018DSP2803x_CpuTimers.obj (.ebss)0000831800000006rts2800_ml.lib : exit.c.obj (.ebss)0000831e00000002DSP2803x_Lin.obj (.ebss)0000832000000002rts2800_ml.lib : _lock.c.obj (.ebss:__lock)0000832200000002: _lock.c.obj (.ebss:__unlock)0000832400000001main.obj (.ebss)ramfuncs0003f20000000001fRUN ADDR = 00008325003f20000000001bDSP2803x_SysCtrl.obj (ramfuncs)003f201b00000004DSP2803x_usDelay.obj (ramfuncs).cinit0003f69c60000001a003f69c60000000erts2800_ml.lib : exit.c.obj (.cinit)003f69d400000005: _lock.c.obj (.cinit:__lock)003f69d900000005: _lock.c.obj (.cinit:__unlock)003f69de00000002--HOLE-- [fill = 0]csm_rsvd0003f7f8000000076003f7f8000000076DSP2803x_CSMPasswords.obj (csm_rsvd)DevEmuRegsFile*10000088000000004UNINITIALIZED0000088000000004DSP2803x_GlobalVariableDefs.obj (DevEmuRegsFile)SysPwrCtrlRegsFile*10000098500000003UNINITIALIZED0000098500000003DSP2803x_GlobalVariableDefs.obj (SysPwrCtrlRegsFile)FlashRegsFile*100000a8000000008UNINITIALIZED00000a8000000008DSP2803x_GlobalVariableDefs.obj (FlashRegsFile)CsmRegsFile*100000ae000000010UNINITIALIZED00000ae000000010DSP2803x_GlobalVariableDefs.obj (CsmRegsFile)AdcResultFile*100000b0000000020UNINITIALIZED00000b0000000020DSP2803x_GlobalVariableDefs.obj (AdcResultFile)CpuTimer0RegsFile*100000c0000000008UNINITIALIZED00000c0000000008DSP2803x_GlobalVariableDefs.obj (CpuTimer0RegsFile)CpuTimer1RegsFile*100000c0800000008UNINITIALIZED00000c0800000008DSP2803x_GlobalVariableDefs.obj (CpuTimer1RegsFile)CpuTimer2RegsFile*100000c1000000008UNINITIALIZED00000c1000000008DSP2803x_GlobalVariableDefs.obj (CpuTimer2RegsFile)PieCtrlRegsFile*100000ce00000001aUNINITIALIZED00000ce00000001aDSP2803x_GlobalVariableDefs.obj (PieCtrlRegsFile)PieVectTableFile*100000d0000000100UNINITIALIZED00000d0000000100DSP2803x_GlobalVariableDefs.obj (PieVectTableFile)EmuKeyVar*100000d0000000001UNINITIALIZED00000d0000000001DSP2803x_GlobalVariableDefs.obj (EmuKeyVar)EmuBModeVar*100000d0100000001UNINITIALIZED00000d0100000001DSP2803x_GlobalVariableDefs.obj (EmuBModeVar)FlashCallbackVar*100000d0200000002UNINITIALIZED00000d0200000002DSP2803x_GlobalVariableDefs.obj (FlashCallbackVar)FlashScalingVar*100000d0400000002UNINITIALIZED00000d0400000002DSP2803x_GlobalVariableDefs.obj (FlashScalingVar)Cla1RegsFile*10000140000000040UNINITIALIZED0000140000000040DSP2803x_GlobalVariableDefs.obj (Cla1RegsFile)ECanaRegsFile*10000600000000034UNINITIALIZED0000600000000034DSP2803x_GlobalVariableDefs.obj (ECanaRegsFile)ECanaLAMRegsFile*10000604000000040UNINITIALIZED0000604000000040DSP2803x_GlobalVariableDefs.obj (ECanaLAMRegsFile)ECanaMOTSRegsFile*10000608000000040UNINITIALIZED0000608000000040DSP2803x_GlobalVariableDefs.obj (ECanaMOTSRegsFile)ECanaMOTORegsFile*1000060c000000040UNINITIALIZED000060c000000040DSP2803x_GlobalVariableDefs.obj (ECanaMOTORegsFile)ECanaMboxesFile*10000610000000100UNINITIALIZED0000610000000100DSP2803x_GlobalVariableDefs.obj (ECanaMboxesFile)Comp1RegsFile*10000640000000014UNINITIALIZED0000640000000014DSP2803x_GlobalVariableDefs.obj (Comp1RegsFile)Comp2RegsFile*10000642000000014UNINITIALIZED0000642000000014DSP2803x_GlobalVariableDefs.obj (Comp2RegsFile)Comp3RegsFile*10000644000000014UNINITIALIZED0000644000000014DSP2803x_GlobalVariableDefs.obj (Comp3RegsFile)EPwm1RegsFile*10000680000000040UNINITIALIZED0000680000000040DSP2803x_GlobalVariableDefs.obj (EPwm1RegsFile)EPwm2RegsFile*10000684000000040UNINITIALIZED0000684000000040DSP2803x_GlobalVariableDefs.obj (EPwm2RegsFile)EPwm3RegsFile*10000688000000040UNINITIALIZED0000688000000040DSP2803x_GlobalVariableDefs.obj (EPwm3RegsFile)EPwm4RegsFile*1000068c000000040UNINITIALIZED000068c000000040DSP2803x_GlobalVariableDefs.obj (EPwm4RegsFile)EPwm5RegsFile*10000690000000040UNINITIALIZED0000690000000040DSP2803x_GlobalVariableDefs.obj (EPwm5RegsFile)EPwm6RegsFile*10000694000000040UNINITIALIZED0000694000000040DSP2803x_GlobalVariableDefs.obj (EPwm6RegsFile)EPwm7RegsFile*10000698000000040UNINITIALIZED0000698000000040DSP2803x_GlobalVariableDefs.obj (EPwm7RegsFile)ECap1RegsFile*100006a0000000020UNINITIALIZED00006a0000000020DSP2803x_GlobalVariableDefs.obj (ECap1RegsFile)HRCap1RegsFile*100006ac000000020UNINITIALIZED00006ac000000020DSP2803x_GlobalVariableDefs.obj (HRCap1RegsFile)HRCap2RegsFile*100006ae000000020UNINITIALIZED00006ae000000020DSP2803x_GlobalVariableDefs.obj (HRCap2RegsFile)EQep1RegsFile*100006b0000000040UNINITIALIZED00006b0000000040DSP2803x_GlobalVariableDefs.obj (EQep1RegsFile)LinaRegsFile*100006c000000004aUNINITIALIZED00006c000000004aDSP2803x_GlobalVariableDefs.obj (LinaRegsFile)GpioCtrlRegsFile*100006f8000000040UNINITIALIZED00006f8000000040DSP2803x_GlobalVariableDefs.obj (GpioCtrlRegsFile)GpioDataRegsFile*100006fc000000020UNINITIALIZED00006fc000000020DSP2803x_GlobalVariableDefs.obj (GpioDataRegsFile)GpioIntRegsFile*100006fe00000000cUNINITIALIZED00006fe00000000cDSP2803x_GlobalVariableDefs.obj (GpioIntRegsFile)SysCtrlRegsFile*10000701000000020UNINITIALIZED0000701000000020DSP2803x_GlobalVariableDefs.obj (SysCtrlRegsFile)SpiaRegsFile*10000704000000010UNINITIALIZED0000704000000010DSP2803x_GlobalVariableDefs.obj (SpiaRegsFile)SciaRegsFile*10000705000000010UNINITIALIZED0000705000000010DSP2803x_GlobalVariableDefs.obj (SciaRegsFile)NmiIntruptRegsFile*10000706000000010UNINITIALIZED0000706000000010DSP2803x_GlobalVariableDefs.obj (NmiIntruptRegsFile)XIntruptRegsFile*10000707000000010UNINITIALIZED0000707000000010DSP2803x_GlobalVariableDefs.obj (XIntruptRegsFile)AdcRegsFile*10000710000000050UNINITIALIZED0000710000000050DSP2803x_GlobalVariableDefs.obj (AdcRegsFile)SpibRegsFile*10000774000000010UNINITIALIZED0000774000000010DSP2803x_GlobalVariableDefs.obj (SpibRegsFile)I2caRegsFile*10000790000000022UNINITIALIZED0000790000000022DSP2803x_GlobalVariableDefs.obj (I2caRegsFile)PartIdRegsFile*1003d7e8000000001UNINITIALIZED003d7e8000000001DSP2803x_GlobalVariableDefs.obj (PartIdRegsFile)CsmPwlFile*1003f7ff800000008UNINITIALIZED003f7ff800000008DSP2803x_GlobalVariableDefs.obj (CsmPwlFile).pinit0003f600000000000UNINITIALIZED.text0003f6000000008c5003f60000000022cDSP2803x_Adc.obj (.text)003f622c0000017cDSP2803x_DefaultIsr.obj (.text:retain)003f63a800000148DSP2803x_SysCtrl.obj (.text)003f64f0000000d8InitPeripheral.obj (.text)003f65c800000089main.obj (.text)003f665100000073DSP2803x_CpuTimers.obj (.text)003f66c40000005arts2800_ml.lib : fs_mpy28.asm.obj (.text)003f671e00000054: boot28.asm.obj (.text)003f677200000030ControlProtect.obj (.text:retain)003f67a200000029rts2800_ml.lib : exit.c.obj (.text)003f67cb00000029: fs_tol28.asm.obj (.text)003f67f400000028DSP2803x_PieCtrl.obj (.text)003f681c00000026DSP2803x_PieVect.obj (.text)003f684200000024rts2800_ml.lib : cpy_tbl.c.obj (.text)003f68660000001d: memcpy.c.obj (.text)003f688300000013DSP2803x_Gpio.obj (.text)003f689600000011rts2800_ml.lib : args_main.c.obj (.text)003f68a700000009: _lock.c.obj (.text)003f68b000000008DSP2803x_CodeStartBranch.obj (.text)003f68b800000007DSP2803x_DisInt.obj (.text)003f68bf00000003DSP2803x_DBGIER.obj (.text)003f68c200000002rts2800_ml.lib : pre_init.c.obj (.text)003f68c400000001: startup.c.obj (.text)codestart*0003f7ff600000002003f7ff600000002DSP2803x_CodeStartBranch.obj (codestart)csmpasswds*0003f7ff800000008003f7ff800000008DSP2803x_CSMPasswords.obj (csmpasswds).econst0003f68c600000100003f68c600000100DSP2803x_PieVect.obj (.econst:_PieVectTableInit).reset0003fffc000000002DSECT003fffc000000002rts2800_ml.lib : boot28.asm.obj (.reset)vectors0003fffc200000000DSECTMODULE SUMMARYModulecodeinitialized datauninitialized data--------------------------------------------.\source\system\DSP2803x_GlobalVariableDefs.obj002024DSP2803x_Adc.obj55600DSP2803x_SysCtrl.obj38200DSP2803x_DefaultIsr.obj38000DSP2803x_PieVect.obj382560DSP2803x_CpuTimers.obj115024DSP2803x_CSMPasswords.obj01260DSP2803x_PieCtrl.obj4000DSP2803x_Gpio.obj1900DSP2803x_CodeStartBranch.obj1000DSP2803x_usDelay.obj800DSP2803x_DisInt.obj700DSP2803x_DBGIER.obj300DSP2803x_Lin.obj002+--+---------------------------------+------+------------------+--------------------+Total:15583822050.\source\user\InitPeripheral.obj21600main.obj13701ControlProtect.obj4800+--+---------------------------------+------+------------------+--------------------+Total:40101C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\lib\rts2800_ml.libfs_mpy28.asm.obj9000boot28.asm.obj8400exit.c.obj41146fs_tol28.asm.obj4100cpy_tbl.c.obj3600memcpy.c.obj2900_lock.c.obj9104args_main.c.obj1700pre_init.c.obj200startup.c.obj100+--+---------------------------------+------+------------------+--------------------+Total:3502410Stack:00768+--+---------------------------------+------+------------------+--------------------+Grand Total:23094062829GLOBAL DATA SYMBOLS: SORTED BY DATA PAGEaddressdata pagename ---------------------------- 0000088022 (00000880)_DevEmuRegs0000098526 (00000980)_SysPwrCtrlRegs00000a802a (00000a80)_FlashRegs00000ae02b (00000ac0)_CsmRegs00000b002c (00000b00)_AdcResult00000c0030 (00000c00)_CpuTimer0Regs 00000c0830 (00000c00)_CpuTimer1Regs 00000c1030 (00000c00)_CpuTimer2Regs00000ce033 (00000cc0)_PieCtrlRegs00000d0034 (00000d00)_EmuKey 00000d0034 (00000d00)_PieVectTable 00000d0134 (00000d00)_EmuBMode 00000d0234 (00000d00)_Flash_CallbackPtr 00000d0434 (00000d00)_Flash_CPUScaleFactor0000140050 (00001400)_Cla1Regs00006000180 (00006000)_ECanaRegs00006040181 (00006040)_ECanaLAMRegs00006080182 (00006080)_ECanaMOTSRegs000060c0183 (000060c0)_ECanaMOTORegs00006100184 (00006100)_ECanaMboxes00006400190 (00006400)_Comp1Regs 00006420190 (00006400)_Comp2Regs00006440191 (00006440)_Comp3Regs000068001a0 (00006800)_EPwm1Regs000068401a1 (00006840)_EPwm2Regs000068801a2 (00006880)_EPwm3Regs000068c01a3 (000068c0)_EPwm4Regs000069001a4 (00006900)_EPwm5Regs000069401a5 (00006940)_EPwm6Regs000069801a6 (00006980)_EPwm7Regs00006a001a8 (00006a00)_ECap1Regs00006ac01ab (00006ac0)_HRCap1Regs 00006ae01ab (00006ac0)_HRCap2Regs00006b001ac (00006b00)_EQep1Regs00006c001b0 (00006c00)_LinaRegs00006f801be (00006f80)_GpioCtrlRegs00006fc01bf (00006fc0)_GpioDataRegs 00006fe01bf (00006fc0)_GpioIntRegs000070101c0 (00007000)_SysCtrlRegs000070401c1 (00007040)_SpiaRegs 000070501c1 (00007040)_SciaRegs 000070601c1 (00007040)_NmiIntruptRegs 000070701c1 (00007040)_XIntruptRegs000071001c4 (00007100)_AdcRegs000077401dd (00007740)_SpibRegs000079001e4 (00007900)_I2caRegs00008000200 (00008000)__stack0000830020c (00008300)_CpuTimer0 0000830820c (00008300)_CpuTimer1 0000831020c (00008300)_CpuTimer2 0000831820c (00008300)___TI_enable_exit_profile_output 0000831a20c (00008300)___TI_cleanup_ptr 0000831c20c (00008300)___TI_dtors_ptr 0000831e20c (00008300)_P0 0000831f20c (00008300)_P1 0000832020c (00008300)__lock 0000832220c (00008300)__unlock 0000832420c (00008300)_Statu003d7e80f5fa (003d7e80)_PartIdRegs003f68c6fda3 (003f68c0)_PieVectTableInit003f7ff8fdff (003f7fc0)_CsmPwlGLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Namepageaddressname---------------0003f6000.text0003f67a2C$$EXIT0003f66c4FS$$MPY0003f67cbFS$$TOL0003f628b_ADCINT1_ISR0003f6772_ADCINT1_USER_ISR0003f6290_ADCINT2_ISR0003f6344_ADCINT3_ISR0003f6349_ADCINT4_ISR0003f634e_ADCINT5_ISR0003f6353_ADCINT6_ISR0003f6358_ADCINT7_ISR0003f635d_ADCINT8_ISR0003f629f_ADCINT9_ISR0003f6067_AdcChanSelect0003f60dc_AdcConversion0003f6040_AdcOffsetSelfCal100007100_AdcRegs100000b00_AdcResult0003f6362_CLA1_INT1_ISR0003f6367_CLA1_INT2_ISR0003f636c_CLA1_INT3_ISR0003f6371_CLA1_INT4_ISR0003f6376_CLA1_INT5_ISR0003f637b_CLA1_INT6_ISR0003f6380_CLA1_INT7_ISR0003f6385_CLA1_INT8_ISR0003f64f0_CfgAdc100001400_Cla1Regs100006400_Comp1Regs100006420_Comp2Regs100006440_Comp3Regs0003f6692_ConfigCpuTimer000008300_CpuTimer0100000c00_CpuTimer0Regs000008308_CpuTimer1100000c08_CpuTimer1Regs000008310_CpuTimer2100000c10_CpuTimer2Regs1003f7ff8_CsmPwl100000ae0_CsmRegs0003f6464_CsmUnlock0003f6236_DATALOG_ISR0003f68b8_DSP28x_DisableInt0003f68bc_DSP28x_RestoreInt000008340_DSP28x_usDelay100000880_DevEmuRegs0003f63cc_DisableDog0003f633a_ECAN0INTA_ISR0003f633f_ECAN1INTA_ISR0003f62f4_ECAP1_INT_ISR100006040_ECanaLAMRegs1000060c0_ECanaMOTORegs100006080_ECanaMOTSRegs100006100_ECanaMboxes100006000_ECanaRegs100006a00_ECap1Regs0003f6399_EMPTY_ISR0003f6240_EMUINT_ISR0003f62d1_EPWM1_INT_ISR0003f62ae_EPWM1_TZINT_ISR0003f62d6_EPWM2_INT_ISR0003f62b3_EPWM2_TZINT_ISR0003f62db_EPWM3_INT_ISR0003f62b8_EPWM3_TZINT_ISR0003f62e0_EPWM4_INT_ISR0003f62bd_EPWM4_TZINT_ISR0003f62e5_EPWM5_INT_ISR0003f62c2_EPWM5_TZINT_ISR0003f62ea_EPWM6_INT_ISR0003f62c7_EPWM6_TZINT_ISR0003f62ef_EPWM7_INT_ISR0003f62cc_EPWM7_TZINT_ISR100006800_EPwm1Regs100006840_EPwm2Regs100006880_EPwm3Regs1000068c0_EPwm4Regs100006900_EPwm5Regs100006940_EPwm6Regs100006980_EPwm7Regs0003f6303_EQEP1_INT_ISR100006b00_EQep1Regs100000d01_EmuBMode100000d00_EmuKey0003f6813_EnableInterrupts0003f64da_ExtOscSel100000a80_FlashRegs100000d04_Flash_CPUScaleFactor100000d02_Flash_CallbackPtr100006f80_GpioCtrlRegs100006fc0_GpioDataRegs100006fe0_GpioIntRegs0003f62f9_HRCAP1_INT_ISR0003f62fe_HRCAP2_INT_ISR100006ac0_HRCap1Regs100006ae0_HRCap2Regs0003f631c_I2CINT1A_ISR0003f6321_I2CINT2A_ISR100007900_I2caRegs0003f624a_ILLEGAL_ISR0003f622c_INT13_ISR0003f6231_INT14_ISR0003f6000_InitAdc0003f601e_InitAdcAio0003f6651_InitCpuTimers000008325_InitFlash0003f6883_InitGpio0003f6428_InitPeripheralClocks0003f67f4_InitPieCtrl0003f681c_InitPieVectTable0003f63d4_InitPll0003f63a8_InitSysCtrl0003f6495_IntOsc1Sel0003f64a5_IntOsc2Sel0003f6330_LIN0INTA_ISR0003f6335_LIN1INTA_ISR0003f6394_LUF_ISR0003f638f_LVF_ISR100006c00_LinaRegs0003f6245_NMI_ISR100007060_NmiIntruptRegs00000831e_P000000831f_P10003f639e_PIE_RESERVED1003d7e80_PartIdRegs100000ce0_PieCtrlRegs100000d00_PieVectTable0003f68c6_PieVectTableInit0003f623b_RTOSINT_ISRabs0000001f_RamfuncsLoadSize0003f2000_RamfuncsLoadStart000008325_RamfuncsRunStart0003f6326_SCIRXINTA_ISR0003f632b_SCITXINTA_ISR0003f6308_SPIRXINTA_ISR0003f6312_SPIRXINTB_ISR0003f630d_SPITXINTA_ISR0003f6317_SPITXINTB_ISR100007050_SciaRegs0003f63c2_ServiceDog0003f68bf_SetDBGIER100007040_SpiaRegs100007740_SpibRegs000008324_Statu100007010_SysCtrlRegs100000985_SysPwrCtrlRegs0003f6799_TIMER0_USER_ISR0003f62a4_TINT0_ISR0003f627c_USER10_ISR0003f6281_USER11_ISR0003f6286_USER12_ISR0003f624f_USER1_ISR0003f6254_USER2_ISR0003f6259_USER3_ISR0003f625e_USER4_ISR0003f6263_USER5_ISR0003f6268_USER6_ISR0003f626d_USER7_ISR0003f6272_USER8_ISR0003f6277_USER9_ISR0003f62a9_WAKEINT_ISR0003f6295_XINT1_ISR0003f629a_XINT2_ISR0003f638a_XINT3_ISR100007070_XIntruptRegs0003f64bf_XtalOscSel000008300__STACK_ENDabs00000300__STACK_SIZE00000831a___TI_cleanup_ptr00000831c___TI_dtors_ptr000008318___TI_enable_exit_profile_output absffffffff___TI_pprof_out_hndlabsffffffff___TI_prof_data_sizeabsffffffff___TI_prof_data_startabsffffffff___binit__absffffffff___c_args__0003f69c6___cinit__0003f68c5___etext__absffffffff___pinit__0003f6000___text__0003f6896__args_main000008320__lock0003f68af__nop0003f68ab__register_lock0003f68a7__register_unlock000008000__stack0003f68c4__system_post_cinit0003f68c2__system_pre_init000008322__unlock0003f67a2_abort0003f671e_c_int000003f6842_copy_in0003f67a4_exit0003f65c8_main0003f6866_memcpy0003f63a3_rsvd_ISRabsffffffffbinit0003f69c6cinit0003f7ff6code_start0003f68c5etextabsffffffffpinitGLOBAL SYMBOLS: SORTED BY Symbol Addresspageaddressname---------------000008000__stack000008300_CpuTimer0000008300__STACK_END000008308_CpuTimer1000008310_CpuTimer2000008318___TI_enable_exit_profile_output 00000831a___TI_cleanup_ptr00000831c___TI_dtors_ptr00000831e_P000000831f_P1000008320__lock000008322__unlock000008324_Statu000008325_InitFlash000008325_RamfuncsRunStart000008340_DSP28x_usDelay0003f2000_RamfuncsLoadStart0003f6000.text0003f6000_InitAdc0003f6000___text__0003f601e_InitAdcAio0003f6040_AdcOffsetSelfCal0003f6067_AdcChanSelect0003f60dc_AdcConversion0003f622c_INT13_ISR0003f6231_INT14_ISR0003f6236_DATALOG_ISR0003f623b_RTOSINT_ISR0003f6240_EMUINT_ISR0003f6245_NMI_ISR0003f624a_ILLEGAL_ISR0003f624f_USER1_ISR0003f6254_USER2_ISR0003f6259_USER3_ISR0003f625e_USER4_ISR0003f6263_USER5_ISR0003f6268_USER6_ISR0003f626d_USER7_ISR0003f6272_USER8_ISR0003f6277_USER9_ISR0003f627c_USER10_ISR0003f6281_USER11_ISR0003f6286_USER12_ISR0003f628b_ADCINT1_ISR0003f6290_ADCINT2_ISR0003f6295_XINT1_ISR0003f629a_XINT2_ISR0003f629f_ADCINT9_ISR0003f62a4_TINT0_ISR0003f62a9_WAKEINT_ISR0003f62ae_EPWM1_TZINT_ISR0003f62b3_EPWM2_TZINT_ISR0003f62b8_EPWM3_TZINT_ISR0003f62bd_EPWM4_TZINT_ISR0003f62c2_EPWM5_TZINT_ISR0003f62c7_EPWM6_TZINT_ISR0003f62cc_EPWM7_TZINT_ISR0003f62d1_EPWM1_INT_ISR0003f62d6_EPWM2_INT_ISR0003f62db_EPWM3_INT_ISR0003f62e0_EPWM4_INT_ISR0003f62e5_EPWM5_INT_ISR0003f62ea_EPWM6_INT_ISR0003f62ef_EPWM7_INT_ISR0003f62f4_ECAP1_INT_ISR0003f62f9_HRCAP1_INT_ISR0003f62fe_HRCAP2_INT_ISR0003f6303_EQEP1_INT_ISR0003f6308_SPIRXINTA_ISR0003f630d_SPITXINTA_ISR0003f6312_SPIRXINTB_ISR0003f6317_SPITXINTB_ISR0003f631c_I2CINT1A_ISR0003f6321_I2CINT2A_ISR0003f6326_SCIRXINTA_ISR0003f632b_SCITXINTA_ISR0003f6330_LIN0INTA_ISR0003f6335_LIN1INTA_ISR0003f633a_ECAN0INTA_ISR0003f633f_ECAN1INTA_ISR0003f6344_ADCINT3_ISR0003f6349_ADCINT4_ISR0003f634e_ADCINT5_ISR0003f6353_ADCINT6_ISR0003f6358_ADCINT7_ISR0003f635d_ADCINT8_ISR0003f6362_CLA1_INT1_ISR0003f6367_CLA1_INT2_ISR0003f636c_CLA1_INT3_ISR0003f6371_CLA1_INT4_ISR0003f6376_CLA1_INT5_ISR0003f637b_CLA1_INT6_ISR0003f6380_CLA1_INT7_ISR0003f6385_CLA1_INT8_ISR0003f638a_XINT3_ISR0003f638f_LVF_ISR0003f6394_LUF_ISR0003f6399_EMPTY_ISR0003f639e_PIE_RESERVED0003f63a3_rsvd_ISR0003f63a8_InitSysCtrl0003f63c2_ServiceDog0003f63cc_DisableDog0003f63d4_InitPll0003f6428_InitPeripheralClocks0003f6464_CsmUnlock0003f6495_IntOsc1Sel0003f64a5_IntOsc2Sel0003f64bf_XtalOscSel0003f64da_ExtOscSel0003f64f0_CfgAdc0003f65c8_main0003f6651_InitCpuTimers0003f6692_ConfigCpuTimer0003f66c4FS$$MPY0003f671e_c_int000003f6772_ADCINT1_USER_ISR0003f6799_TIMER0_USER_ISR0003f67a2C$$EXIT0003f67a2_abort0003f67a4_exit0003f67cbFS$$TOL0003f67f4_InitPieCtrl0003f6813_EnableInterrupts0003f681c_InitPieVectTable0003f6842_copy_in0003f6866_memcpy0003f6883_InitGpio0003f6896__args_main0003f68a7__register_unlock0003f68ab__register_lock0003f68af__nop0003f68b8_DSP28x_DisableInt0003f68bc_DSP28x_RestoreInt0003f68bf_SetDBGIER0003f68c2__system_pre_init0003f68c4__system_post_cinit0003f68c5___etext__0003f68c5etext0003f68c6_PieVectTableInit0003f69c6___cinit__0003f69c6cinit0003f7ff6code_start100000880_DevEmuRegs100000985_SysPwrCtrlRegs100000a80_FlashRegs100000ae0_CsmRegs100000b00_AdcResult100000c00_CpuTimer0Regs100000c08_CpuTimer1Regs100000c10_CpuTimer2Regs100000ce0_PieCtrlRegs100000d00_EmuKey100000d00_PieVectTable100000d01_EmuBMode100000d02_Flash_CallbackPtr100000d04_Flash_CPUScaleFactor100001400_Cla1Regs100006000_ECanaRegs100006040_ECanaLAMRegs100006080_ECanaMOTSRegs1000060c0_ECanaMOTORegs100006100_ECanaMboxes100006400_Comp1Regs100006420_Comp2Regs100006440_Comp3Regs100006800_EPwm1Regs100006840_EPwm2Regs100006880_EPwm3Regs1000068c0_EPwm4Regs100006900_EPwm5Regs100006940_EPwm6Regs100006980_EPwm7Regs100006a00_ECap1Regs100006ac0_HRCap1Regs100006ae0_HRCap2Regs100006b00_EQep1Regs100006c00_LinaRegs100006f80_GpioCtrlRegs100006fc0_GpioDataRegs100006fe0_GpioIntRegs100007010_SysCtrlRegs100007040_SpiaRegs100007050_SciaRegs100007060_NmiIntruptRegs100007070_XIntruptRegs100007100_AdcRegs100007740_SpibRegs100007900_I2caRegs1003d7e80_PartIdRegs1003f7ff8_CsmPwlabs0000001f_RamfuncsLoadSizeabs00000300__STACK_SIZEabsffffffff___TI_pprof_out_hndlabsffffffff___TI_prof_data_sizeabsffffffff___TI_prof_data_startabsffffffff___binit__absffffffff___c_args__absffffffff___pinit__absffffffffbinitabsffffffffpinit[201 symbols]
,
小趴菜:
这个能做到频率一致
,
小趴菜:
******************************************************************************TMS320C2000 Linker PC v22.6.0****************************************************************************** >> Linked Thu Sep 14 16:01:47 2023OUTPUT FILE NAME:<DSP28035CLADEMO.out> ENTRY POINT SYMBOL: "_c_int00"address: 003f671eMEMORY CONFIGURATIONnameoriginlengthusedunusedattrfill ------------------------------------------------------------------- PAGE 0:RAMM000000050000003b00000001f00000391RWIXRAML0000080000000080000000325000004dbRWIXOTP003d7800000004000000000000000400RWIXFLASHH003e8000000020000000000000002000RWIXFLASHG003ea000000020000000000000002000RWIXFLASHF003ec000000020000000000000002000RWIXFLASHE003ee000000020000000000000002000RWIXFLASHD003f0000000020000000000000002000RWIXFLASHC003f2000000020000000001f00001fe1RWIXFLASHA003f600000001f80000009df000015a1RWIXCSM_RSVD003f7f80000000760000007600000000RWIXBEGIN003f7ff6000000020000000200000000RWIXCSM_PWL_P0003f7ff8000000080000000800000000RWIXIQTABLES003fe00000000b500000000000000b50RWIXIQTABLES2003feb500000008c000000000000008cRWIXIQTABLES3003febdc000000aa00000000000000aaRWIXROM003ff27c00000d440000000000000d44RWIXRESET003fffc0000000020000000000000002RWIXVECTORS003fffc20000003e000000000000003eRWIXPAGE 1:BOOT_RSVD00000000000000500000000000000050RWIXRAMM100000400000004000000000000000400RWIXDEV_EMU00000880000001050000000400000101RWIXSYS_PWR_CTL00000985000000030000000300000000RWIXFLASH_REGS00000a80000000600000000800000058RWIXCSM00000ae0000000100000001000000000RWIXADC_RESULT00000b00000000200000002000000000RWIXCPU_TIMER000000c00000000080000000800000000RWIXCPU_TIMER100000c08000000080000000800000000RWIXCPU_TIMER200000c10000000080000000800000000RWIXPIE_CTRL00000ce0000000200000001a00000006RWIXPIE_VECT00000d00000001000000010000000000RWIXCLA100001400000000800000004000000040RWIXECANA0000600000000040000000340000000cRWIXECANA_LAM00006040000000400000004000000000RWIXECANA_MOTS00006080000000400000004000000000RWIXECANA_MOTO000060c0000000400000004000000000RWIXECANA_MBOX00006100000001000000010000000000RWIXCOMP10000640000000020000000140000000cRWIXCOMP20000642000000020000000140000000cRWIXCOMP30000644000000020000000140000000cRWIXEPWM100006800000000400000004000000000RWIXEPWM200006840000000400000004000000000RWIXEPWM300006880000000400000004000000000RWIXEPWM4000068c0000000400000004000000000RWIXEPWM500006900000000400000004000000000RWIXEPWM600006940000000400000004000000000RWIXEPWM700006980000000400000004000000000RWIXECAP100006a00000000200000002000000000RWIXHRCAP100006ac0000000200000002000000000RWIXHRCAP200006ae0000000200000002000000000RWIXEQEP100006b00000000400000004000000000RWIXLINA00006c00000000800000004a00000036RWIXGPIOCTRL00006f80000000400000004000000000RWIXGPIODAT00006fc0000000200000002000000000RWIXGPIOINT00006fe0000000200000000c00000014RWIXSYSTEM00007010000000200000002000000000RWIXSPIA00007040000000100000001000000000RWIXSCIA00007050000000100000001000000000RWIXNMIINTRUPT00007060000000100000001000000000RWIXXINTRUPT00007070000000100000001000000000RWIXADC00007100000000800000005000000030RWIXSPIB00007740000000100000001000000000RWIXI2CA0000790000000040000000220000001eRWIXPARTID003d7e80000000010000000100000000RWIXFLASHB003f4000000020000000000000002000RWIXCSM_PWL003f7ff8000000080000000800000000RWIXSECTION ALLOCATION MAPoutputattributes/ sectionpageoriginlengthinput sections ------------------------------------------------ .stack00000800000000300UNINITIALIZED0000800000000300--HOLE--.ebss00000830000000025UNINITIALIZED0000830000000018DSP2803x_CpuTimers.obj (.ebss)0000831800000006rts2800_ml.lib : exit.c.obj (.ebss)0000831e00000002DSP2803x_Lin.obj (.ebss)0000832000000002rts2800_ml.lib : _lock.c.obj (.ebss:__lock)0000832200000002: _lock.c.obj (.ebss:__unlock)0000832400000001main.obj (.ebss)ramfuncs0003f20000000001fRUN ADDR = 00000050003f20000000001bDSP2803x_SysCtrl.obj (ramfuncs)003f201b00000004DSP2803x_usDelay.obj (ramfuncs).cinit0003f69c60000001a003f69c60000000erts2800_ml.lib : exit.c.obj (.cinit)003f69d400000005: _lock.c.obj (.cinit:__lock)003f69d900000005: _lock.c.obj (.cinit:__unlock)003f69de00000002--HOLE-- [fill = 0]csm_rsvd0003f7f8000000076003f7f8000000076DSP2803x_CSMPasswords.obj (csm_rsvd)DevEmuRegsFile*10000088000000004UNINITIALIZED0000088000000004DSP2803x_GlobalVariableDefs.obj (DevEmuRegsFile)SysPwrCtrlRegsFile*10000098500000003UNINITIALIZED0000098500000003DSP2803x_GlobalVariableDefs.obj (SysPwrCtrlRegsFile)FlashRegsFile*100000a8000000008UNINITIALIZED00000a8000000008DSP2803x_GlobalVariableDefs.obj (FlashRegsFile)CsmRegsFile*100000ae000000010UNINITIALIZED00000ae000000010DSP2803x_GlobalVariableDefs.obj (CsmRegsFile)AdcResultFile*100000b0000000020UNINITIALIZED00000b0000000020DSP2803x_GlobalVariableDefs.obj (AdcResultFile)CpuTimer0RegsFile*100000c0000000008UNINITIALIZED00000c0000000008DSP2803x_GlobalVariableDefs.obj (CpuTimer0RegsFile)CpuTimer1RegsFile*100000c0800000008UNINITIALIZED00000c0800000008DSP2803x_GlobalVariableDefs.obj (CpuTimer1RegsFile)CpuTimer2RegsFile*100000c1000000008UNINITIALIZED00000c1000000008DSP2803x_GlobalVariableDefs.obj (CpuTimer2RegsFile)PieCtrlRegsFile*100000ce00000001aUNINITIALIZED00000ce00000001aDSP2803x_GlobalVariableDefs.obj (PieCtrlRegsFile)PieVectTableFile*100000d0000000100UNINITIALIZED00000d0000000100DSP2803x_GlobalVariableDefs.obj (PieVectTableFile)EmuKeyVar*100000d0000000001UNINITIALIZED00000d0000000001DSP2803x_GlobalVariableDefs.obj (EmuKeyVar)EmuBModeVar*100000d0100000001UNINITIALIZED00000d0100000001DSP2803x_GlobalVariableDefs.obj (EmuBModeVar)FlashCallbackVar*100000d0200000002UNINITIALIZED00000d0200000002DSP2803x_GlobalVariableDefs.obj (FlashCallbackVar)FlashScalingVar*100000d0400000002UNINITIALIZED00000d0400000002DSP2803x_GlobalVariableDefs.obj (FlashScalingVar)Cla1RegsFile*10000140000000040UNINITIALIZED0000140000000040DSP2803x_GlobalVariableDefs.obj (Cla1RegsFile)ECanaRegsFile*10000600000000034UNINITIALIZED0000600000000034DSP2803x_GlobalVariableDefs.obj (ECanaRegsFile)ECanaLAMRegsFile*10000604000000040UNINITIALIZED0000604000000040DSP2803x_GlobalVariableDefs.obj (ECanaLAMRegsFile)ECanaMOTSRegsFile*10000608000000040UNINITIALIZED0000608000000040DSP2803x_GlobalVariableDefs.obj (ECanaMOTSRegsFile)ECanaMOTORegsFile*1000060c000000040UNINITIALIZED000060c000000040DSP2803x_GlobalVariableDefs.obj (ECanaMOTORegsFile)ECanaMboxesFile*10000610000000100UNINITIALIZED0000610000000100DSP2803x_GlobalVariableDefs.obj (ECanaMboxesFile)Comp1RegsFile*10000640000000014UNINITIALIZED0000640000000014DSP2803x_GlobalVariableDefs.obj (Comp1RegsFile)Comp2RegsFile*10000642000000014UNINITIALIZED0000642000000014DSP2803x_GlobalVariableDefs.obj (Comp2RegsFile)Comp3RegsFile*10000644000000014UNINITIALIZED0000644000000014DSP2803x_GlobalVariableDefs.obj (Comp3RegsFile)EPwm1RegsFile*10000680000000040UNINITIALIZED0000680000000040DSP2803x_GlobalVariableDefs.obj (EPwm1RegsFile)EPwm2RegsFile*10000684000000040UNINITIALIZED0000684000000040DSP2803x_GlobalVariableDefs.obj (EPwm2RegsFile)EPwm3RegsFile*10000688000000040UNINITIALIZED0000688000000040DSP2803x_GlobalVariableDefs.obj (EPwm3RegsFile)EPwm4RegsFile*1000068c000000040UNINITIALIZED000068c000000040DSP2803x_GlobalVariableDefs.obj (EPwm4RegsFile)EPwm5RegsFile*10000690000000040UNINITIALIZED0000690000000040DSP2803x_GlobalVariableDefs.obj (EPwm5RegsFile)EPwm6RegsFile*10000694000000040UNINITIALIZED0000694000000040DSP2803x_GlobalVariableDefs.obj (EPwm6RegsFile)EPwm7RegsFile*10000698000000040UNINITIALIZED0000698000000040DSP2803x_GlobalVariableDefs.obj (EPwm7RegsFile)ECap1RegsFile*100006a0000000020UNINITIALIZED00006a0000000020DSP2803x_GlobalVariableDefs.obj (ECap1RegsFile)HRCap1RegsFile*100006ac000000020UNINITIALIZED00006ac000000020DSP2803x_GlobalVariableDefs.obj (HRCap1RegsFile)HRCap2RegsFile*100006ae000000020UNINITIALIZED00006ae000000020DSP2803x_GlobalVariableDefs.obj (HRCap2RegsFile)EQep1RegsFile*100006b0000000040UNINITIALIZED00006b0000000040DSP2803x_GlobalVariableDefs.obj (EQep1RegsFile)LinaRegsFile*100006c000000004aUNINITIALIZED00006c000000004aDSP2803x_GlobalVariableDefs.obj (LinaRegsFile)GpioCtrlRegsFile*100006f8000000040UNINITIALIZED00006f8000000040DSP2803x_GlobalVariableDefs.obj (GpioCtrlRegsFile)GpioDataRegsFile*100006fc000000020UNINITIALIZED00006fc000000020DSP2803x_GlobalVariableDefs.obj (GpioDataRegsFile)GpioIntRegsFile*100006fe00000000cUNINITIALIZED00006fe00000000cDSP2803x_GlobalVariableDefs.obj (GpioIntRegsFile)SysCtrlRegsFile*10000701000000020UNINITIALIZED0000701000000020DSP2803x_GlobalVariableDefs.obj (SysCtrlRegsFile)SpiaRegsFile*10000704000000010UNINITIALIZED0000704000000010DSP2803x_GlobalVariableDefs.obj (SpiaRegsFile)SciaRegsFile*10000705000000010UNINITIALIZED0000705000000010DSP2803x_GlobalVariableDefs.obj (SciaRegsFile)NmiIntruptRegsFile*10000706000000010UNINITIALIZED0000706000000010DSP2803x_GlobalVariableDefs.obj (NmiIntruptRegsFile)XIntruptRegsFile*10000707000000010UNINITIALIZED0000707000000010DSP2803x_GlobalVariableDefs.obj (XIntruptRegsFile)AdcRegsFile*10000710000000050UNINITIALIZED0000710000000050DSP2803x_GlobalVariableDefs.obj (AdcRegsFile)SpibRegsFile*10000774000000010UNINITIALIZED0000774000000010DSP2803x_GlobalVariableDefs.obj (SpibRegsFile)I2caRegsFile*10000790000000022UNINITIALIZED0000790000000022DSP2803x_GlobalVariableDefs.obj (I2caRegsFile)PartIdRegsFile*1003d7e8000000001UNINITIALIZED003d7e8000000001DSP2803x_GlobalVariableDefs.obj (PartIdRegsFile)CsmPwlFile*1003f7ff800000008UNINITIALIZED003f7ff800000008DSP2803x_GlobalVariableDefs.obj (CsmPwlFile).pinit0003f600000000000UNINITIALIZED.text0003f6000000008c5003f60000000022cDSP2803x_Adc.obj (.text)003f622c0000017cDSP2803x_DefaultIsr.obj (.text:retain)003f63a800000148DSP2803x_SysCtrl.obj (.text)003f64f0000000d8InitPeripheral.obj (.text)003f65c800000089main.obj (.text)003f665100000073DSP2803x_CpuTimers.obj (.text)003f66c40000005arts2800_ml.lib : fs_mpy28.asm.obj (.text)003f671e00000054: boot28.asm.obj (.text)003f677200000030ControlProtect.obj (.text:retain)003f67a200000029rts2800_ml.lib : exit.c.obj (.text)003f67cb00000029: fs_tol28.asm.obj (.text)003f67f400000028DSP2803x_PieCtrl.obj (.text)003f681c00000026DSP2803x_PieVect.obj (.text)003f684200000024rts2800_ml.lib : cpy_tbl.c.obj (.text)003f68660000001d: memcpy.c.obj (.text)003f688300000013DSP2803x_Gpio.obj (.text)003f689600000011rts2800_ml.lib : args_main.c.obj (.text)003f68a700000009: _lock.c.obj (.text)003f68b000000008DSP2803x_CodeStartBranch.obj (.text)003f68b800000007DSP2803x_DisInt.obj (.text)003f68bf00000003DSP2803x_DBGIER.obj (.text)003f68c200000002rts2800_ml.lib : pre_init.c.obj (.text)003f68c400000001: startup.c.obj (.text)codestart*0003f7ff600000002003f7ff600000002DSP2803x_CodeStartBranch.obj (codestart)csmpasswds*0003f7ff800000008003f7ff800000008DSP2803x_CSMPasswords.obj (csmpasswds).econst0003f68c600000100003f68c600000100DSP2803x_PieVect.obj (.econst:_PieVectTableInit).reset0003fffc000000002DSECT003fffc000000002rts2800_ml.lib : boot28.asm.obj (.reset)vectors0003fffc200000000DSECTMODULE SUMMARYModulecodeinitialized datauninitialized data--------------------------------------------.\source\system\DSP2803x_GlobalVariableDefs.obj002024DSP2803x_Adc.obj55600DSP2803x_SysCtrl.obj38200DSP2803x_DefaultIsr.obj38000DSP2803x_PieVect.obj382560DSP2803x_CpuTimers.obj115024DSP2803x_CSMPasswords.obj01260DSP2803x_PieCtrl.obj4000DSP2803x_Gpio.obj1900DSP2803x_CodeStartBranch.obj1000DSP2803x_usDelay.obj800DSP2803x_DisInt.obj700DSP2803x_DBGIER.obj300DSP2803x_Lin.obj002+--+---------------------------------+------+------------------+--------------------+Total:15583822050.\source\user\InitPeripheral.obj21600main.obj13701ControlProtect.obj4800+--+---------------------------------+------+------------------+--------------------+Total:40101C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\lib\rts2800_ml.libfs_mpy28.asm.obj9000boot28.asm.obj8400exit.c.obj41146fs_tol28.asm.obj4100cpy_tbl.c.obj3600memcpy.c.obj2900_lock.c.obj9104args_main.c.obj1700pre_init.c.obj200startup.c.obj100+--+---------------------------------+------+------------------+--------------------+Total:3502410Stack:00768+--+---------------------------------+------+------------------+--------------------+Grand Total:23094062829GLOBAL DATA SYMBOLS: SORTED BY DATA PAGEaddressdata pagename ---------------------------- 0000088022 (00000880)_DevEmuRegs0000098526 (00000980)_SysPwrCtrlRegs00000a802a (00000a80)_FlashRegs00000ae02b (00000ac0)_CsmRegs00000b002c (00000b00)_AdcResult00000c0030 (00000c00)_CpuTimer0Regs 00000c0830 (00000c00)_CpuTimer1Regs 00000c1030 (00000c00)_CpuTimer2Regs00000ce033 (00000cc0)_PieCtrlRegs00000d0034 (00000d00)_EmuKey 00000d0034 (00000d00)_PieVectTable 00000d0134 (00000d00)_EmuBMode 00000d0234 (00000d00)_Flash_CallbackPtr 00000d0434 (00000d00)_Flash_CPUScaleFactor0000140050 (00001400)_Cla1Regs00006000180 (00006000)_ECanaRegs00006040181 (00006040)_ECanaLAMRegs00006080182 (00006080)_ECanaMOTSRegs000060c0183 (000060c0)_ECanaMOTORegs00006100184 (00006100)_ECanaMboxes00006400190 (00006400)_Comp1Regs 00006420190 (00006400)_Comp2Regs00006440191 (00006440)_Comp3Regs000068001a0 (00006800)_EPwm1Regs000068401a1 (00006840)_EPwm2Regs000068801a2 (00006880)_EPwm3Regs000068c01a3 (000068c0)_EPwm4Regs000069001a4 (00006900)_EPwm5Regs000069401a5 (00006940)_EPwm6Regs000069801a6 (00006980)_EPwm7Regs00006a001a8 (00006a00)_ECap1Regs00006ac01ab (00006ac0)_HRCap1Regs 00006ae01ab (00006ac0)_HRCap2Regs00006b001ac (00006b00)_EQep1Regs00006c001b0 (00006c00)_LinaRegs00006f801be (00006f80)_GpioCtrlRegs00006fc01bf (00006fc0)_GpioDataRegs 00006fe01bf (00006fc0)_GpioIntRegs000070101c0 (00007000)_SysCtrlRegs000070401c1 (00007040)_SpiaRegs 000070501c1 (00007040)_SciaRegs 000070601c1 (00007040)_NmiIntruptRegs 000070701c1 (00007040)_XIntruptRegs000071001c4 (00007100)_AdcRegs000077401dd (00007740)_SpibRegs000079001e4 (00007900)_I2caRegs00008000200 (00008000)__stack0000830020c (00008300)_CpuTimer0 0000830820c (00008300)_CpuTimer1 0000831020c (00008300)_CpuTimer2 0000831820c (00008300)___TI_enable_exit_profile_output 0000831a20c (00008300)___TI_cleanup_ptr 0000831c20c (00008300)___TI_dtors_ptr 0000831e20c (00008300)_P0 0000831f20c (00008300)_P1 0000832020c (00008300)__lock 0000832220c (00008300)__unlock 0000832420c (00008300)_Statu003d7e80f5fa (003d7e80)_PartIdRegs003f68c6fda3 (003f68c0)_PieVectTableInit003f7ff8fdff (003f7fc0)_CsmPwlGLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Namepageaddressname---------------0003f6000.text0003f67a2C$$EXIT0003f66c4FS$$MPY0003f67cbFS$$TOL0003f628b_ADCINT1_ISR0003f6772_ADCINT1_USER_ISR0003f6290_ADCINT2_ISR0003f6344_ADCINT3_ISR0003f6349_ADCINT4_ISR0003f634e_ADCINT5_ISR0003f6353_ADCINT6_ISR0003f6358_ADCINT7_ISR0003f635d_ADCINT8_ISR0003f629f_ADCINT9_ISR0003f6067_AdcChanSelect0003f60dc_AdcConversion0003f6040_AdcOffsetSelfCal100007100_AdcRegs100000b00_AdcResult0003f6362_CLA1_INT1_ISR0003f6367_CLA1_INT2_ISR0003f636c_CLA1_INT3_ISR0003f6371_CLA1_INT4_ISR0003f6376_CLA1_INT5_ISR0003f637b_CLA1_INT6_ISR0003f6380_CLA1_INT7_ISR0003f6385_CLA1_INT8_ISR0003f64f0_CfgAdc100001400_Cla1Regs100006400_Comp1Regs100006420_Comp2Regs100006440_Comp3Regs0003f6692_ConfigCpuTimer000008300_CpuTimer0100000c00_CpuTimer0Regs000008308_CpuTimer1100000c08_CpuTimer1Regs000008310_CpuTimer2100000c10_CpuTimer2Regs1003f7ff8_CsmPwl100000ae0_CsmRegs0003f6464_CsmUnlock0003f6236_DATALOG_ISR0003f68b8_DSP28x_DisableInt0003f68bc_DSP28x_RestoreInt00000006b_DSP28x_usDelay100000880_DevEmuRegs0003f63cc_DisableDog0003f633a_ECAN0INTA_ISR0003f633f_ECAN1INTA_ISR0003f62f4_ECAP1_INT_ISR100006040_ECanaLAMRegs1000060c0_ECanaMOTORegs100006080_ECanaMOTSRegs100006100_ECanaMboxes100006000_ECanaRegs100006a00_ECap1Regs0003f6399_EMPTY_ISR0003f6240_EMUINT_ISR0003f62d1_EPWM1_INT_ISR0003f62ae_EPWM1_TZINT_ISR0003f62d6_EPWM2_INT_ISR0003f62b3_EPWM2_TZINT_ISR0003f62db_EPWM3_INT_ISR0003f62b8_EPWM3_TZINT_ISR0003f62e0_EPWM4_INT_ISR0003f62bd_EPWM4_TZINT_ISR0003f62e5_EPWM5_INT_ISR0003f62c2_EPWM5_TZINT_ISR0003f62ea_EPWM6_INT_ISR0003f62c7_EPWM6_TZINT_ISR0003f62ef_EPWM7_INT_ISR0003f62cc_EPWM7_TZINT_ISR100006800_EPwm1Regs100006840_EPwm2Regs100006880_EPwm3Regs1000068c0_EPwm4Regs100006900_EPwm5Regs100006940_EPwm6Regs100006980_EPwm7Regs0003f6303_EQEP1_INT_ISR100006b00_EQep1Regs100000d01_EmuBMode100000d00_EmuKey0003f6813_EnableInterrupts0003f64da_ExtOscSel100000a80_FlashRegs100000d04_Flash_CPUScaleFactor100000d02_Flash_CallbackPtr100006f80_GpioCtrlRegs100006fc0_GpioDataRegs100006fe0_GpioIntRegs0003f62f9_HRCAP1_INT_ISR0003f62fe_HRCAP2_INT_ISR100006ac0_HRCap1Regs100006ae0_HRCap2Regs0003f631c_I2CINT1A_ISR0003f6321_I2CINT2A_ISR100007900_I2caRegs0003f624a_ILLEGAL_ISR0003f622c_INT13_ISR0003f6231_INT14_ISR0003f6000_InitAdc0003f601e_InitAdcAio0003f6651_InitCpuTimers000000050_InitFlash0003f6883_InitGpio0003f6428_InitPeripheralClocks0003f67f4_InitPieCtrl0003f681c_InitPieVectTable0003f63d4_InitPll0003f63a8_InitSysCtrl0003f6495_IntOsc1Sel0003f64a5_IntOsc2Sel0003f6330_LIN0INTA_ISR0003f6335_LIN1INTA_ISR0003f6394_LUF_ISR0003f638f_LVF_ISR100006c00_LinaRegs0003f6245_NMI_ISR100007060_NmiIntruptRegs00000831e_P000000831f_P10003f639e_PIE_RESERVED1003d7e80_PartIdRegs100000ce0_PieCtrlRegs100000d00_PieVectTable0003f68c6_PieVectTableInit0003f623b_RTOSINT_ISRabs0000001f_RamfuncsLoadSize0003f2000_RamfuncsLoadStart000000050_RamfuncsRunStart0003f6326_SCIRXINTA_ISR0003f632b_SCITXINTA_ISR0003f6308_SPIRXINTA_ISR0003f6312_SPIRXINTB_ISR0003f630d_SPITXINTA_ISR0003f6317_SPITXINTB_ISR100007050_SciaRegs0003f63c2_ServiceDog0003f68bf_SetDBGIER100007040_SpiaRegs100007740_SpibRegs000008324_Statu100007010_SysCtrlRegs100000985_SysPwrCtrlRegs0003f6799_TIMER0_USER_ISR0003f62a4_TINT0_ISR0003f627c_USER10_ISR0003f6281_USER11_ISR0003f6286_USER12_ISR0003f624f_USER1_ISR0003f6254_USER2_ISR0003f6259_USER3_ISR0003f625e_USER4_ISR0003f6263_USER5_ISR0003f6268_USER6_ISR0003f626d_USER7_ISR0003f6272_USER8_ISR0003f6277_USER9_ISR0003f62a9_WAKEINT_ISR0003f6295_XINT1_ISR0003f629a_XINT2_ISR0003f638a_XINT3_ISR100007070_XIntruptRegs0003f64bf_XtalOscSel000008300__STACK_ENDabs00000300__STACK_SIZE00000831a___TI_cleanup_ptr00000831c___TI_dtors_ptr000008318___TI_enable_exit_profile_output absffffffff___TI_pprof_out_hndlabsffffffff___TI_prof_data_sizeabsffffffff___TI_prof_data_startabsffffffff___binit__absffffffff___c_args__0003f69c6___cinit__0003f68c5___etext__absffffffff___pinit__0003f6000___text__0003f6896__args_main000008320__lock0003f68af__nop0003f68ab__register_lock0003f68a7__register_unlock000008000__stack0003f68c4__system_post_cinit0003f68c2__system_pre_init000008322__unlock0003f67a2_abort0003f671e_c_int000003f6842_copy_in0003f67a4_exit0003f65c8_main0003f6866_memcpy0003f63a3_rsvd_ISRabsffffffffbinit0003f69c6cinit0003f7ff6code_start0003f68c5etextabsffffffffpinitGLOBAL SYMBOLS: SORTED BY Symbol Addresspageaddressname---------------000000050_InitFlash000000050_RamfuncsRunStart00000006b_DSP28x_usDelay000008000__stack000008300_CpuTimer0000008300__STACK_END000008308_CpuTimer1000008310_CpuTimer2000008318___TI_enable_exit_profile_output 00000831a___TI_cleanup_ptr00000831c___TI_dtors_ptr00000831e_P000000831f_P1000008320__lock000008322__unlock000008324_Statu0003f2000_RamfuncsLoadStart0003f6000.text0003f6000_InitAdc0003f6000___text__0003f601e_InitAdcAio0003f6040_AdcOffsetSelfCal0003f6067_AdcChanSelect0003f60dc_AdcConversion0003f622c_INT13_ISR0003f6231_INT14_ISR0003f6236_DATALOG_ISR0003f623b_RTOSINT_ISR0003f6240_EMUINT_ISR0003f6245_NMI_ISR0003f624a_ILLEGAL_ISR0003f624f_USER1_ISR0003f6254_USER2_ISR0003f6259_USER3_ISR0003f625e_USER4_ISR0003f6263_USER5_ISR0003f6268_USER6_ISR0003f626d_USER7_ISR0003f6272_USER8_ISR0003f6277_USER9_ISR0003f627c_USER10_ISR0003f6281_USER11_ISR0003f6286_USER12_ISR0003f628b_ADCINT1_ISR0003f6290_ADCINT2_ISR0003f6295_XINT1_ISR0003f629a_XINT2_ISR0003f629f_ADCINT9_ISR0003f62a4_TINT0_ISR0003f62a9_WAKEINT_ISR0003f62ae_EPWM1_TZINT_ISR0003f62b3_EPWM2_TZINT_ISR0003f62b8_EPWM3_TZINT_ISR0003f62bd_EPWM4_TZINT_ISR0003f62c2_EPWM5_TZINT_ISR0003f62c7_EPWM6_TZINT_ISR0003f62cc_EPWM7_TZINT_ISR0003f62d1_EPWM1_INT_ISR0003f62d6_EPWM2_INT_ISR0003f62db_EPWM3_INT_ISR0003f62e0_EPWM4_INT_ISR0003f62e5_EPWM5_INT_ISR0003f62ea_EPWM6_INT_ISR0003f62ef_EPWM7_INT_ISR0003f62f4_ECAP1_INT_ISR0003f62f9_HRCAP1_INT_ISR0003f62fe_HRCAP2_INT_ISR0003f6303_EQEP1_INT_ISR0003f6308_SPIRXINTA_ISR0003f630d_SPITXINTA_ISR0003f6312_SPIRXINTB_ISR0003f6317_SPITXINTB_ISR0003f631c_I2CINT1A_ISR0003f6321_I2CINT2A_ISR0003f6326_SCIRXINTA_ISR0003f632b_SCITXINTA_ISR0003f6330_LIN0INTA_ISR0003f6335_LIN1INTA_ISR0003f633a_ECAN0INTA_ISR0003f633f_ECAN1INTA_ISR0003f6344_ADCINT3_ISR0003f6349_ADCINT4_ISR0003f634e_ADCINT5_ISR0003f6353_ADCINT6_ISR0003f6358_ADCINT7_ISR0003f635d_ADCINT8_ISR0003f6362_CLA1_INT1_ISR0003f6367_CLA1_INT2_ISR0003f636c_CLA1_INT3_ISR0003f6371_CLA1_INT4_ISR0003f6376_CLA1_INT5_ISR0003f637b_CLA1_INT6_ISR0003f6380_CLA1_INT7_ISR0003f6385_CLA1_INT8_ISR0003f638a_XINT3_ISR0003f638f_LVF_ISR0003f6394_LUF_ISR0003f6399_EMPTY_ISR0003f639e_PIE_RESERVED0003f63a3_rsvd_ISR0003f63a8_InitSysCtrl0003f63c2_ServiceDog0003f63cc_DisableDog0003f63d4_InitPll0003f6428_InitPeripheralClocks0003f6464_CsmUnlock0003f6495_IntOsc1Sel0003f64a5_IntOsc2Sel0003f64bf_XtalOscSel0003f64da_ExtOscSel0003f64f0_CfgAdc0003f65c8_main0003f6651_InitCpuTimers0003f6692_ConfigCpuTimer0003f66c4FS$$MPY0003f671e_c_int000003f6772_ADCINT1_USER_ISR0003f6799_TIMER0_USER_ISR0003f67a2C$$EXIT0003f67a2_abort0003f67a4_exit0003f67cbFS$$TOL0003f67f4_InitPieCtrl0003f6813_EnableInterrupts0003f681c_InitPieVectTable0003f6842_copy_in0003f6866_memcpy0003f6883_InitGpio0003f6896__args_main0003f68a7__register_unlock0003f68ab__register_lock0003f68af__nop0003f68b8_DSP28x_DisableInt0003f68bc_DSP28x_RestoreInt0003f68bf_SetDBGIER0003f68c2__system_pre_init0003f68c4__system_post_cinit0003f68c5___etext__0003f68c5etext0003f68c6_PieVectTableInit0003f69c6___cinit__0003f69c6cinit0003f7ff6code_start100000880_DevEmuRegs100000985_SysPwrCtrlRegs100000a80_FlashRegs100000ae0_CsmRegs100000b00_AdcResult100000c00_CpuTimer0Regs100000c08_CpuTimer1Regs100000c10_CpuTimer2Regs100000ce0_PieCtrlRegs100000d00_EmuKey100000d00_PieVectTable100000d01_EmuBMode100000d02_Flash_CallbackPtr100000d04_Flash_CPUScaleFactor100001400_Cla1Regs100006000_ECanaRegs100006040_ECanaLAMRegs100006080_ECanaMOTSRegs1000060c0_ECanaMOTORegs100006100_ECanaMboxes100006400_Comp1Regs100006420_Comp2Regs100006440_Comp3Regs100006800_EPwm1Regs100006840_EPwm2Regs100006880_EPwm3Regs1000068c0_EPwm4Regs100006900_EPwm5Regs100006940_EPwm6Regs100006980_EPwm7Regs100006a00_ECap1Regs100006ac0_HRCap1Regs100006ae0_HRCap2Regs100006b00_EQep1Regs100006c00_LinaRegs100006f80_GpioCtrlRegs100006fc0_GpioDataRegs100006fe0_GpioIntRegs100007010_SysCtrlRegs100007040_SpiaRegs100007050_SciaRegs100007060_NmiIntruptRegs100007070_XIntruptRegs100007100_AdcRegs100007740_SpibRegs100007900_I2caRegs1003d7e80_PartIdRegs1003f7ff8_CsmPwlabs0000001f_RamfuncsLoadSizeabs00000300__STACK_SIZEabsffffffff___TI_pprof_out_hndlabsffffffff___TI_prof_data_sizeabsffffffff___TI_prof_data_startabsffffffff___binit__absffffffff___c_args__absffffffff___pinit__absffffffffbinitabsffffffffpinit[201 symbols]
,
小趴菜:
这个16:01的频率差了1倍
,
小趴菜:
把ramfunc放在RAML0里是ADC的中断频率能和定时器的频率一致,但是放在RAMM0里ADC的中断频率只有定时器的1半了
,
Ben Qin:
RAMLx和RAMM0的区别是RAMLx可以被cpu和cla访问但RAMMx只能被CPU访问。你说过你后来使用过CLA,我想这应该算是一条线索。
这两种RAM只有上述区别,问题应该还是和代码有关。
,
小趴菜:
可是,这个工程是我发现问题后新建的,目前还没有初始化以及启用CLA,只是使用了C2000软件里提供的包含CLA空间分配的CMD文件-.-,我可以提供下工程,给看一下吗-.-
,
Ben Qin:
可以,我看一下。
,
小趴菜:
DSP28035CLADEMO.zip
程序里面初始化完毕后,死循环里面什么都没有执行,整个工程启用了定时器以及ADC中断,中断里只驱动了一个IO,我只更改cmd文件的ramfuncs存放空间,然后观察IO翻转的频率得到上述的问题,辛苦给定位下问题哈,麻烦了。
,
Ben Qin:
好的,我在我的板子上跑一下后回复您。
,
小趴菜:
,
Ben Qin:
的确是有这样的现象。
,
小趴菜:
cmd是从c2000里搬的,有些段的存储空间可能被我做了些改动,你也可以重新弄个cmd,试试,里面手敲的程序我觉得应该没啥问题,但是问题点我定位不了。
,
Ben Qin:
我咨询下资深工程师后回复您。
,
小趴菜:
好的,多谢
,
Ben Qin:
不客气,一旦得到回复我会立即回复您。