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.

Hardware Abstraction Layer (HAL) for TIVA

Other Parts Discussed in Thread: CC2520

Hey guys,

i am using the CC2520 RF transceiver togethter with the Cortex M4 TIVA (TM4C123...). The software examples found at http://www.ti.com/product/cc2520 (CC2520 Software Examples (Rev. B), swrc090b.zip) seem to be a great entry point.

However, this software library uses a Hardware Abstraction Layer (HAL), which only seems to be provided for MSP430 microcontrollers. So first i would need to port that HAL to the TIVA processor, and of course also to my particular board.

But i'm wondering, is TI perhaps even providing the HAL for TIVA processors, or has someone done this part of the porting yet? Or is it even contained somewhere in the TivaWare?

Thanks for your tips!

Cheers
Janos

  • Janos,

    Micorcontroller communicates to CC2520 via SPI and GIO ports. I guess that those ports are handled in MSP430 software via a hardware abstrction layer (HAL). For TIVA processors, TI provides TIVAWare APIs for setting up everything on the device. If you want to repeat the same operation in the MSP430 software example with a TIVA processor, I would propose the following.

    (1) Download the TIVAWare .

    (2) Start with the sample project in the examples subdirectory.

    (3) Modify the MSP430 source code by replacing HAL calls with TIVAware APIs and re-use it in the TIVA project.

    Thanks and regards,

    Zhaohong

  • Hi Zhaohong,

    yes that's what i am doing - for the last couple days, and i'm still at it. I was hoping someone might have done that in a clean fashion already for ARM processors.

    Thank's for your quick reply though.

    Cheers

    Janos