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.

AM3358 EVM - SIMPLE CODE TO TOGGLE J16 (MAVRK CONNECTOR) GPIO1_D0 PIN (AM335X_GPMC_A0) USING SYS/BIOS

Other Parts Discussed in Thread: AM3358, AM3359

Looking for a sample project to simply toggle the J16 (MAVRK CONNECTOR) GPIO1_D0 PIN using SYS/BIOS

I've seen the SYS/BIOS videos but the example don't seem to cover the AM335x (Sitara) processor. I've tried the examples from the Starterware (../ti\AM335X_StarterWare_02_00_01_01\platform\evmAM335x) . Most of the projects seem to use Beaglbone or Linux. I have also tried the PINMUX programs to set up the pins with no luck.

Could someone provide  sample code or link?

My Environment:

Windows 7 with CCS6.x;  SYS/BIOS

Using AM3358 EVM (Note the actual processor is AM3359) with the TI XDS2xx USB Debug Probe

Thanks

  • Hi Rob,

    I couldn't find a bare metal (SYS/BIOS) code for setting up the GPIO, I am not familiar with the SYS/BIOS RTOS.. maybe it is a good idea to try asking in the TI-RTOS fourm (e2e.ti.com/.../355) as well.

    However to properly set the GPIO you need to:
    -- Enable functional/interface clocks in PRCM
    -- Do the correct pinmux settings for the gpio you want to use (Control Module settings)
    -- Set GPIO direction if necessary - GPIO_OE register
    -- Set IRQ/WKUP events
    -- Enable GPIO --> set GPIO_CTRL register.
    -- After that to output data you need to use the GPIO_DATAOUT register or the GPIO_SETDATAOUT/GPIO_CLEARDATAOUT registers.

    You can find detailed explanation in Section 25.3.4 General-Purpose Interface Basic Programming Model in AM335x TRM.

    Hope this helps.

    Best Regards,
    Yordan