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.

TDA4AL-Q1: How can I read GPIO state of TDA4 in QNX os

Part Number: TDA4AL-Q1

Hi 

we are working on project using TDA4AL  with QNX7.1 OS

we design two of SOC  pins as gpio and want to read it state in QNX os. 

does TI support command to do this? Or how can we do this ?

thanks

  • Hi,

    The GPIO registers can be read/written in a similar fashion to other registers in the TDA4AL device. 

    The QNX BSP for the TDA4AL has some macros defined for modifying WKUP_GPIO0_49.  In this case the macros are used to set the GPIO as an to be an output and set high, see below file:

    • bsp/src/hardware/startup/boards/j721s2/evm/hw_init.c

    Similar steps can be followed for other GPIOs.

    Regards,

    kb

  • Hi 

    my question not clarity

    i I want to got the GPIO state from command line of QNX

    so that I want to know if any command can support this and how to use it ?

  • Hi Eric,

    QNX has utilities to read/write memory locations from command line, you could contact them for access, and/or write your own.

    On the TI side the k3conf utility can be used as below to read/write a memory location

    • k3conf read <address>
    • k3conf write <address> <value>

    If the TI SDK QNX is installed the k3conf utility will be available.  For a full list of k3conf capabilities type "k3conf --help".

    The source code for k3conf is included in PSDK QNX at psdkqa/qnx/utils/k3conf.

    Regards,

    kb