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.

Toggle LED in IAR on Beaglebone

Hello, i would like to use Beagle-bone in my project to drive LCD with integrated controller SSD1963.

So first job is to toggle GPIO, and from that i should be able to write all code for I80 interface.

But i have no luck toggling LED in IAR environment, i was able to debug example project, but have no idea how to toggle.

I have some experience in STM32F4, so i would like to run my c program on core with no boot-loader or other stuff (just like in STM32 processor)

Can some one guide me how to create project in IAR ARM 6.40.2 and toggle led ?

I was unable to import projects from StarterWare for this processor

  • Hello Linas,

    I hope you are referring to AM335x 02.00.00.07 release package. I would like to answer separately to three different aspects of your query.

    GPIO is not toggling

    I tested the pre-built binary of GPIO LED Blink example built through CCS present as part of the release package. The application worked. I also imported the GPIO LED Blink project onto IAR IDE, built the project and tested the resultant binary image. It worked. Therefore there is no error in the GPIO toggling code.

    IAR Version supported

    The IAR version supported for this release is 6.30. The release documentation link mentioned below specifies this detail.

    http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#IAR_Embedded_Workbench_6.XX_Projects

    Please use IAR 6.30 version for your experiments.

    Linas Karpavicius97132 said:
    But i have no luck toggling LED in IAR environment, i was able to debug example project, but have no idea how to toggle.

    You are mentioning about debugging the GPIO project. If you meant source code debugging through IAR, then you must use the emulator TI XDS100.  The link provided above also explains the method to configure the GPIO project and IAR IDE so that its executable can be debugged through IAR.

     

    Please revert for any queries.

     

    Thanks and Regards.

    Gurudutt.

  • hi, and thanks for reply.
    i already find that i was missing one file, and adding that fixed my problem.
    But problems don't end here. i was able to get just over 3MHz toggle speed with some heavy overclock (to 1,3GHz) and i think that must be other way to get let say about 20-60MHz toggle speed from ARM Cortex A8. (since arm cortex M4 can do 130MHz toggle to GPIO, why A8 can't ?)
    http://www.youtube.com/watch?v=IdV_OXv1QtQ

  • Hi all,

    I am toggling a LED too, and with 550 MHz clock, I only get 12,5 MHz toogle. I have enabled MMU and Cache.

    The reference manual says that the GPIO clock is 100 MHz, so I expected to obtain close to this frecuency toggle.

    Is there any limitation on the GPIO toggle?

    Thanks,

    Gilen