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.

RTOS/TMS320F28069: Static Confguration SWI through XGCONF

Part Number: TMS320F28069

Tool/software: TI-RTOS

I am posting a SWI in a 1 mS Timer ISR to kick a 10mS process at lower priority.

Wight XGCONF I set up

XGCONF created the following lines in the cfg file

Programmatically I have set up

which fails to build with an error

Any ideas what is up here? Going to dynamic configuration but ???

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post and should be answering shortly.

    Regards
    Baskaran
  • Hello,

    Can you give some more detail? You said "XGCONF created the following lines in the cfg file" but I don't see any code in your post. Can you try sharing it again?

    Also, can you tell me what the build error says?

    Thanks,
    Whitney
  • Sorry Whitney all of the pictures I included were stripped.

    Trying again the XGCONF GUI was

    Lines in the cfg file were

    var swi0Params = new Swi.Params();
    swi0Params.instance.name = "htimer10mSSWI";
    swi0Params.priority = 14;
    Program.global.htimer10mSSWI = Swi.create("&timer10mS", swi0Params);

    Instantion in the program was

    /*
     *  ======== 10mS Process ========
     */
    Void timer10mS(UArg a0, UArg a1)
    {
        uiTicks10mS++;

        if(uiTicks10mS < 50)
        {
            GpioDataRegs.GPASET.bit.GPIO15 = 1; /*Green LED DS2 On*/
              GpioDataRegs.GPBCLEAR.bit.GPIO58 = 1;    /*Red LED DS1 Off*/
        }
        else
        {
            GpioDataRegs.GPBSET.bit.GPIO58 = 1; /*Red LED DS1 On*/
            GpioDataRegs.GPACLEAR.bit.GPIO15 = 1;    /*Green LED DS2 Off*/
        }

        if(uiTicks10mS >= 100)
        {
            uiTicks10mS=0;
        }
    }

    The build error I am getting is

    "../Solar_Tracker_Main.c", line 76: error #20: identifier "htimer10mSSWI" is undefined

  • How are you using htimer10mSSWI in Solar_Tracker_Main.c? I think you might need to #include <xdc/cfg/global.h>?

    Whitney
  • When  I included <xdc/cfg/global.h> built properly! Thanks Whitney!