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.

LAUNCHXL-F28379D: F28379D BootROM CLA Tables

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hello,

i try to run the time critical part of my program in the CLA. I´ve developed 90% of the code in Matlab/Simulink and it went pretty well. The only thing is that Matlab doesn´t know the CLA functions. I need one log10, one exp and one exp10 function. Those three need 90% of the runtime of my programm on the cpu. The exp10 function is written as pow(10, floatV) and takes about 2000 cycles. When i load the program to the CLA Matlab still writes the function as pow(10, float V). So i loaded the program to CCS and rewrote all the functions (CLAexp10(float V). I thought that this won´t be enough since i have to define the Tables somewhere but it works right now. After a bit of research i found that these tables could be in the BootROM?

C:\ti\c2000\C2000Ware_1_00_06_00\libraries\boot_rom\f2837xd\revB\rom_sources\F2837x_bootROM\cpu01-bootROM\Cla_Data_Rom\source\tables

So my questions is are these tables loaded to the BootROM already or do i have to add something? I checked out the examples for it and each of them has the tables handwritten in the program so i´m not sure and debugging is still a bit nerve consuming since i´m very new to DSP programming.

Thanks in advance

Martin

  • please refer section "3.26 CLA Data ROM" in F2837xd TRM. It has details of the routines present in ROM.
  • HI Martin,

    I asked my development team about this. Here is what they said:

    ---

    We do not support CLA specific functions out of the box. Workaround here is to use a MATLAB function to call a CLA specific function while generating code. We have an example model c28069pmsmfoc_cla, in which we use CLASin and CLACos functions using MATLAB function block.

    Here is the path to MATLAB function block:

    'c28069pmsmfoc_cla/FOC Alogrithm/Torque Control Algorithm/Generating

         Space Vectors/Generating Raw

         Space Vectors/Inverse Park

         Transformation1/MATLAB Function'

    ---

    TBH this answer is beyond my technical depth on this topic, but it may be worth a look on your side to see if you implement the log10 and exp10 functions from the MATLAB/Simulink side; and keep everything in the same tool chain.

    If you need additional help with this, please contact MathWorks Technical Support.

    Cheers,

    -Brian

  • I first couldn´t find it in the new TRM (revised January 2019) since there is no 3.26. But i found and old TRM (revised December 2014) and there it was. With that i found it in the new TRM under 4.9.3.5.2 (Page592). Thank you very much!

  • Thank you Brian. This is much more of an answer than i expected. I´ll investigate on this one. The Matlab solution is just great and saves a lot of time if you´re not completly into DSP pprogramming. Thanky you very much.