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.

SYS-BIOS examples for Tiva

Other Parts Discussed in Thread: TM4C123GH6PM

Hi

I am migrating from MSP430 without OS  to Tiva(Launchpad) and TI-RTOS using CCS V5.

I understand that TI-RTOS includes Sys-BIOS as the kernel and I already downloaded the TI-RTOS software package.

I cannot find some example projects for the Tiva Launchpad for semaphores, mailbox, SWI, etc...

Do I also have to download Sys-BIOS to import those example projects? Is it possible that TI-RTOS includes Sys-BIOS but not all of the project examples?

Thank you for your help.

  • HI Bernard,

    you brought up a good point and as of right now, although TI-RTOS ships SYS/BIOS, the SYS/BIOS examples won't show under TI-RTOS examples. There's an existing bug ID assigned to this feature (SDOCM00099017) and we're planning to get this fixed for the next release.

    In CCS' TI Resource Explorer you should be able to see SYS/BIOS examples. (View >> TI Resource Explorer)

  • Tom

    Good to know that those examples will eventually migrate to RTOS.

    Speaking of RTOS examples. The TI-RTOS GPIO interupt  example under Tiva TM4C123GH6PM (Launchpad) seems to be based on a traditional Interupt technique. Instead of using a Hwi based on the PorfF vector (46), it uses the GPIO callback.

    I am new with RTOS but it might be more appropriate in the RTOS example context to use a Hwi / post and a Swi.

    I could be wrong.

  • Hi Bernard,

    sorry for the late reply.

    The purpose of the GPIO interrupt example is to show the TI-RTOS GPIO driver. The GPIO driver will create a Hwi for a specified (in the board file) GPIO port. When an interrupt gets generated, SYS/BIOS will call the Hwi dispatcher which in tern calls the associated Hwi function. This function has been implemented to call a callback function associated for the GPIO Port's pin.

    If you wish, you can create your own Hwi function for a GPIO port. You don't have to use the GPIO driver if you don't want to. It might be even a bit easier to learn how to create a Hwi and use it with a Swi by creating it manually (e.g. Hwi_create).