FRDM KW36 PSWITCH Example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM KW36 PSWITCH Example

604 Views
stefanfettt
Contributor II

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!

0 Kudos
1 Reply

558 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

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:

pastedImage_2.png

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

0 Kudos