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.

implementing simple Hwi thread and Idle thread on cc2650stk

Other Parts Discussed in Thread: SYSBIOS, CC2650

Hi,

I am learning the basics of TI RTOS, and trying to implement the Hwi thread and an Idle thread through the GUI. Whenever  i try to insert a hwi, through instance creation of GUI,the  add button does't work,  but when I try to enable the device specific hwi support , (M3 cortex) features, the add function enables the hwi, but it shows one error. 

Description Resource Path Location Type


Only intNums > = 15 can be created.

empty_min.cfg /Lab_Hwi ti.sysbios.family.arm.m3.Hwi.Instance#0:0 XDCTools Configuration Marker

Regards

Akshay 

  • Hi,

    What version of TIRTOS are you using?  I had no problem adding a Hwi via the generic Hwi module.  Please read the target specific Hwi to why interrupts must be => 15.

    The below was the code that was generated in the .cfg file:

    /* ================ Application Specific Instances ================ */
    var halHwi0Params = new halHwi.Params();
    halHwi0Params.instance.name = "halHwi0";
    Program.global.halHwi0 = halHwi.create(25, "&myisr", halHwi0Params);

    Judah

  • Hi,

    I am using CCS 6.1 and TI-RTOS version 2.15.00. I dont know where to look more for device specific info, I was unable to find this info in datasheet of cc2650 or RTOS guide. Kindly tell specific documents where I can find explanations of these errors.

    Regards

    Akshay
  • Akshay,

    In your TIRTOS installation there is a release note which can get you there by following links within it.

    (Documentation --> bios_6_xx_xx_xx_xx --> Documentation --> SYSBIOS APIs --> ti.sysbios.family.arm.m3 --> Hwi

    or you can go into the <TIRTOS INSTALL>products/bios_6_xx_xx_xx_xx/docs/cdoc.

    For you convenience I will post what it says here:

    The Cortex M3's Nested Vectored Interrupt Controller (NVIC) supports up to 256 interrupts/exceptions. In practice, most devices support much fewer (ie the Stellaris family of devices have only 80 total interrupts defined).
    SYS/BIOS Interrupt IDs or interrupt numbers correspond to an interrupt's position in the interrupt vector table.
    ID 0 corresponds to vector 0 which is used by the NVIC to hold the initial (reset) stack pointer value.
    ID 1 corresponds to vector 1 which is the reset vector (ie _c_int00)
    IDs 2-14 are hardwired to exceptions.
    ID 15 is the SysTick timer interrupt.
    ID's 16-255 are mapped to the NVIC's user interrupts 0-239 which are tied to platform specific interrupt sources.

    Judah