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.

ICE Board GPIO using

Other Parts Discussed in Thread: SYSBIOS, AM3359

Hello,

i´ve got the ICE Board Rev. 1.0A

I want to use the GPIOs with signalname GPMC_AD[0..15] which are connected to the RAM (but the RAM isn´t on the board)

GPMC_AD[0..7] is GPIO1_0...7 an PIN 90,91,93-100 of the RAM (not on the board)

With help from the i2c LED example i can toggle some GPIOs, which are connected with a LED,

but when i use this functions to toggle one GPIO1_0...7 it doesn´t work. (Everytime theres a high signal)

Edit: * I think i must change the Mode of this PIN to Mode 7 ? Is it right and allowed?

Thanks

  • Hi Daniel L,

    What is the exact device you are using?  Are you using an SDK of sorts?  Or are you using TI-RTOS?

    Daniel L said:
    With help from the i2c LED example i can toggle some GPIOs, which are connected with a LED,

    Which software product did you get this example from?

    Steve

  • The example is from: ..\am335x_sysbios_ind_sdk_1.0.0.9\sdk\examples\i2c_led

    I am using SysBIOS, and some functions from the SDK (although installed IPC and XDC tools)

    I´ve found that GPMC is one MODE of the GPIO_PINs. So I think I must first change the MODE? GPMC for the RAM is here provided but not in use without the RAM on the board.

    Device: ICE Board Rev. 1.0A with an AM3359

  • Problem solved:

    1) Control Module set PIN in GPIO Mode (Mode 7) Offset = 800h for gpmc_ad_0 / GPIO1_0

    0x44E10800 = 0x00000007; // gpmc_ad_0 mode:7  GPIO1_0, pulldown enabled, only output

    2) Enable Output @GPIO1_0 Pin Offset = 134h

     0x4804C134 &= 0xFFFFFFFE;// enable OUTPUT GPIO1 bit 0

    3) Toggle GPIO

    On: Offset = 194h -> GPIO_SETDATAOUT

    0x4804C194  = 0x00000001; // set bit GPIO1_0

    Off: Offset = 190h -> GPIO_CLEARDATAOUT

    0x4804C190  = 0x00000001;	// reset bit GPIO1_0

    
    

    Thanks