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.

RTOS/TMDSIDK437X: Is I2C2 enabled by default

Part Number: TMDSIDK437X

Tool/software: TI-RTOS

hi,

    I am using TI Rtos on AM437x IDK, i have following query 

    dose  I2C2 is enabled by default for TI RTOS ?

    from which location it takes the pinmux config file for TI RTOS ?

    how to check if I2c2 is enabled or not ?

    if  I2c2 is not enabled how to enable it for ti rtos ?

   if pinmux setting is not right, how to add code for pin mux setting ?

thanks & regards,

Nikhil Muley

  • The RTOS team have been notified. They will respond here.
  • Hi,

    I think this is your follow up question how to enable I2C2 on AM437x IDK EVM for LED toggling test. We don't have that in the board diagnostic. I had submitted a feature request to add this into Processor SDK RTOS and will let you know the plan.

    Regards, Eric
  • Nikhil,

    you will need to import the idkAM437x pinmux file in the Pinmux tool if the I2C2 pins have been configured. To see what configuration was used to build the pinmux file for idk locate the pinmux configuration under pdk_am335x_1_0_6\packages\ti\starterware\tools\pinmux_config\am43xx


    In Processor SDK RTOS, all of the SOC and board level initialization is consolidated in the board library for the evaluation platform for idkAM437x, look at the source files :
    pdk_am437x_1_0_6\packages\ti\board\src\idkAM437x

    I2C0 is enabled as i t connects to the EEPROM which contains the board information.

    If you check idkAM437x_pinmux.c, you will see the functions that are used to configure the pinmux for the platform. The pinmux data for this platform is pulled from starterware folder (for legacy reasons) that is provided under packages.
    pdk_am335x_1_0_6\packages\ti\starterware\board\am43xx

    An excellent example for you to see how to modify or add an instance of a peripheral with AM devices refer to this app note:
    www.ti.com/.../sprac32.pdf (this is for UART but can be used for other peripherals)

    Regards,
    Rahul
  • hi Rahul,
    As per your suggestion, i have used pinmux tool to modify the pins for I2c2 and downloaded the generated files for starterware
    am43xx_gpevm_pinmux_data.c and am43xx_pinmux.h

    I have copy/replace above files to "pdk_am335x_1_0_6\packages\ti\starterware\board\am43xx "
    and
    then compile my I2C2 code still not working ?

    can you elaborate the steps to successfully work with I2C2

    Thanks & Regards,
    Nikhil Muley
  • Nikhil,

    As recommended in the App note Pinmux is only one part of the setup required to enable a peripheral instance. You need to enable clocks and PRCM registers. What test case are you using to check if I2C2 instance is working or not ?

    Regards,
    Rahul
  • hi rahul,
    I am refering the eeprom read example as reference, and in board config i have configured all (Board_moduleClockInit() , Board_pinmuxConfig()).

    thanks & regards,
    nikhil muley