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.
Part Number: TMDSHVMTRPFCKIT
导入controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x例程时,设置成Build Configration->Set Active->F2833x_RAM ,编译有两个警告(设置成F2803x_RAM还没有错误)
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 1345: warning: subscript out of range
"../HVPM_Sensorless.c", line 1345: warning: subscript out of range
想请问大佬们这是什么意思,怎么解决?
不好意思,用那个插入代码只能最多显示30行信息,所以还是粘贴:
**** Build of configuration F2833x_RAM for project HVPM_Sensorless_2833x ****
"D:\\CCSV6\\installation path\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../HVPM_Sensorless.c'
'Invoking: C2000 Compiler'
"D:/CCSV6/installation path/ccsv6/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --include_path="D:/CCSV6/installation path/ccsv6/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="D:/ControlSUITE/controlSUITE/device_support/f2833x/v132/DSP2833x_headers/include" --include_path="D:/ControlSUITE/controlSUITE/device_support/f2833x/v132/DSP2833x_common/include" --include_path="D:/ControlSUITE/controlSUITE/libs/math/IQmath/v15c/include" --include_path="D:/ControlSUITE/controlSUITE/development_kits/~SupportFiles/F2833x_headers" --include_path="D:/ControlSUITE/controlSUITE/libs/app_libs/motor_control/math_blocks/v4.0" --include_path="D:/ControlSUITE/controlSUITE/libs/app_libs/motor_control/drivers/f2833x_v2.0" --define="_DEBUG" --define="LARGE_MODEL" --define="FLOATING_MATH" -g --diag_warning=225 --quiet --preproc_with_compile --preproc_dependency="HVPM_Sensorless.pp" "../HVPM_Sensorless.c"
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 213: warning: subscript out of range
"../HVPM_Sensorless.c", line 837: warning: subscript out of range
"../HVPM_Sensorless.c", line 837: warning: subscript out of range
'Finished building: ../HVPM_Sensorless.c'
' '
'Building target: HVPM_Sensorless_2833x.out'
'Invoking: C2000 Linker'
"D:/CCSV6/installation path/ccsv6/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --define="_DEBUG" --define="LARGE_MODEL" --define="FLOATING_MATH" -g --diag_warning=225 --quiet -z -m"HVPM_Sensorless_2833x.map" --stack_size=0x380 --warn_sections -i"D:/CCSV6/installation path/ccsv6/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"D:/CCSV6/installation path/ccsv6/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" -i"D:/ControlSUITE/controlSUITE/development_kits/HVMotorCtrl+PfcKit_v2.1/HVPM_Sensorless_2833x" --reread_libs --xml_link_info="HVPM_Sensorless_2833x_linkInfo.xml" --rom_model -o "HVPM_Sensorless_2833x.out" "D:/ControlSUITE/controlSUITE/libs/math/FPUfastRTS/V100/lib/rts2800_fpu32_fast_supplement.lib" -l"rts2800_fpu32.lib" "D:/ControlSUITE/controlSUITE/libs/math/IQmath/v15c/lib/IQmath_fpu32.lib" "./DLOG4CHC.obj" "./DSP2833x_ADC_cal.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_GlobalVariableDefs.obj" "./DSP2833x_usDelay.obj" "./HVPM_Sensorless-DevInit_F2833x.obj" "./HVPM_Sensorless.obj" "D:/ControlSUITE/controlSUITE/device_support/f2833x/v132/DSP2833x_headers/cmd/DSP2833x_Headers_nonBIOS.cmd" "../F28335_RAM_HVPM_Sensorless.CMD"
'Finished building target: HVPM_Sensorless_2833x.out'
' '
**** Build Finished ****
IDE提示:subscript out of range
DSP28335没有EPWM7A、7B?那我换成除了1,2,3外的其他EPWM?
我也是第一次见这个警告。
按字面的意思来说,就是下标超出了范围。F28335上也确实只有6个EPWM模块。所以你的分析是有道理的。
就按你说的修改一下试试看。