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.

RTOS/TM4C129ENCPDT: IR remote code not working

Part Number: TM4C129ENCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: TI-RTOS

Hello Friends,

I downloaded IR remote code from following link:

While building program returns the warning,

.vtable is not created in sections. When I tried to add .vtable in sections in linker.cmd, my linker.cmd looks like this

SECTIONS
{
.bootVecs: type = DSECT
.vecs: load > 0x20000000
.resetVecs: load > 0x0
//.vtable : > 0x20000000


xdc.meta: type = COPY
}

Also it seems ir_init function in code was not called at all. Can anyone guide me in this error??

  • Hi Syed,
    The IR Demo looks like it was based on Stellaris Ware drivers. What I tried to do to build this demo for Tiva, was to import one of the TivaWare CCS example projects (I chose uart_echo) in CCS, and then try to build it. The problem is that you need to map some of the driverlib functions in remote.c to the corresponding Tiva driverlib functions. For example, GPIOPortIntRegister(IR_PORT, PA2IntHandler) becomes GPIOIntRegister(uint32_t ui32Port, void (*pfnIntHandler)(void)).
    When you try to build, you will see the undefined symbols for the driverlib functions that need to be mapped. It's pretty straight forward, but I couldn't fun UARTprintf() in the TivaWare. You can easily implement your own.
    Also, compare the starup_ccs.c file from the demo with the TivaWare example, and carefully the interrupt vector handlers that you need for the demo.

    I did not see the warning about the vtable since I'm using the linker command file from the TivaWare demo. I did not actually try to run this.
    Best regards,
    Janet
  • I did import demo code. not uartecho but tcpecho since we are using ethernet too in the project. still i got that warning. for some reason ir_init in the example code cannot be accessed. any idea regarding that.
  • Hello Janet,
    here are the things I did,

    1. Import uartecho project from resource explorer.
    2.removed uartecho.c file and added remote.c, remote.h, irdemo.c files from given zip file.
    3. added #include "utils/uartstdio.c" and changed uartstdioinit to uartstidoconfig.
    4. now after building the code, still getting
    #10247-D creating output section ".vtable" without a SECTIONS specification
    error.
    Any thoughts
  • Hi M Syd Ahmed,

    It looks like you imported the TI-RTOS uartecho example.  I had started with the TivaWare uart_echo example.

    You can find the CCS project under a directory like this (depending on your TivaWare version and where you have installed it):

    C:/ti/TivaWare_C_Series-2.1.1.71/examples/boards/ek-tm4c1294xl/uart_echo/ccs

    Best regards,

    Janet

  • We change interrupt to gpio interrupt and removed interrupt.h header and warning goes out. In despair, I started another thread in tm4c controller forum and I got help there. I am closing this thread, if any further problem arises, I will continue in that thread. Thanks a lot for your help. here is the link for that thread
    e2e.ti.com/.../582321