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.

TMDSCNCD28335: I have error after execution of program.

Part Number: TMDSCNCD28335
Other Parts Discussed in Thread: C2000WARE

Sir,

 I am using DCL_DF23 cnotroller i got some type of error after execution  of my program those error are mentioned below.

please help me.

Those Error are...

warning #10247-D: creating output section "dclfuncs" without a SECTIONS specification
warning #10247-D: creating output section "ramfuncs" without a SECTIONS specification

How will i initialize the coefficient of DF23 controller in my program.

  • The warnings are because you have not defined these sections in your linker command file.  They are not errors - your program will still build and run, but these sections may not be where you expect them because the linker will place them where it can in program memory.  You should have lines in your linker command file so the linker knows what to do with these sections.  For example:

    ramfuncs : > L0SARAM, PAGE = 0
    dclfuncs : > L0SARAM, PAGE = 0

    There are examples of coefficient initialization in the DCL (make sure you have the latest DCL release In C2000Ware).  The simplest way is to write directly to the coefficients in the controller structure in your main program.  There is a DF22 example of this in the /examples sub-directory which shows how you can initialize the coefficients.  The DF23 controller is similar but with another two variables:

    DCL_DF22 controller1 = DF22_DEFAULTS;

    main()

    {

    // initialise full controller
    controller1.a1 = -1.9417f;
    controller1.a2 = 0.9417f;
    controller1.b0 = 9.8549f;
    controller1.b1 = -19.4165f;
    controller1.b2 = 9.5636f;

    ...

    Of course your coefficients would be different.

    Regards,

    Richard