KW40Z FRDM board - BLE not works after enabling PWM

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

KW40Z FRDM board - BLE not works after enabling PWM

Jump to solution
707 Views
ashokfair
Contributor IV

Hi All,

Im using KW40Z freedom  board , i m using KW40Z_Connectivity_Software_1.0.1 with SDK 1.3.0

I cloned the project of Bluetooth wireless uart demo. It works fine im able to send and receive data via "IoT Toolbox " android app. 

Later , i added new PWM module to the code.

configure_tpm_pins(TPM0_IDX);

TPM_DRV_Init(TPM0_IDX,&pwm_gconfig);

TPM_DRV_SetClock(TPM0_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM0_IDX,&param1,1);

PWM is using LED4 (PTC0) so i removed LED4 GPIO init from LED module.

I tested PWM alone and works fine. after integrating to the "Bluetooth wireless uart demo"   BLE stoped working not advertising.

Any idea ? please help on this asap.

Thanks,

Ashok r

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
573 Views
ashokfair
Contributor IV

Hi All,

PWM works now by changing module to TPM1 from TPM0

configure_tpm_pins(TPM1_IDX);   
TPM_DRV_Init(TPM1_IDX,&pwm_gconfig);
TPM_DRV_SetClock(TPM1_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM1_IDX,&param1,0);

PTC4, PTC5 are PWM output pins

Thank you

View solution in original post

0 Kudos
Reply
1 Reply
574 Views
ashokfair
Contributor IV

Hi All,

PWM works now by changing module to TPM1 from TPM0

configure_tpm_pins(TPM1_IDX);   
TPM_DRV_Init(TPM1_IDX,&pwm_gconfig);
TPM_DRV_SetClock(TPM1_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM1_IDX,&param1,0);

PTC4, PTC5 are PWM output pins

Thank you

0 Kudos
Reply