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.

Resolver_f28035_CLA problem when program run without debugger

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I am making my own code on top of the Resolver_f28035_CLA program.  Everything working nicely with debugger. But when the program runs stand alone with flash, it is not running properly as before.

I followed below conversation, but I could not find the answer.

e2e.ti.com/.../217796

The only change I made is, I use F28069 controller instead of using F28035.  I cant see any other issues. 

How can I fix this probem?

  • Hi,

    Are certain portions of the CLA code not running or the entire thing?

    For standalone operation, make sure Cla1Prog is assigned a LOAD address in a FLASH sector, a RUN address is RAML3, then you must memcpy this section from flash to ram in main() before you actually configure MMEMCFG. Also if you are using the CLA Math Tables, be sure to do the same thing, except this time you copy the tables from flash to RAML(0,1,2) in main() and then configure MMEMCFG to give CLA ownership over these RAMs
  • Hi Vishal,

    All the things have done as you mentioned above. So nothing wrong with that. I checked them.  

    I cant remove one warning in F28035_FLASH_Resolver.CMD file.  

    I copied the warning below.

    <Linking>

    warning: build attribute vendor section TI missing in

      "C:/ti/controlSUITE/libs/math/IQmath/v160/lib/IQmath.lib<IQ20mpyI32int.obj>"

      : compatibility cannot be determined

    "../F28035_FLASH_Resolver.CMD", line 152: warning: no matching section

    'Finished building target: Resolver_03x_cla_flash.out'

    ' '

    Warning occurred in F28035_FLASH_Resolver.CMD file in CLAscrach section.

      CLAscratch       :

                        { *.lib(CLAscratch)

                        . += CLA_SCRATCHPAD_SIZE;

                        *.lib(CLAscratch_end) } > RAML2,

    PAGE = 1

    Is this the reason for the problem?

    How do I fix this problem.

  • The build attribute warning you get has to do with the IQMath library. You will find information on that warning here:

    That isnt the cause of your problem. 

    Here is an example of some standalone code on the 069, see if there are any differences in the way you have setup the CLA. See the CLA_CODE configuration

    F28069_CLA_FIRofEPWM_151002.zip

  • Hi Vishal,

    I tried a lot with your example project. But still I could not make that work.
    Vishal, Can you please give a try to run Resolver_f28035_CLA project in F28069 controller card and check the problem.


    program path in control suit as below
    C:\ti\controlSUITE\development_kits\TMDSRSLVR_v1.0\Resolver_f28035_CLA

    Thank you.
  • Are you using the Resolver_Lib_CLA_float.lib?