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.

Regarding Running a LED Blinking code taken from AM335X_StarterWare_02_00_01_01

Hi Everyone,

                       I want to run a LED Blinking Code taken AM335X_StarterWare_02_00_01_01 from Examples folder of Beagle Bone and modified according to my target board open board AM335X from phytec in a non-OS Environment.I am using IAR Embedded Work Bench IDE to run the code instead of CCS because i am having IAR Systems J-link for ARM Jtag debugger.I have used TI Pin MUX tool for AM335X and generated the files required and copied the files to my project folder but i am getting errors while downloading the code to target board as below

am335x_gpevm_pinmux_data.c
Fatal Error[Pe1696]: cannot open source file "types.h" C:\Users\laxven\Downloads\am335x_gpevm_pinmux_data.c 48
searched: "C:\Users\laxven\Downloads\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm\inc\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm\inc\c\"
Error while running C/C++ Compiler

and i can't able to find the types.h file in the AM335X_StarterWare_02_00_01_01 folder.Please me a idea to resolve this error.

Thanks in advance

Regards,

Sarath.5238.am335x_gpevm_pinmux_data.c

  • Moving this to the Starterware forum.
  • Hi Sarath,

    Are you using the cloud pinmux utility v4?

    The reason I ask is that the new Processor SDK RTOS for AM335x with Starterware 2.1.1.1 has a types.h located at C:\ti\pdk_am335x_1_0_1\packages\ti\starterware\include\types.h. So, I think what's happening is that that the newer version of the pinmux utility is generating files pointing to types.h from this new release.

    Would recommend working with this new release if possible. You can get it here.

    Lali

  • Hi Lali,

                I am using pinmux utility v4 ,you said that to use new release of starterware 2.1.1.1 but it is a RTOS based starterware here i want to run code in a Non OS Environment. Can i use pinmux utility v3 instead?

    Regards,

    Sarath.

  • Hi Sarath,

    There is a Starterware package (non-OS) in that release as well. Please take a look.

    Lali

  • Hi Lali,

                As you said i have seen the pdk_am335x_1_0_1 folder and added types.h file to my project but i have linking error with GPIO predefined API's as shown below 

    Error[Li005]: no definition for "GPIO1ModuleClkConfig" [referenced from D:\PHYTEC\
    Debug\Obj\gpioLEDBlink.o]
    Error[Li005]: no definition for "GPIO1Pin30PinMuxSetup" [referenced from D:\PHYTEC\
    Debug\Obj\gpioLEDBlink.o]
    Error[Li005]: no definition for "GPIOModuleEnable" [referenced from D:\PHYTEC\
    Debug\Obj\gpioLEDBlink.o]
    Error[Li005]: no definition for "GPIOModuleReset" [referenced from D:\PHYTEC\
    Debug\Obj\gpioLEDBlink.o]
    Error[Li005]: no definition for "GPIODirModeSet" [referenced from D:\PHYTEC\Debug\
    Obj\gpioLEDBlink.o]
    Error[Li005]: no definition for "GPIOPinWrite" [referenced from D:\PHYTEC\Debug\Obj\
    gpioLEDBlink.o]
    Error while running Linker

    Please tell me where can i find the definitions or i have write these definitions by my own.I am attaching the gpioLEDBlink.c and other include files.

    Regards,

    Sarath

    6710.gpioLEDBlink.c.docx0880.gpio_v2.h.docx7607.hw_gpio_v2.h.docx0243.phytec.h.docx3678.soc_AM335x.h.docx

  • Sarath,

    Are you importing the LEDblink project from C:\ti\pdk_am335x_1_0_1\packages\ti\starterware\examples\gpio\led_blink ? I don't think you can just grab the types.h from that release and drop it into an older release. This will cause problems.

    Import the LED example as in the path above and compile that. Import all the Starterware examples into the workspace as there are dependencies (board, etc). Also ensure that you are using CCS 6.1.2 with this release.

    Lali

  • Hello Sarath,
    its aleady a while since your post but I have the same setup/problem. Did you solved the issue?
    If so, would it maybe possible to share your experience?
    That would be great!

    Thanks in advance and regards,
    Paul