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.

example projects for TI-RTOS LM4F232

Other Parts Discussed in Thread: TM4C123GH6PGE, TM4C123GH6PM, SYSBIOS

Hi,

I installed TI-RTOS 1.10.00.23, but I couldn't find th eexample projects for LM4f232.

There are examples for Tivaware,  but not for TI-RTOS itself.

I do find Ti-RTOS example projects for F28M36 processor, but not the Tiva series basically...

Where can I find the example projects for TI-RTOS Lm4f and LM3s ...?

thanks

  • Hello,

    What version of CCS are you using? Do you see SYS/BIOS examples for the Tiva TM4C123GH6PGE?

    Whitney

  • Hi,

    CCS version : 5.4.0.00091.

    And yes, I do see the sys/bios examples for TM4c123gh6pge (C++ example(bigtime), Clock Example, Error example, Event, Hello, Log, Memory, Samll, Static, Swi, Task Mutex, and Taks Mutex (separate config)).

    What's the relationship between TM4c123gh6pge and LM4f232 ?

    And is there any  difference between TI-RTOS example and SYS/BIOS example ?

    Basically,  what I tried to find are the example projects as described on TI-RTOS user guide / getting started guide,  such as :

    Empty TI-RTOS Project X X X
    Demo [M3] / Demo [C28] X X X X X X X X X
    IPC SPI Master / Slave X X X X X
    Graphic Library Demo X X X X X
    TCP Echo X X X X
    TCP Echo for CC3000 X X X X X
    CC3000 Patcher X X X X X
    UDP Echo X X X X
    UDP Echo for CC3000 X X X X X
    SPI Loopback X X X X
    FatSD: FatFs File Copy X X X X
    FatSD Raw: FatFs File Copy using FatFs
    APIs X X X X
    FatSD USB Copy: (SD Card and USB
    Drive) X X X X X
    GPIO Interrupt X X X
    I2C EEPROM X X X X
    UART Console * X X X X X
    UART Echo X X X X
    UART Logging X X X X
    USB Keyboard Device X X X X
    USB Keyboard Host X X X X
    USB Mouse Device X X X X
    USB Mouse Host X X X X
    USB Serial Device X X X X
    USB CDC Mouse Device

    thanks

  • So when you open up TI Resource Explorer and expand TI-RTOS, you do not see a Tiva C Series section?

    Since TI-RTOS now ships TivaWare instead of StellarisWare, the examples are being placed under Tiva part names and support for the Stellaris M3 has been dropped. However, the Tiva C Series examples still work on LM4F devices. Examples that work for the EKS-LM4F232 are now found under the name Tiva TM4C123GH6PGE and examples for the EK-LM4F120XL are found under the Tiva TM4C123GH6PM.

    TI-RTOS examples use SYS/BIOS, but also demonstrates how to use TI-RTOS drivers for things like UART, I2C, SPI, etc...

    Whitney

  • Hi,

    Thank you for your explanation.  Now, I can find the example projects.

  • Hi Whitney,

     

    by the way, when I tried to debug the  Echo uart example I got :

     Starting the UART Echo example
    System provider is set to SysMin. Halt the target and use ROV to view output.
    = 0x40000000
    DFSR = 0x0000000b
    MMAR = 0xe000ed34
    BFAR = 0xe000ed38
    AFSR = xception occurred in background thread at PC = 0x00004b50.
    Core 0: Exception occurred in ThreadType_Task.
    Task name: ti.sysbios.knl.Task.IdleTask, handle: 0x20004ac0.
    Task stack base: 0x20000b60.
    Task stack size: 0x800.
    R0 = 0x00000090  R8  = 0xffffffff
    R1 = 0x00000044  R9  = 0xffffffff
    R2 = 0x00000890  R10 = 0xffffffff
    R3 = 0x00000000  R11 = 0xffffffff
    R4 = 0x0000aa80  R12 = 0x00000020
    R5 = 0x0000aa80  SP(R13) = 0x20001310
    R6 = 0x00000001  LR(R14) = 0x00004b45
    R7 = 0x0000aa74  PC(R15) = 0x00004b50
    PSR = 0x21000000
    ICSR = 0x00423803
    MMFSR = x00000000
    Terminating execution...

     

    Could you  please help me...

    thanks

  • Are you using the EKS-LM4F232 evaluation board or another board? Have you successfully run a few of the other TI-RTOS examples?

    Can you explain where the exception occurs--like after a certain function call or after a certain amount of time? Does it happen every time or are you able to do a system reset after you get the exception and rerun it without it happening again?

    Whitney

  • Hi,

     

    I'm using the same board EKS-LM4F232.  I tried running the "blinky "  and it's ok (alltough, I need to press reset then debug to make it run , which I think it's normal ..?).

    I tried other rtos project on LM4f120 board, and they are fine.

    As you can see on my previous posting, I think the problem is on  "Task name: echo," ....

     

     

    and it happens every time I run it.

     

    thanks

     

     

     

     Starting the UART Echo example
    System provider is set to SysMin. Halt the target and use ROV to view output.
    = 0x40000000
    DFSR = 0x0000000b
    MMAR = 0xe000ed34
    BFAR = 0xe000ed38
    AFSR = xception occurred in background thread at PC = 0x00004b50.
    Core 0: Exception occurred in ThreadType_Task.
    Task name: ti.sysbios.knl.Task.IdleTask, handle: 0x20004ac0.
    Task stack base: 0x20000b60.
    Task stack size: 0x800.
    R0 = 0x00000090  R8  = 0xffffffff
    R1 = 0x00000044  R9  = 0xffffffff
    R2 = 0x00000890  R10 = 0xffffffff
    R3 = 0x00000000  R11 = 0xffffffff
    R4 = 0x0000aa80  R12 = 0x00000020
    R5 = 0x0000aa80  SP(R13) = 0x20001310
    R6 = 0x00000001  LR(R14) = 0x00004b45
    R7 = 0x0000aa74  PC(R15) = 0x00004b50
    PSR = 0x21000000
    ICSR = 0x00423803
    MMFSR = x00000000
    Terminating execution...

  • I've found that it's not unusual to have to do a system reset before running an application on LM4F devices.

    After you get the exception, open the ROV tool and look at the "Scan for errors..." tab in the BIOS section and see if it lists any problems. Also try putting a breakpoint at the UART_Params_init() call in echoFxn() and run to it. If it makes it to the break point, single step through the code and see how far you can get.

    Have you tried running some of the other TI-RTOS examples on the LM4F232, like Watchdog or GPIO Interrupt?

    Thanks,

    Whitney

  • Hi Whitney,

    I tried ROV but seems like doesn't give me consistent  results.  I'll try again in a few...

    But, two things for sure :

    1.  the board runs all NON RTOS examples.

    2. the board always fail on any of rtos example (gpiointerupt, uart echo, euatrt console...)

     

    Thanks

     

  • Did you try putting a breakpoint in the task like I suggested? It would help me to know whether or not the task ever runs after BIOS_start() gets called. I'm guessing that since the System_printf() in main() was getting executed in the UART Echo example that you were at least reaching BIOS_start(), correct?

    Any luck with SYS/BIOS examples like the "Swi Example"?

    Thanks for your patience.

    Whitney