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/TM4C123GH6PM: help is needed in .cfg file

Part Number: TM4C123GH6PM

Tool/software: TI-RTOS

Hi everybody, 

i am trying to implement the labs of TI RTOS workshop. In lab 4 when i registering the ledToggle function as an idle thread then i have this error in the following screenshot.

Can any one help me to fix the problem??

regards,

Sarea 

  • Sarea,
    check if you have whitespaces around the string 'ledToggle'. Any whitespace will trigger such error.
  • thanks Sasha
    i have checked that .. there is no spaces around the 'ledToggle' string. till now i don't know how to solve the problem.

    Regards,
    Sarea
  • Can you try adding a letter by letter and see which one causes the problem? I know that you probably don't have a function 'l' or 'le', but that will cause the problem later, not when you only save your config file or click on 'validate'. The button 'validate' is the one in the upper right corner of your XGconf window. Whenever you change the name of the function click on that button and see what happens.

    Also, at the bottom of your XGconf window is the tab cfgScript. You can check the bottom of the script to see how is your entry added to the array of idle functions. You should see something like:
    Idle.idleFxns[0] = "&ledToggle";
  • Sasha
    sorry, i don't see any 'validate' button on the upper right corner. but there is a refresh button.
    also when i trying to add the name letter by letter i still have the same problem.
    by the way, when i type any name as a function name i noticed that in the script file there is assignment operation for array element corresponding to the name i entered without the '&' symbol :

    Idle.idleFxns[0] = "what ever i entered ";

    Regards,
    Sarea
  • Can you try editing your script manually? Just write in the cfgScript tab:
    Idle.idleFxns[0] = "&ledToggle";
    then save, close XGconf and try building your project. Once you have a successful build, you can open XGconf again and check what's in that 'function 0' text box.

    Which version of XDCtools do you have installed?
  • Sasha
    Here is a good news. i retry to solve the lab from the beginning and it works fine.
    i don't know what was the problem but it doesn't matter now :-)

    many thanks
    Sarea