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.

IWR6843AOP: How do I set the SPI Pinmux & GPIO setConfig on SBL code?

Part Number: IWR6843AOP

Hello, I'm Minwoo

I'm using mmwave SDK V4.4 & SBL reference code.

I have tried initialize platform as below.

But when this code call the GPIO_setConfig function, it doesn't run on the next function.

I need to control the CS pin. How can I configure the GPIO pins in SBL?

Thank you best regards,

Minwoo

  • Hello Minwoo,

    Please refer to the SDK examples on GPIO driver usage, since this question is less about SBL and more about general GPIO usage. Look at <SDK3_INSTALL_DIR>\packages\ti\drivers\gpio, specifically at the test code.

    Regards,
    Luke

  • Hi Luke, 

    Thank you for reply. Im going to check test code again.

    I was using the above attached functions in the Radar example code just fine.

    only in the SBL code the configuration doesn't work, I don't know why...

  • Hi Minwoo,

    Report back with an update after checking that GPIO test code. If it does not solve the issue, we certainly can support you further. I did not know that the code above worked fine as test code but failed in the SBL. So if you need mor esupport, can you please detail more precisely what your set up and environment is? What is your hardware? What project are you importing into CCS and what file(s) are failing.

    Kind regards,
    Luke

  • Hi Luke, 

    I'm using to "IWR6843AOP" and "mmwave_sdk_03_05_00_04".

    I have used SBL test code in mmwave sdk. 

    This SBL test code is as follows:

    I have added functions as below:

    Pinmux_Set_OverrideCtrl(SOC_XWR68XX_PINE15_PADAG, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
    Pinmux_Set_FuncSel(SOC_XWR68XX_PINE15_PADAG, SOC_XWR68XX_PINE15_PADAG_GPIO_30);
    GPIO_setConfig(SOC_XWR68XX_GPIO_30, GPIO_CFG_OUTPUT);

    The build works fine. But the work flow stopped at the GPIO_setConfig() function.

    How can I control the GPIO pin in SBL ?