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.

AM335x ICE using LED or GPIO

Other Parts Discussed in Thread: SYSBIOS

Hello,

i am trying with CCS (and SysBios) to toggle a LED (there are 8) or is there any GPIO which i can toggle?

I have some .h files from Starterware with functions like: set_led, set_led_on .

Is it the right way or how i can toggle a LED on the ICE Board (or a GPIO pin)? If not can anyone help me at the beginning?

Thanks :)

  • Daniel,

    please have a look at the ICE schematics. There are some LEDs directly connected to GPIO and some (the 8) are indirectly accessible through an IO-expander (using I2C interface). You can find API functions in IA-SDK and also some examples (e.g. the EtherCAT examples) using these.

    Regards.

  • I´ve tried to debug the ethercat CCS project from SYSBIOS ind_sdk example folder.

    After building the project i get following warnings:

    This project was created using a version of compiler that is not currently installed: 4.9.0 [ARM]. Another version of the compiler will be used during build: 5.0.6. Please install the compiler of the required version, or migrate the project to one of the available compiler versions by adjusting project properties.	ethercat		properties	Problems
    This project was created using a version of XDCtools that is not currently installed: 3.23.0.26.eng. Please install the XDCtools of this version, or migrate the project to one of the supported versions.	ethercat		ethercat	Problems
    RTSC product 'Inter-processor Communication' v1.23.5.40 (or equivalent) is not currently installed. A compatible version 1.25.3.15 will be used during build. Please install a product of equivalent version, or enable one of the supported versions of this product.	ethercat		ethercat	Problems
    RTSC product 'SYS/BIOS' v6.33.5.46 (or equivalent) is not currently installed. A compatible version 6.35.1.29 will be used during build. Please install a product of equivalent version, or enable one of the supported versions of this product.	ethercat		ethercat	Problems
    

    And if i debug i get this error:

    CortxA8: GEL: Encountered a problem loading file: C:\ti_workspace\ethercat\Debug\ethercat.out Could not open file

    Where is the mistake in this project?



  • Daniel L said:

    CortxA8: GEL: Encountered a problem loading file: C:\ti_workspace\ethercat\Debug\ethercat.out Could not open file

    You just list the warnings from build process but the last line indicates the .out file was not build. So there must be some error. Please provide the compile console output. Also make sure you double-click the Bios .cfg file in the example at least once. That triggers a Bios build step that is required. Then re-build.

    Are you using latest IA-SDK 1.1.0.1?

    Regards.

  • Thank You,

    i did not know that i must double-cklick and open the *.cfg file.

    Know i am running an another example. Project: i2cled ! When i press play, then i have this error in Debug Mode:

    Can't find a source file at "/db/rtree/library/trees/xdcprod/xdcprod-r66/product/Linux/xdctools_3_25_02_66_eng/packages/xdc/runtime/Error.c" 

    Is this a problem? Cause the program started succesfully on the ICE Board ( i have a LED-Disco :) )

    (i will not forget to press YES, later)

  • Daniel,

    yes, the .cfg issue is a bit strange and I am actually not sure if we miss to export some files in the SDK to avoid that. Something to ask in the CCS or Sys/Bios forum...

    Now the missing file in debugger just means that the debugger wants to step in that file but the binary contains only the build server location path. You can manually tell CCS where on your PC this file is. I am not sure why you get there in the first place. Maybe some issue with a later Sys/Bios version we haven't seen yet. So just ignore for now if your code works...

    Regards,