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.

TI-RTOS GPIO API

Other Parts Discussed in Thread: SYSBIOS

Hello,

I try to use the GPIOs of AM3359 ICE board V2.1 with SYS/BIOS (TI-RTOS Kernel) v6.45 and CCS 6.1.2.00015.

I use the i2c_led example from AM335x_sysbios_ind_sdk_1.1.0.10 as a starting point for my application.

My question:

Where can I find the IO specific API for GPIO (and GPMC) usage referring “gpio_v2.h” for example?

 

Best regards,

Boris

  • I moved your question to the device forum.
  • Dear Biser,

    Thank you very much for your reply!

    Unfortunately the example you are suggesting is not helpful for me, because I can already run the LEDs and GPIOs on the TI ICE board. What I still don’t know is how to configure and run the GPMC interface?

    For your background, I am senior developer in a large R&D project, where an older generation of medical devices have to be updated. Currently, the medical devices are driven by an 8-bit microcontroller. It controls an FPGA I/O board through bi-directional 12-bit address/data interface. I have to replace the 8-bit microcontroller with something like TI ICE in order to allow IoT and industrial communication. I suppose, the Sitara ICE platform is well suited to this, but I need a running prototype within the next weeks to demonstrate the suitability of Sitara ICE platform to my project partners.

    I found this thread in your forum, which is very similar to my case, but the linked code is not running on the TI ICE V2.1 https://e2e.ti.com/support/arm/sitara_arm/f/791/t/191922

    So, do you have any documented example, how to configure and run the GPMC ports on TI ICE V2.1 with TI-RTOS?

    It would be great if you can help me with the GPMC interface!

    Another problem I have with the TI ICE V2.1 is the timing. When I set the “Tick period” of the clock smaller than 61µs (in CCS, SYS/BIOS>Scheduling>Clock), the board does not work (even RTOS is not starting), so I cannot perform a Task_sleep(1) shorter than 61µs. Is this a board specific limitation? If not, how can I perform cyclic tasks with 50µs or less?

    Awaiting your kind reply,

    Boris Beckmann-Dobrev

  • Hi Boris,

    Regarding the small Clock tick...I'd use a separate timer for such a quick period. I'd have the task pend on a semaphore and have the timer function post the semaphore.

    Todd

  • user4606594,

    Please take a look at the starterware package in SYSBIOSSDK-IND-SITARA 02_01_01_02

     http://downloads.ti.com/sitara_indus/esd/SYSBIOSSDK-IND-SITARA/latest/index_FDS.html 

    There are some NAND examples in the package that might assist, but won't run on the ICEv2 since there isn't a NAND device on it. Header J4 contains the GPMC pins as you may have noticed. I hope this gets you going in the right direction. I'm also checking to see if there are any other examples that would help and will post back here if I do find something.

    I don't there are any GPMC examples that use SYSBIOS for ICEv2.

    Lali