a modified SimpleBLEPeripheral project for CC2541 with Ifrared control using Timer3 and Timer1 for 40kHz carrier modulation code, project works fine with
osal_pwrmgr_device( PWRMGR_ALWAYS_ON );
to save power, change it to
osal_pwrmgr_device( PWRMGR_BATTERY );
but it seems to traped in PM2 and never returned to active mode, though there's periodic events shows up as expectd, but the 32k clock in PM2 mode seems to change the carrier frequency and the signal did not work.
how to exit PM2 before sending IR control signal?