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.

IWR6843ISK-ODS: toggle test pin

Part Number: IWR6843ISK-ODS


Hi,

I was testing the overhead_3d_people_count_68xx_mss and want to have a simple output pin toggle.
I had a look at the code snipped in mss_main, Pcount3DDemo_platformInit() function, and created my own function to init a test pin.
I selected pin RADAR_GPIO_0, pin 56 on the J4 connectro of the MMWAVEICEBOOST board. As far as I can see it should connect to MMWAVEICEBOOST J5 pin 15 and comes from IWR6843ISK-ODS, WR6843QAGABL pin H13 GPIO[0].

I wrote:
uint32_t TestStatusGPIO;
Pinmux_Set_OverrideCtrl(SOC_XWR68XX_PINH13_PADAB, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
Pinmux_Set_FuncSel(SOC_XWR68XX_PINH13_PADAB, SOC_XWR68XX_PINH13_PADAB_GPIO_0);
TestStatusGPIO = SOC_XWR68XX_GPIO_0;
GPIO_setConfig (TestStatusGPIO, GPIO_CFG_OUTPUT);

And a function 

void setTestPintMode(int mode)
{
    GPIO_write (TestStatusGPIO, mode);
}

When calling this function from within a task, an error is generated.
{module#9}: "src/gpio.c", line 927: error {id:0x10000, args:[0x1e8cc, 0x1e8cc]}
xdc.runtime.Error.raise: terminating execution

What did I do wrong here?

  • Hi Bob,

    The line referenced ( "src/gpio.c", line 927) reads:

    /* We can only send data if the Port/Pin was configured correctly */
    DebugP_assert ((gGPIOMCB.pinCfg [port][pin] & GPIO_CFG_OUTPUT) == GPIO_CFG_OUTPUT);

    I would recommend putting the device in debug mode to figure out how to fix this. Also reference C:\ti\mmwave_sdk_03_05_00_04\packages\ti\drivers\gpio\test\xwr68xx\main.c for an example. I also notice that there is also SOC_XWR68XX_PINH13_PADAB_GPIO_13 as well as SOC_XWR68XX_PINH13_PADAB_GPIO_0, why did you select 0?

    Best,

    Nate