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.

TMS320F280049: Linker command file modification using Digital Control Library for stand-alone application(Flash)

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE, TIDM-DC-DC-BUCK

Good afternoon. 

I'm evaluating DCL for stand-alone application. 

I'm reading "C2000 Digital Control Library Version 3.4 User’s Guide" in c2000ware DCL documentation folder. 

In that document, section 2.3.1, step 3. Allocate the controller functions in the linker command file, 

it said "All DCL library functions are placed in the user defined code section .dclfuncs." like

dclfuncs : > RAML4, PAGE = 0

"In a stand-alone application, code must be stored in non-volatile memory (such as internal
flash) and copied into RAM at run-time. For information on how to do this, refer to the
application note “Running an Application from Internal Flash Memory on the
TMS320F28xxx DSP”, TI literature number SPRA958." 

I would like to see the reference of using those usage, but the examples exist in the folder doesn't seem like 

using not flash but RAM. So I'm confusing to use those user defined code section, I read the SPRA958 document. 

Despite It is quite old version of document(no referring f280049c mcu), but the main context is as following 2 matters. 

"when running a program from flash, all initialized sections
must be linked to non-volatile memory, whereas all uninitialized sections must be linked to
volatile memory."

"At power-up, all interrupt vectors must be located in non-volatile memory (i.e., flash),
but copied to the PIEVECT RAM as part of the device initialization procedure in your code."

Because the dcl function is going to run with adcIsr for our power electronics application, I think those 2 issues

should be concerned. 

I'm not familiar using DCL and modifying linker command, lack of knowledge. 

My question is, is it ok only to allocate the section regarding .dclfuncs in linker command file?

I mean just copy and paste "dclfuncs : > RAML4, PAGE = 0" to linker command file. (of course RAML4 might be changed) 

If it has more process, please offer the reference. or example using flash. 

Thank you. 

Best regard,

Kim