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.

Enabling GPIO Pin Interrupts on DK-LM4F-DRV8312

Other Parts Discussed in Thread: SW-DK-LM4F-DRV8312, MOTORWARE, SW-MDL-LM4F211CNCD

TI Forum,

Working with the controlCard supplied with DK-LM4F-DRV8312.

In the LM4F211H5QR ROM User's Guide, it appears GPIO pin interrupts may be enabled with the function "ROM_GPIOPinIntEnable" pg 85.

Unfortunately, this function does not appear in ti\TivaWare_C_Series-1.0\driverlib\rom.h

Can a recommendation be made for the proper code for enabling interrupts on GPIO Ports?

Thanks in advance.

  • Hi,

       I believe that the equivalent at Tivaware 1.0 is GPIOIntEnable. Refer to to SW-DRL-UG-1.0.pdf for further information.

    -kel

  • Is the ROM_GPIOPinIntEnable command unsupported by TI? All of the examples provided with the controlCard and the examples in the Tivaware example folder use functions with the prefix "ROM_"

    What are the differences between calls to GPIOIntEnable vs ROM_GPIOIntEnable?

    Is there a reference that clearly explains the difference between these function types?

    When I attempt to use the "GPIOIntEnable" function, I receive an unresolved symbol error despite the fact that I have included the header file. It seems there is a problem with the linker to the requisite libraries.

    Is there an example project that uses only commands without the "ROM_" prefix? Again, I am using the controlCard supplied with DK-LM4F-DRV8312.

    Thanks in advance

  • Hi reg,

    I just recently downloaded Stellaris® SW-DK-LM4F-DRV8312 Firmware Development Package. Just to clear things up, DK-LM4F-DRV8312 uses Motorware. I don't think you can use Tivaware for your Development Kit. 

    It seems that ROM_GPIOPinIntEnable is supported by your kit based from the defines at rom.h. I checked one of the examples projects of Motorware and it uses ROM functions. Read the READMEFirst doc and try one of the example projects.

    reg2117 said:
    What are the differences between calls to GPIOIntEnable vs ROM_GPIOIntEnable?

    See slandrum explanation from the post below.

    http://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/193782.aspx

    -kel

  • Thank you for the kind reply.

    TI's support appears confusingly erratic. The firmware development package (and all code examples) for the controlCard SW-MDL-LM4F211CNCD (found here) are TivaWare and use (almost exclusively) commands with the ROM_ prefix. Why TI decided not to support the ROM_GPIOPinIntEnable command in Tivaware is not clear to me. Perhaps this thread provides partial explanation?

    Does a CSS example project exist that uses the non ROM_ commands exclusively? As written above, I receive an unresolved symbol error despite the fact that I have included the requisite header files. It seems there is a problem with the linker to the requisite libraries.

  • Hi Reg,

     

    reg2117 said:
    Does a CSS example project exist that uses the non ROM_ commands exclusively? As written above, I receive an unresolved symbol error despite the fact that I have included the requisite header files. It seems there is a problem with the linker to the requisite libraries.

       You must have some wrong settings at CCS. If you remove all the ROM_ at hello project of Tivaware, it will still build w/o errors. I tried that using Keil Uvision. As explained by slandrum from the post link above.

    "The ROM versions of the functions reside in the ROM on your device.  The non-ROM versions are linked in to your project,"

    -kel

  • Thank you again for the kind reply.

    The project lacked the "driverlib.lib" in the ARM linker properties.  For others that may run into this problem, the "hello" project has this include file path while the "blinky" project (from which I began changes) does not, hence the above problem with the linker to the requisite libraries.

    To compete the thread, is there an application note or other document that explains why the ROM_GPIOIntEnable is not supported, and perhaps a listing of the other functions in LM4F211H5QR ROM User's Guide that are unsupported?