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/IWR1642BOOST: isInitialized of gGPIOMCB is throwing runtime error.

Part Number: IWR1642BOOST
Other Parts Discussed in Thread: IWR1642

Tool/software: TI-RTOS

Hi,

I am trying to toggle GPIOs of IWR1642 but after 1st toggle following line is throwing error thrown


DebugP_assert (gGPIOMCB.isInitialized);

error is as follows

xdc.runtime.Main: "../common/gpio_test.c", line 372: assertion failure
xdc.runtime.Error.raise: terminating execution

Have foa llowing set of softwares for ES 2.0

so to overcome this problem, I am skipping second time check via a simple if loop but that is just a work around. Any body have any suggestion?



  • Hi Laxmi,

    Have you ran a GPIO init function? Where in code are you running it?

    If you can provide more information on code changes you've made and we'll have an expert look into it next week.


    Cheers,
    Akash
  • Hi Laxmi,

    The GPIO driver documentation can be found at C:\ti\mmwave_sdk_<ver>\docs\mmwave_sdk_module_documentation.html.

    The code in C:\ti\mmwave_sdk_<ver>\packages\ti\drivers\gpio\test can be used as a working reference. Please compare it with your code.

    One thing to make sure is to call GPIO_init() before using any other GPIO API calls since the GPIO_init() function initializes the driver and sets the global variable gGPIOMCB.isInitialized to "true".

    Please mark as answered if your issue is resolved or reply if more support is needed.

    Regards,
    John
  • Hello John and Akash,
    I have called GPIO_init () once then letter I am calling GPIO_toggle which calls gGPIOMCB.isInitialized evetime before setting the values at pin. But at the second time it is throwing error and working if I bypass second times and onwards.
  • Hi Laxmi,

    If the GPIO_init() function has already been called then the global variable "gGPIOMCB.isInitialized" was initialized to "true" at that point. If you later see that the gGPIOMCB.isInitialized variable is not set to true then some other code may have overwritten it. You should be able to use CCS to debug the software to see if the variable is getting overwritten.

    Regards,
    John