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.

Compiler/TMS320F28379D: Software Questions

Part Number: TMS320F28379D


Tool/software: TI C/C++ Compiler

  • Is there some direction on how the linker command file (cmd) pages are setup? Although the MCU just has one memory map, the example command files seem to mix ram and flash between PAGE 0 and PAGE 1. So, is there any logical placement in the pages? Or, can I mix and match between the two pages? I.e., place flash in PAGE 1 and ram in PAGE 0? 
  • For the CLA processor, I notice all of the math example C2000 projects are lookup tables for such calculations as sine and cosine. There is also a library file (cla1_math_library_fpu32.lib)  that contains CLAsin and CLAcos functions but, this is not used in the examples for the TMS320F28379.  I assume that I should use the CLA math library functions rather than the math.h C functions, correct? The only problem I have using the CLA library file is that I receive a compiler error stating there is no section for the CLA tables. The forums didn’t provide much info for a resolution of this problem. Is there an example project which actually uses the CLA math library functions from the cla1_math_library_fpu32.lib file? Note that I am using floating point calculations.
  • Also, is there an example file of creating a set of assembly instructions within a C code file? Not just a single line of assembly, but multiple lines? For example:

asm(“PUSH ACC” \

          “POP  RPC” \

          “MOVZ  AR1,AL” \

          “MOVZ  AR2,AL” \

          “MOVZ  AR3,AL” \

         “ MOVZ  AR4,AL” \

          “MOVZ  AR5,AL”);

 

I tried several different formats with no success. Or, do I just need to create an assembly file with a function call for any kind of extensive assembly instructions?

  • Finally, are there any java script files for setting up the debug environment that are available to reference? All of the ones I have tried in the sample projects are pretty dated and have errors when the scripts are executed. Were these based on previous java versions?

 

  • Hi Lindsey,

    Please find responses to your questions below

    • The earlier C28xx devices had separate memory buses for code and data. These buses were connected to physically separate memory blocks. Thus, it actually was possible for a specific address on PAGE 0 to have different contents than that same address on PAGE 1. Refer the following link

    • Will check with a CLA expert and get back to you on this
    • You can specify assembly lines by using asm("") block. Each asm block should have only once assembly instruction.

    asm(“PUSH ACC”);

    asm("POP  RPC) ;

    asm("MOVZ  AR1,AL);

    asm("MOVZ  AR2,AL);

    • Which javascript files are you referring to? Can you provide details?

    Best Regards

    Siddharth