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.

TMS320F28035: TMS320F28035

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE, C2000WARE-DIGITALPOWER-SDK

Dear memebers of TI forum,

I was trying to use PI controller in my code, though I was succesfull to link the libraries in the control suite, the controller throws a debug error as below. Additionally, I was also getting some warnings with the C2000 controller, can some experts kindly give some suggesstions, please. 

Break at address "0x3ff599" with no debug information available, or outside of program code. "A snapshot is attached herewith for your kinf reference.", it would be great of someone could help me ito resolve the warnings, and the errors in the debug. For your kind information, the console file is also attached. 

Regards, 

J.Prasanth Ram

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
**** Build of configuration Debug for project ADCinterleaved2 ****
"C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k all
Building file: "../ADCinterleaved2.c"
Invoking: C2000 Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --include_path="C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include" --include_path="C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/lib" --include_path="C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/source" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" --include_path="C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/include" --include_path="C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/source" --include_path="C:/ti/controlSUITE/libs/app_libs/solar/v1.2/IQ/include" --include_path="C:/ti/controlSUITE/libs/dsp/FixedPointLib/v101/lib" --include_path="C:/ti/controlSUITE/libs/math/IQmath/v160/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath/v160/lib" --include_path="C:/ti/controlSUITE/libs/control/DCL/v1_00_00_00/include" --include_path="C:/ti/controlSUITE/libs/control/DCL/v1_00_00_00/source" --include_path="C:/ti/controlSUITE/libs/app_libs/solar/v1.2/IQ/source" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2803x/headers/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2803x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/IQmath/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi --preproc_with_compile --preproc_dependency="ADCinterleaved2.d_raw" "../ADCinterleaved2.c"
Finished building: "../ADCinterleaved2.c"
Building target: "Example_2803xAdcSoc.out"
Invoking: C2000 Linker
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --define=_DEBUG --define=LARGE_MODEL -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi -z -m"Example_2803xAdcSoc.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/include" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -i"C:/ti/controlSUITE/libs/control/DCL/v1_00_00_00/include" -i"C:/ti/controlSUITE/libs/control/DCL/v1_00_00_00/source" -i"C:/Users/drjppram/workspace_v12/ADCinterleaved2" -i"C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/source" -i"C:/ti/c2000/C2000Ware_5_01_00_00/device_support/f2803x/common/lib" -i"C:/ti/c2000/C2000Ware_5_01_00_00/libraries/math/IQmath/c28/lib" --priority --issue_remarks --verbose_diagnostics --xml_link_info="Example_2803xAdcSoc_linkInfo.xml" --entry_point=code_start --rom_model -o "Example_2803xAdcSoc.out" "./ADCinterleaved2.obj" "./DCL_PI.obj" "./DSP2803x_Adc.obj" "./DSP2803x_CodeStartBranch.obj" "./DSP2803x_CpuTimers.obj" "./DSP2803x_DefaultIsr.obj" "./DSP2803x_EPwm.obj" "./DSP2803x_GlobalVariableDefs.obj" "./DSP2803x_PieCtrl.obj" "./DSP2803x_PieVect.obj" "./DSP2803x_SysCtrl.obj" "./DSP2803x_usDelay.obj" "C:/ti/C2000Ware_5_01_00_00/device_support/f2803x/common/cmd/28035_RAM_lnk.cmd" "C:/ti/C2000Ware_5_01_00_00/device_support/f2803x/headers/cmd/DSP2803x_Headers_nonBIOS.cmd" "C:/ti/controlSUITE/libs/math/IQmath/v160/lib/IQmath.lib" "../Solar_Lib_Float.lib" "C:/ti/controlSUITE/libs/app_libs/solar/v1.2/IQ/lib/Solar_Lib_IQ.lib" -l"C:/ti/ccs1220/ccs/tools/compiler/c2000_6.1.10/lib/libc.a" -l"C:/ti/ccs1220/ccs/tools/compiler/c2000_6.1.10/lib/rts2800_ml.lib" -l"C:/ti/ccs1220/ccs/tools/compiler/c2000_6.1.10/lib/rts2800_fpu32.lib" -l"C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/lib/rts2800_fpu32_fast_supplement.lib" -l"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_fpu32.lib" -l"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml.lib" -l"C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/lib/Solar_Lib_Float.lib" -lIQmath.lib
note: automatic RTS selection: linking in "rts2800_fpu32.lib" in place of
index library "libc.a"
warning: could not resolve index library "IQmath.lib" to a compatible library
warning: creating output section "dclfuncs" without a SECTIONS specification
Finished building target: "Example_2803xAdcSoc.out"
**** Build Finished ****
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Kindly find the picture of command file, please. 

  • Hi Prasanth,

    Looks like you're trying to test out the F28035 ADC Interrupt example. Is that correct? If so, I would recommend you download our latest SDK, C2000Ware. It has our most up-to-date device support.

    What version of CCS are you using? 

    Also looks like one of the warnings is related to a missing path to the location of the IQmath.lib file. I also noticed that you have floating point enabled as part of your build options is that intended?

    Regards,

    Ozino

  • Hello Ozino,

    Thanks for responding. Got some clarity in updating the drivers. I will install the latest version of C2000 ware, and wil try the same.

    Between, I am using the latest CCS 12.6 Version, and one of the warning with IQ math is rectified now.  

    Will keep you posted in the thread after trying the code in latest version. 

    Many thanks. 

    Prasanth Ram

  • Hello Prasanth,

    Sounds good. Please let us know if you have any additional questions.

    Regards,

    Ozino

  • Dear Ozino,

    After trying and updating the C2000 ware, I tried my code with the timer example file. Although, I am being succesful with the errorless code, I have problems in  debugging the code. Somewhere, the code is getting loopep during boot. Howver, I still didint get the problem that where I am going wrong. I also checked with mutlple discussions in the TiE forum, but then, I wasnt able able to figure this out. For your kind reference, I have given my code below, can you kindly chck them once please? 

    The screen shot of error during Debug id attched in the picture. your kind suggestions will definitely help me to resolve the problem. Thank you in advance  

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    #include "DSP28x_Project.h" // Device Headerfile and Examples Include File
    #include <math.h>
    #include <IQmathLib.h>
    #include "Solar_F.h"
    void Adc_Config(void);
    void EPwm1(void);
    void EPwm2(void);
    void EPwm3(void);
    void gpiosetup (void);
    CNTL_PI_F cntl_pi1;
    Uint16 LoopCount;
    Uint16 ConversionCount;
    Uint16 Vin_PV[10];
    Uint16 Vo_PV[10];
    Uint16 Iin_PV[10];
    Uint16 Io_PV[10];
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    The error that you have seems to be related to attempting to halt the debugger in unreachable code. This typically happens when there's protected code included via a library. Is the solar library used pointing to a .lib? If so, this is expected behaviour. You won't be able to actually step through the code that is protected if it is apart of the library.

    Please note that the solar library is now supported in the C2000Ware-DigitalPower-SDK package. See this page for supported libraries:

    https://dev.ti.com/tirex/explore/node?node=A__AK-ZgXfLkBjr9Pafs40lNw__digital_power_c2000ware_sdk_software_package__5C6SEVO__LATEST&placeholder=true

    I recommend checking the C- based implementation for popular libraries.

    Regards,

    Ozino

  • Dear Ozino,

    Thanks a lot for recommending an alterantive solution. Let me check them and keep it posted here.

    Regards,

    Prasanth Ram

  • Dear Ozino,

    After extensive try, I found F28035 controller is not compatible (or) limitation to use FPU32 based libraries. Whenever, I try to call a function with folat 32 variables, I am seeing the symbol mising error in the boot loader (even after adding necessary libraries, this happens only in the debug mode) . Kindly correct me if I am wrong please.

    Regards,

    Prasanth ram

  • Hi Prasanth,

    You're correct that this device does not have built in FPU support on the C28x. Looks like you'll have to leverage the IQmath library. Are you able to migrate to our newer device that has support for FPU?

    Regards,

    Ozino