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?
