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.

OMAP-L138: GPIO interrupt for OMAP-L138

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138, , TMS320C6748, MATHLIB, SYSBIOS

Hello,

I am using MityDSP-L138 board from critical link.

I need to enable GPIO interrupt  on MityDSP-L138 module. Is there an specific example for GPIO interrupt for MityDSP-L138 board?

Or any document which I can follow for GPIO interrupt on MityDSP-L138 module

Thanks & Regards

Navaneetha krishnan

  • Which Processor SDK is this? Linux or RTOS?
    Which SDK version are you using?

    Best Regards,
    Yordan
  • Dear yordan,

    Thanks for your reply,

    we are using "pdk_omapl138_1_0_3" sdk.

    When I connect the OMAP-L138 using uart to my laptop it shows "U-BOOT" menu.

    Actually I am familiar in TMS320C6748 but this is my first project with OMAP-L138.

    Kindly support me how to work GPIO interrupt in OMAP-L138.

    Thanks & regards

    Navaneetha krishnan

  • Hello Navaneetha,

    In Processor SDK, we have GPIO examples that can be built using the batch scripts in the PDK folder. To build them, run the following commands:
    > cd pdk\packages
    > pdkProjectCreate.bat OMAPL138 all little gpio all dsp

    The CCS projects can then be imported from the pdk\packages\MyExampleProjects folder.

    There are also CSL examples here: processors.wiki.ti.com/.../QuickStartOMAPL1x_rCSL

    These examples are for the lcdkOMAPL138 and evmOMAPL138, so I'm not sure how compatible they will be with the MityDSP-L138 board. I did a quick google search and found these examples on the Critical Link forum which seem to be specifically for MityDSP-L138:
    support.criticallink.com/.../1500

    I hope these help. If you have any questions please let me know.
  • hello sakin,

    Thanks for your reply.

    I tried to build "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject" of processor SDK. But I get the following error.


    **** Clean-only build of configuration Debug for project OSAL_BasicExample_lcdkOMAPL138_c674xTestProject ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 clean -O
     
    DEL /F  "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.hex"  "configPkg\linker.cmd" "configPkg\compiler.opt"  "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out"
    RMDIR /S/Q  "configPkg\"
    DEL /F "main_osal_test.obj"
    DEL /F "main_osal_test.d"
    Could Not Find C:\ti\pdk_omapl138_1_0_3\packages\MyExampleProjects\OSAL_BasicExample_lcdkOMAPL138_c674xTestProject\Debug\OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.hex
    Could Not Find C:\ti\pdk_omapl138_1_0_3\packages\MyExampleProjects\OSAL_BasicExample_lcdkOMAPL138_c674xTestProject\Debug\OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out
    Finished clean
     

    **** Build Finished ****

    **** Build of configuration Debug for project OSAL_BasicExample_lcdkOMAPL138_c674xTestProject ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O
     
    Building file: "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/osal_test_omapl138.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_omapl138_1_0_3/packages;C:/ti/edma3_lld_2_12_05_30B/packages;C:/ti/ipc_3_47_00_00/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/dsplib_c674x_3_4_0_0/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/mathlib_c674x_3_1_1_0/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evmOMAPL138 -r debug -c "C:/ti/ti-cgt-c6000_8.2.2" "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/osal_test_omapl138.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring osal_test_omapl138.xe674 from package/cfg/osal_test_omapl138_pe674.cfg ...
    generating custom ti.sysbios library makefile ...
        Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674
        Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674
        Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674
        Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674
        Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674
    Starting build of library sources ...
    making C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/src/sysbios/sysbios.ae674 ...
    gmake[1]: Entering directory `C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/src/sysbios'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/src/sysbios'
    Build of libraries done.
    cle674 package/cfg/osal_test_omapl138_pe674.c ...
    Finished building: "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/omapl138/c674x/bios/osal_test_omapl138.cfg"
     
    Building file: "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/src/main_osal_test.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_omapl138_1_0_3/packages/MyExampleProjects/OSAL_BasicExample_lcdkOMAPL138_c674xTestProject" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=omapl138 --define=SOC_OMAPL138 --define=lcdkOMAPL138 --define=USE_BIOS --define=ENABLE_TIMER_TEST -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main_osal_test.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/src/main_osal_test.c"
    "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/src/main_osal_test.c", line 698: warning #169-D: argument of type "void (*)(void *)" is incompatible with parameter of type "void (*)(void)"
    "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/src/main_osal_test.c", line 699: warning #225-D: function "Intc_IntPrioritySet" declared implicitly
    Finished building: "C:/ti/pdk_omapl138_1_0_3/packages/ti/osal/test/src/main_osal_test.c"
     
    Building target: "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out"
    Invoking: C6000 Linker
    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv64+ --define=omapl138 --define=SOC_OMAPL138 --define=lcdkOMAPL138 --define=USE_BIOS --define=ENABLE_TIMER_TEST -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number -z -m"OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --define=DSP_CORE=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="OSAL_BasicExample_lcdkOMAPL138_c674xTestProject_linkInfo.xml" --rom_model -o "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out" "./main_osal_test.obj" -l"configPkg/linker.cmd" -llibc.a
    <Linking>
     
     undefined               first referenced    
      symbol                     in file         
     ---------               ----------------    
     GPIODebounceFuncControl ./main_osal_test.obj
     GPIODebounceTimeConfig  ./main_osal_test.obj
     GPIODirModeSet          ./main_osal_test.obj
     GPIOIntTypeSet          ./main_osal_test.obj
     GPIOModuleEnable        ./main_osal_test.obj
     GPIOModuleReset         ./main_osal_test.obj
     GPIOPinIntClear         ./main_osal_test.obj
     GPIOPinIntDisable       ./main_osal_test.obj
     GPIOPinIntEnable        ./main_osal_test.obj
     GPIOPinRead             ./main_osal_test.obj
     Intc_IntPrioritySet     ./main_osal_test.obj
     UARTConfigGets          ./main_osal_test.obj
     UARTConfigPutHexNum     ./main_osal_test.obj
     UARTConfigPuts          ./main_osal_test.obj
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out" not built
     
    >> Compilation failure
    makefile:140: recipe for target 'OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out' failed
    gmake[1]: *** [OSAL_BasicExample_lcdkOMAPL138_c674xTestProject.out] Error 1
    makefile:136: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    Thanks & Regards

    Navaneetha krishnan

  • Hello,

    I wasn't able to reproduce this on the SDK v5.1. Can you migrate to the latest SDK?

    Have you made any changes to the example? It looks like some libraries aren't being linked. Can you try using this .cfg file?

    osal_test_omapl138.cfg

  • Hello sahin,

    I get the same error with this .cfg file also.

    Can you share link for downloading  SDKV5.1

    Thanks

    Navaneetha krishnan

  • Download link to 5.1 release:

  • Dear Sahin,

    Thanks for sharing the download link.

    I am trying to run the "C:\ti\pdk_omapl138_1_0_6\packages\ti\csl\example\gpio\gpio_interrupt" this example. I have added this code in "OSAL_BasicExample_lcdkOMAPL138_c674xTestProject" then only I get the error which I mentioned above.

    Can you suggest how to create CCS project for "C:\ti\pdk_omapl138_1_0_6\packages\ti\csl\example\gpio\gpio_interrupt".  Or if you have the same example as ccs project kindly share to me.

    Thanks & Regards

    Navaneetha krishnan

  • Dear Sahin,

    We are looking forward for your reply

    Thanks & Regards
    Navaneetha krishnan
  • Hello,

    The CSL examples in the PDK are for AM572x devices only. For OMAP-L13x, you can use the quickstart CSL examples:
    processors.wiki.ti.com/.../QuickStartOMAPL1x_rCSL