Hello guys,
I'm trying to develop a BLE application using mkw35 chip and an external pressure sensor. The pressure sensor must trigg the MKW via PSWITCH. I'm currently try to use a callback, but it's never reached. I have frdmkw36 dev board with PSWITCH on SW4.
DCDC_Init(&mDcdcDefaultConfig);
DCDC_InstallPSwitchCallback(App_PSwitchWakeUpCallback, gDCDC_PSwIntEdge_Falling_c);
Do you have any tips or an example that use PSWITCH as a wake-up source?>
I have to be in DCDC Shut down to have this callback reached?
Thank you for support!
Hi Stefan, I hope you're doing well!
The interruption related to PSWITCH in the KW36 can be enabled in the way you describe. However, by default, the DCDC configuration on the KW36 board does not use the PSWITCH SW4:
To configure the DCDC to use the PSWITCH, you will need to physically cut the 2-3 connection on J38, and solder a jumper header to short 1-2 instead.
Please let me know if you need any more information.
Best regards,
Sebastian