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.

CC2530 / CC2531 OSAL questions

Other Parts Discussed in Thread: CC2530, CC2531, Z-STACK

Hello,

I'm using the CC2530 Zigbee Development Kit, and need some help on the software side.  Any help would be appreciated.

1. Does the TI Zigbee Operating System Abstraction Layer (OSAL) layer support the comparator? I can't find it anywhere in either the OSAL or all of the Hardware Abstraction Layer (HAL) examples provided. And I don't know how to go about updating the OSAL and HAL to support it and I'm struggling with the OSAL based application level examples of where I would set it up and enable the interrupt, the examples have a "event" and "keys" interupt handler but I have no idea what low level interrupt signals trigger those handlers. How I would integrate it as a OSAL event?

2. Does the Zigbee OSAL support USB? The cc2531 examples have USB examples but they are not part of an OSAL implementation, they use the classic main() structure. Can I mix and match OSAL and main() or is there a main() routine buried somewhere in the OSAL code?

3. How do I implement power mode 3, ultra low power, via the OSAL? I see it has a power mode api but I can't find how to actually use it, most of the function calls say they are made by the OSAL and that I just set a run time flag that will put the chip to sleep when we are not using it. Again the interface seems straight forward but don't have enough info or examples to know if I'm doing it correctly because it is so abstracted away.

4. Does the Zigbee simple API require a OSAL implementation or can I do it with the classic main () structure, all the examples use OSAL which I can follow but I'm struggling on how to implement the comparator, usb and power mode 3 stuff.

Thank you,

JC

  • Hi,

    ZStack HA1.2.1 http://www.ti.com/tool/z-stack comes with lot of documentation - start with Z-Stack Home Developer's Guide.pdf.  OSAL is OS Abstraction Layer and is responsible for allocation memory , scheduling events for multiple ZStack components/tasks including HAL. All drivers reside in Hardware Abstraction layer (HAL). Comparator example  is not included , please consult http://www.ti.com/lit/ug/swru191f/swru191f.pdf for comparator details.

    Saurabh