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.

LAUNCHXL-CC26X2R1: wakeup with bim not work

Part Number: LAUNCHXL-CC26X2R1


hi

hardware: launchpad 2652r1, sdk: 5.10, toolchain:iar

The original pinWakeup demo works well.

I copied the wakeup function from pinWakeup demo into project zero with offchip bim. the shutdown works, but wakeup by button not work.

I searched the forum, there are many same problems for n years but no answer exist.

so, what can I do.

regards

  • I modified the bim code to flash green led for n times when it get run. But I can not see it when I pressed wakeup button. So it should not be problem in bim code.

    As for the HIB problem, I connected the TCK signal to the V+, but wakeup still not work.

    I traced the current comsumption, the current increated when I press the wakeup button.

    so I donot know where the progam or hardware is stuck.

  • Hi,

    Thank you for reaching and thank you for your efforts in trying to debug this.

    May I ask if you have considered the guidance provided by Eirik on this thread?

    Kind regards,

  • hi

    Yes, I have read the thread several times.His problem looks like related to external flash.

    I flash the green led in the beginning of BIM code, I can see it when reset the board, but see nothing when wakeup.

  • Hi,

    Could you please share the code modification you have made in the BIM?

    Thanks and regards,

  • hi

    I can reproduce the problem this way, hope ti team can check it now.

    Based on original project zero with offchip oad, in function ProjectZero_handleButtonPress():

    case CONFIG_PIN_BTN2:
      // ButtonService_SetParameter(BS_BUTTON1_ID,sizeof(pState->state),&pState->state);
      PINCC26XX_setWakeup(ButtonTableWakeUp); 
      Power_shutdown(0, 0);
      break;

    }

    // table defined here:

    PIN_Config ButtonTableWakeUp[] = {
    CONFIG_PIN_BTN1 | PIN_INPUT_EN | PIN_PULLUP | PINCC26XX_WAKEUP_NEGEDGE,
    PIN_TERMINATE /* Terminate list */
    };

    So pressing the BTN2 will shutdown the mcu, and BT1 should wakeup mcu but failed.

    Are there something wrong here?

  • in bim_main.c,

    main(void)

    {

    #ifdef __IAR_SYSTEMS_ICC__
    __set_CONTROL(0);
    #endif

    powerUpGpio();                                         // added by me
    blinkLed(GREEN_LED, 10, 50);               // added by me

    ..

    }

  • Hi,

    I have reviewed your code and everything seems correct to me. I have also notified our R&D team about this issue. It turns out it is already known and will be addressed in a future release.

    In the meantime, you may want to review the workaround provided in this thread.

    Best regards,