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,¶m1,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
Solved! Go to Solution.
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,¶m1,0);
PTC4, PTC5 are PWM output pins
Thank you
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,¶m1,0);
PTC4, PTC5 are PWM output pins
Thank you