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.

AWR1642: About GPIO control

Part Number: AWR1642

Hello,

I want to control GPIO from DSP for debugging AWR1642. Is it possible to control output pins from DSP?

DSP C674x Memory Map does not have General-purpose control registers, but is there any way to control it?

Thanks and regards,

  • Hi,

    There is no driver available for GPIO in mmWave SDK. 

    But for debug purpose you can write to GPIO_2 using below code snippet from DSS (dss_main.c).

    uint32_t *gpioPortAWr = (uint32_t*)0x05F7BC40;/* GIOSETA */

    /* Set GPIO status to high */

    *gpioPortAWr = (1<<2);

    uint32_t *gpioPortAClr = (uint32_t*)0x05F7BC44;/* GIOCLRA */

    /* clear or set GPIO status to low */

    *gpioPortAClr = (1<<2);

    Note- make sure that GPIO_init and the same GPIO pin is set as output from MSS, as it happens for GPIO_2 in mss_main.c of mmw demo.

    Refer this thread link to navigate GPIO interrupt to DSS core.

    https://e2e.ti.com/support/sensors/f/1023/p/838119/3114681#3114681

    Regards,

    Jitendra