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.

CC3235SF: How can we run a debug session while also enabling LPDS?

Part Number: CC3235SF


Hi,

We are having some issues with our application while using LPDS and want to debug it. 

We know there is a function call PRCMLPDSEnterKeepDebugIf() but don't know how to implement it into our code.

If you can provide help on how to implement the function or another way to debug during low power that would be great.

Thank you

  • Hey Ajay,

    To use PRCMLPDSEnterKeepDebugIf() you can simply replace PRCMLPDSEnter() with PRCMLPDSEnterKeepDebugIf().

    Best regards,

    Jesse

  • Hi Jesse,

    We are calling Power_enablePolicy() in our program, from my knowledge this allows the device to figure out when to go into LPDS where as PRCMLPDSEnter will enter LPDS when it runs the code. Since i am not sure how or if PRCMLPDSEnterKeepDebugIf() can replace Power_enablePolicy() that's why I am a bit confused where to add it into our application.

    Thanks

  • Hey Ajay,

    In CC3235SF_LAUNCHXL.c you can try setting

    .keepDebugActiveDuringLPDS = true,

    in

    const PowerCC32XX_ConfigV1 PowerCC32XX_config = { ... }

    and 

    udpate the park info for the following pins in the parkInfo structure in CC3235SF_LAUNCHXL.c

        {PowerCC32XX_PIN16PowerCC32XX_DONT_PARK}, /* TDI (JTAG DEBUG)    */
        {PowerCC32XX_PIN17, PowerCC32XX_DONT_PARK}, /* TDO (JTAG DEBUG)    */
        {PowerCC32XX_PIN19, PowerCC32XX_DONT_PARK}, /* TCK (JTAG DEBUG)    */
        {PowerCC32XX_PIN20, PowerCC32XX_DONT_PARK}, /* TMS (JTAG DEBUG)    */

    Best regards,

    Jesse