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.

PROCESSOR-SDK-AM62X: PROCESSOR-SDK-AM62X

Part Number: PROCESSOR-SDK-AM62X

Tool/software:

Hello, I am trying to test read/write GPIO Port Expanders via i2c on the EVK AM62X-LP but I am not sure if the command is right, considering the address 0x22 0x23.

Could you please explain, for instance, how would be the command to read Pin no P02 PRU_DETECT INPUT PRU Board Detection - IO EXPANDER - 01?

$ sudo i2cget -y 1 0x-- 0x--\

Thanks in advance!

  • Hello Jean,

    Can you help us understand what you are trying to do by reading one of the GPIO port expanders?

    Regards,

    Nick

  • Hello Nick, 

    Basically I am trying to control the GPIO Port expanders (write/read) on the EVK.

    In the project of our customer, we have 3 Port Expanders and we will need to write/read these ports. Firstly, I am trying to control using the EVK to access these Port Expanders, for later on decide how we will approach the customer project.

    For instance if we will be able to control just by one interaction the GPIO port expander, maybe if also would have a driver that TI could provide to do this?! Or if should firstly control the GPIO from SoC independently and after control the GPIO Port expander in a different "interaction".

    Best regards, 

  • Hi Jean,

    You can interact with the IO expanders by using the Userspace GPIO commands. Start with 'gpiodetect' to make sure the IO expanders are recognized. 

    Then you can use 'gpioset' & 'gpioget' for setting and getting the GPIO status.

    Best Regards,

    Anshu