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.

Cannot Change Timer Name statically.

Other Parts Discussed in Thread: SYSBIOS

Adding a timer instance to the ti.sysbios.hal.Timer module will not allow me to change the "name" property.  When I do it returns with "null" and so I cannot have more than one timer.  I am using xdctools_3_20_08_88 and CCS4.2.1.00004.  This is for a Stellaris ARM processor.

  • Hi David,

    Could you attach your .cfg file? It will make it eaasier to reproduce and give you a work-around.

    Thanks,
    Todd

  • The source looked correct, it was the visual tool that was incorrect.  Am I allowed to create more than 1 timer?

     

    4087.G6989_Boot.zip

  • I had to add the following line to the editor to get it to work:

    instti_sysbios_hal_Timer1Params0.instance.name = "TMRaorqRs";

    Also, I had to define a different id number.  It built successfully.

    Program.global.TMRaorqRs = ti_sysbios_hal_Timer.create(1, "&aorqRsTimeout", instti_sysbios_hal_Timer1Params0);

  • I looked in the .cfg you posted. At the bottom is the following.

    Program.global.TMRstatusLED = ti_sysbios_hal_Timer.create(null, "&statusLEDtimeout", instti_sysbios_hal_Timer0Params0);

    The null is definitely not correct. You should manually change it.

    The name field the GUI config tool (xGConf) corresponds of the global variable. If it is left blank, one is auto-generated. In the above case it is TMRstatusLED. In your xGConf, in the module outline under the ti.sysbios.hal.Timers, is it showing this name?

    You've done the exact steps needed to work-around  this apparent GUI issue.

    What was the exact error your were getting before you made the manual changes? Note: if you use the same id for multiple timers, you'll get a build error.

    Todd