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.

Unresolved symbols with SFO lib, is some math library missing?

Other Parts Discussed in Thread: SPRC835, CCSTUDIO

Hi,

I am trying to help a customer to start using the HRPWM and build an example coming with Piccolo controlSTICK Software v1.1 (sprc835.zip example PWM - Filtered HRPWM) but adding the SFO lib v6 coming with F2802x_headers_and peripheral_files_sprc832.zip.

In the beginning of main I add

    MEP_ScaleFactor=SFO();

 and when building I get the unresolved symbols

 FS$$DIV   C:\\CCStudio_v3.3\\c28\\DSP2802x\\v100\\DSP2802x_common\\lib\\SFO_TI_Build_V6.lib<SFO.obj>
 FS$$MPY   C:\\CCStudio_v3.3\\c28\\DSP2802x\\v100\\DSP2802x_common\\lib\\SFO_TI_Build_V6.lib<SFO.obj>
 FS$$SUB   C:\\CCStudio_v3.3\\c28\\DSP2802x\\v100\\DSP2802x_common\\lib\\SFO_TI_Build_V6.lib<SFO.obj>
 FS$$TOI   C:\\CCStudio_v3.3\\c28\\DSP2802x\\v100\\DSP2802x_common\\lib\\SFO_TI_Build_V6.lib<SFO.obj>

Can you say what file is missing in the project to resolve these?

Thanks. /Magnus

  • Magnus,

    The unresolved symbols are functions located in the RTS library - so the customer needs to add the rts2800_ml.lib to their project in the build options in order to use the SFO library.

    -Chrissy

  • Well that library is already in the project build.

    However, I just saw that when selecting configuration F2802x_FLASH instead of F2802x_RAM when building, the errors disappeared...(?)

    Cannot SFO work when debugging the code in RAM?

    /Magnus

  • Magnus,

     The SFO library works fine in RAM - if you look at the hrpwm sfo  examples in the 2802x header file and example package, they are all running out of RAM and using the SFO library.  The math functions they use are from the rts library as a build option under linker settings:

     ["Linker" Settings: "Debug"]
    Options=-q -c -ecode_start -m".\Debug\Example_2802xHRPWM_Duty_SFO_V6.map" -o".\Debug\Example_2802xHRPWM_Duty_SFO_V6.out" -stack0x380 -w -x -i"..\..\DSP2802x_headers\include" -l"rts2800_ml.lib"

    -Chrissy

     

  • Great. I checked the box [X] Exhaustively Read Libraries for the F2802x_RAM config and the errors disappeared. Thanks!

    /Magnus